Make sure that you define HAVE_PHP4 when you start apache. The other way to make sure that's not the problem is just to take out the "<IfDefine>" statements around all the PHP stuff and have it load PHP regardless of what you define.
--Nick Brandon Amundson wrote: > Hello, > > I just installed PHP 4.2.2 on Apache 2.0.39 (on RH 7.2) and was able to get > the source compiled and installed. I am still having a problem though. It > seems that the module libphp4.so is no being invoked when I try to access a > PHP page. All that is shown is the php (text). I copied the libphp4.so to > /etc/httpd/modules (it also resides in /usr/bin/apache/modules) and copied > the php.ini to both /etc/php.ini and /usr/local/lib/php/ini. I also turned > on the Global variable. Here are the portions of my httpd.conf that are > relevant. > > <IfDefine HAVE_PERL> > LoadModule perl_module modules/libperl.so > </IfDefine> > <IfDefine HAVE_PHP> > LoadModule php_module modules/mod_php.so > </IfDefine> > <IfDefine HAVE_PHP3> > LoadModule php3_module modules/libphp3.so > </IfDefine> > <IfDefine HAVE_PHP4> > LoadModule php4_module /usr/bin/apache/modules/libphp4.so > </IfDefine> > > #AddModule mod_put.c > <IfDefine HAVE_PERL> > AddModule mod_perl.c > </IfDefine> > <IfDefine HAVE_PHP> > AddModule mod_php.c > </IfDefine> > <IfDefine HAVE_PHP3> > AddModule mod_php3.c > </IfDefine> > <IfDefine HAVE_PHP4> > AddModule mod_php4.c > </IfDefine> > > # The following is for PHP4 (conficts with PHP/FI, below): > > #<Files *.php> > #SetOutputFilter PHP > #SetInputFilter PHP > #</Files> > > <IfModule mod_php4.c> > AddType application/x-httpd-php .php .php3 .php4 .phtml > AddType application/x-httpd-php-source .phps > </IfModule> > > # The following is for PHP3: > #<IfModule mod_php3.c> > # AddType application/x-httpd-php3 .php3 > # AddType application/x-httpd-php3-source .phps > #</IfModule> > > # The following is for PHP/FI (PHP2): > #<IfModule mod_php.c> > # AddType application/x-httpd-php .phtml > # DirectoryIndex index.php index.html index.htm index.shtml > # DirectoryIndex index.php index.html index.htm index.shtml > #</IfModule> > > I have tried using the <Files *.php> which I found on the php.net site and > the other that is uncommented. Any help would be greatly appreciated. I > have this working on two other Linux servers but they are running Apache > 1.3.26. > > Thanks in Advance. > > Brandon > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- You can't make a difference until you are willing to be different. -- Nick Couchman SEAKR Engineering 6221 South Racine Circle Centennial, CO 80111 Desk: (303) 784-7724 Main: (303) 790-8499 Fax: (303) 790-8720 -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php