Re: Re: php-install Digest 23 Jul 2002 12:04:43 -0000 Issue 944

From: Date: Wed, 24 Jul 2002 01:19:11 +0000
Subject: Re: Re: php-install Digest 23 Jul 2002 12:04:43 -0000 Issue 944
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-7884@lists.php.net to get a copy of this message
As I said before, my only problem was that I was using the wrong file extension, but the folowing excerpts from mail I exchanged with members of this list may help you identify your problem. Good luck. ------------------ I found the following lines in the httpd.conf that was installed in my system: <IfDefine> HAVE_PHP4> LoadModule php4-module </IfDefine> ..... <IfDefine> HAVE_PHP4> AddModule php4-module.c </IfDefine> ........ <IfModule mod_php4.c> AddType application/x-httpd-php .php4 .php3 .phtml .php AddType application/x-httpd-php-source .phps </IfModule> And the following lines in the Apache startup script : if [ -f /etc/sysconfig/apache ] ; then . /etc/sysconfig/apache fi .... start() { echo -n $"Starting $prog: " daemon $httpd moduleargs $OPTIONS RETVAL=$? echo [ $RETVAL = 0 ] && touch /var/lock/subsys/httpd return $RETVAL } ------------------------ > Take a look at that moduleargs. You'll also find in the > file a > function called moduleargs that is intended to generate all of those > defines. It takes a file list of /usr/lib/modules/*.so and applies some > regular expressions. NOTE 7/24 - THIS IS A GOOD TEST Do a "ps auxww | fgrep httpd" and you should see a > bunch of -DHAVE_xxx arguments. ------------------------ 1 - I do see several blocks <IfDefine>...</IfDefine> in httpd.conf but I only got: root 3353 0.0 0.3 1728 564 pts/1 s 15:48 0:00 fgrep httpd when I did ps auxww | fgrep httpd NOTE 7/24 - BIG MISTAKE ! - Apache was not running when I did the above. 2 - PHP seems to be installed. I got php -4.0.6-7 when I did rpm -q php ---------------------- / In fact I didn't have a real problem, just ignorance. All I had to do was to change the Index file extension to .PHP. / And it was a silly mistake to do "ps auxww | fgrep httpd" with the server turned off. I started and stopped it so many times in the last few days that I didn't know anymore what I was doing. NOTE 7/24 - THIS IS A GOOD TEST When I run that command now (with the server running :-), of course), I received a truck load of -DHAVE's and, sure enough, there were many PHP4' there. Christopher Lyon wrote: > > > The document is showing up as .php and I have added the AddType in the > httpd.conf file. I did try the same browser to another server that is > running PHP and it loaded fine. It just seems to be around the tie > between apache and php. I just can't figure out what and the logs > aren't telling me anything. Thoughts? > > -----Original Message----- > From: J Fazenda [mailto:jfazenda@iinet.net.au] > Sent: Tuesday, July 23, 2002 7:04 AM > To: PHP Install > Subject: [PHP-INST] Re: php-install Digest 23 Jul 2002 12:04:43 -0000 > Issue 944 > > I had exactly the same problem recently with my very first > Linux/Apache/PHP installation. > After several days of fruitless efforts, a kind soul told me I was > using the wrong file extension (.html). > It must be .php to make Apache send the file through the PHP > interperter. > Could that be your problem ?? > > > > > > Subject: PHP 4.2.2 and Apache 1.3.26 Installation > > > Date: Mon, 22 Jul 2002 22:48:45 -0700 > > > From: Christopher Lyon <cslyon@netsvcs.com> > > > To: "'php-install@lists.php.net'" > > > <php-install@lists.php.net> > > > > > > -----BEGIN PGP SIGNED MESSAGE----- > > > Hash: SHA1 > > > > > > OS: > > > Red Hat 7.3 > > > > > > I am having a bit of a problem getting the two of these things > > > working. I have extracted both PHP and Apache, ran ./configure > > > - -with-mysql -with-apache=/usr/local/apache_1.3.26 from the php > > > directory. Then I ran make and make install. Once that was done I > ran > > > the Apache ./configure, make and make install. I went to edit the > > > httpd.conf file and added the application/x-httpd-phpX .phpx > stuff. > > > Once I was done with all of that I went to test to see if PHP was > > > working via some test pages and it looks like a no go. I am > getting > > > just the raw html php code. Anybody have an idea of what I am > missing > > > or what didn't get loaded? > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.install (#7884) next »