Re: Apache 1.3.26 and PHP 4.2.1

From: Date: Fri, 28 Jun 2002 22:54:21 +0000
Subject: Re: Apache 1.3.26 and PHP 4.2.1
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-7527@lists.php.net to get a copy of this message
(newlines in your email would really be helpful) > Okay, I built apache 1.3.26 with mod_so enabled. So I figured that all I > had to do was compile PHP using > --with-apxs=/usr/local/build/apache_1.3.26/bin/apxs. This is exactly > what I did. Following the install file, I then copied php.ini-dist to > /usr/local/lib. I saved the old php.ini and renamed php.ini-dist to > php.ini. I then edited httpd.conf in > /usr/local/build/apache_1.3.26/conf. I added the line: AddType > application/x-httpd-php .php. Again, I was following what the install > file was telling me to do -- word for word. I stopped the httpd binary in > /usr/local/etc/apache/bin. I then started the other httpd binary in > /usr/local/build/apache_1.3.26/bin. The web server (apache_1.3.26) was > up and running. I felt good, but then when I went to a .php file under > htdocs, a download window appeared. Apparently, apache did not load the > php module. To fix the problem I added this line to the httpd.conf file: > > LoadModule php4_module /usr/local/etc/apache/libexec/libphp4.so > > Of course, this was the old module (4.1.2). I restarted the server > (1.3.26), and everything worked fine. I could view php files under > htdocs. My question is: What did I do wrong for PHP 4.2.1 not to work. I > did not compile apache_1.3.26 with php support. In other words I did not > use --activate-module=src/modules/php4/libphp4.a. But according to the > PHP install file, I could still load the PHP module as long as I enabled > mod_so. Thanks for the help! Where in this did you do a "make install" ? libphp4.so gets built and needs to be loaded using LoadModule. -Rasmus

« previous php.install (#7527) next »