help: cannot load php5 module, compile from source
Here is the information of my php installation:
OS: centos 4.2, apache server 2.2.0, PHP: 5.1.2
apache is running correctly without php,
I compiled php's source code as follows:
./configure --with-apxs2 path-of-apxs --with-mysql path-of-mysql
make
make install
then created php.ini from php.ini-recommend (came with the source code)
modified httpd.conf and here is what I have in httpd.conf:
LoadModule php5_module modules/libphp5.so
AddModule mod_php5.c
<IfModule dir_module>
DirectoryIndex index.php default.php index.html index.htm
</IfModule>
AddType application/x-httpd-php .php .php3
Then, I tried to start apache but got an error message:
httpd: Syntax error on line 53 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: undefined symbol: zend_register_list_destructors_ex
It seems like a code problem, but I am not sure and have no
clue whether I could debug it by looking into the code.
Maybe there is an easy solution from you guys.
I googled but got no useful information :-(
Appreciate your help.
|