Apache & php as a DSO module woes!
| From: | Bob Horton | Date: | Wed, 21 Feb 2001 15:39:14 +0000 |
| Subject: | Apache & php as a DSO module woes! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-40973@lists.php.net to get a copy of this message | ||
***
Please reply directly or I'll likely miss the reply in the digest
***
Hello,
I am attempting to compile php 4.0.4pl1 as a dynamic shared module
for Apache 1.3.12 on a Redhat 6.2 box. I followed the detailed
directions, and upon attempting make install it went along fine,
until...
*snip*
Making install in regex
make[1]: Entering directory `/usr/src/php-4.0.4pl1/regex'
make[2]: Entering directory `/usr/src/php-4.0.4pl1/regex'
make[2]: Nothing to be done for `install-p'.
make[2]: Leaving directory `/usr/src/php-4.0.4pl1/regex'
make[1]: Leaving directory `/usr/src/php-4.0.4pl1/regex'
Making install in .
make[1]: Entering directory `/usr/src/php-4.0.4pl1'
/usr/httpsd/bin/apxs -i -a -n php4 libs/libphp4.so
cp libs/libphp4.so /usr/httpsd/libexec/libphp4.so
cp: libs/libphp4.so: No such file or directory
apxs:Break: Command failed with rc=65536
make[1]: *** [install-sapi] Error 1
make[1]: Leaving directory `/usr/src/php-4.0.4pl1'
make: *** [install-recursive] Error 1
[root@server php-4.0.4pl1]#
-----
I checked the output from make, and aside from a few warnings, there
was no indication that anything had failed. So I checked the directory,
and surely enough, the shared library had not been compiled.
So I read the manpage for apxs and came up with....
[root@server php-4.0.4pl1]# /usr/httpsd/bin/apxs -i -a -c -n php4
libs/libphp4.a
gcc -shared -o libs/libphp4.so libs/libphp4.a
cp libs/libphp4.so /usr/httpsd/libexec/libphp4.so
chmod 755 /usr/httpsd/libexec/libphp4.so
[activating module `php4' in /usr/httpsd/conf/httpsd.conf]
[root@server php-4.0.4pl1]#
-----
So now I had the compiled shared library, and reran "make install", so
that
all the steps after where it had failed earlier would be carried out,
everything seemed to go well, until....
[root@server conf]# /usr/httpsd/bin/httpsdctl configtest
Syntax error on line 215 of /usr/httpsd/conf/httpd.conf:
Can't locate API module structure `php4_module' in file
/usr/httpsd/libexec/libphp4.so: /usr/httpsd/libexec/libphp4.so:
undefined symbol: php4_module
[root@server conf]#
-----
The line in question, reads as...
LoadModule php4_module libexec/libphp4.so
-----
The above line was automagically inserted for me by the make install
script.
So here I am stuck, out of ideas, and sending a poorly formatted email
to the LOSURS list. Please accept my apologies for any long lines,
I think my email client should wrap them automatically though.
Any ideas or suggestions?
***
Please reply directly or I'll likely miss the reply in the digest
***
* - * - * - * - * - * - * - * - * - * - * -
* Bob Horton - PneumaSoft Inc
* Custom Software Development Services
*
* Phone: (306) 545-SOFT (545-7638)
* Fax: (306) 924-5326
* bhorton@pneumasoft.com ICQ: 32058710
* - * - * - * - * - * - * - * - * - * - * -