Hi I'm trying to run php-4.2.4 on apache 2.0.40 but every time when I run apache I got this error:
Syntax error on line 230 of /web/conf/httpd.conf:
Cannot load /web/modules/libphp4.so into server: /web/modules/libphp4.so: Undefined symbol "pthread_getspecific"
This is the way how I configured and installed php and apache2:
For Apache 2.0.40:
1) tar xvfz httpd-2.0.40.tar.gz
2) cd httpd-2.0.40
3) ./configure --prefix=/usr/local/apache2 --enable-module=so
4) make
5) make install
For PHP
1) tar xvfz php4-latest.tar.gz
2) cd php4-200204061500/
3) ./configure --with-apxs2=/usr/local/apache2/bin/apxs
4) make
5) make install
In httpd.conf I added these lines below:
LoadModule php4_module modules/libphp4.so
DirectoryIndex index.html index.html.var index.php
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
The libphp4.so is exactly in /modules.
Please help.Thank you