Re: Cannot load /usr/local/apache/libexex/libphp3.so

From: Date: Sat, 16 Apr 2005 23:53:03 +0000
Subject: Re: Cannot load /usr/local/apache/libexex/libphp3.so
References: 1 2 3 4  Groups: php.install 
Request: Send a blank email to php-install+get-15978@lists.php.net to get a copy of this message
At 04:33 PM 4/16/2005, Michael W. wrote:
To configure to work as an Apache module, but not as a CGI binary, use "./configure --with-apxs=/path/to/apache/bin/apxs --disable-cgi".
For one thing, it would be php4_module , libphp4.so , mod_php4.c , application/x-httpd-php , and application/x-httpd-php-source for PHP 4. For another, did you tell PHP to compile an Apache module? You have to have --with-apxs=/path/to/apache/bin/apxs and possibly --disable-cgi in your configure command.
Got it working with your advice Michael, thank you. BTW, after configuring my httpd.conf file as follows: LoadModule php4_module libexec/libphp4.so AddModule mod_php4.c AddType application/x-httpd-php .php .php4 AddType application/x-httpd-php-source .phps The following showed up on my httpd error_log after a restart - [Sat Apr 16 19:32:51 2005] [notice] SIGUSR1 received. Doing graceful restart [Sat Apr 16 19:32:51 2005] [warn] module mod_php4.c is already added, skipping [Sat Apr 16 19:32:52 2005] [notice] Apache/1.3.29 (Unix) PHP/4.3.11 configured -- resuming normal operations It still worked, but then I commented out the AddModule line for mod_php4.c and that got rid of the warning. I know it's not in the conf file so wonder why this wasn't needed. FWIW I have nothing in my srm.conf file. Marty Marty Landman, Face 2 Interface Inc. 845-679-9387 Search & Sort Easily: http://face2interface.com/Products/FormATable.shtml Web Installed Formmail: http://face2interface.com/formINSTal

« previous php.install (#15978) next »