On Sep 19, 2007, at 15:07:55, Adam Lewis wrote:
I'm having a strange problem with PHP. I'm using source versions of apache 2.2.6 and php 5.2.4.Both compiled fine. Here is how I compiled them... __SNIP__/configure –enable-ssl=shared –prefix=/usr/local/apache-04172007 – enable-mods-shared=all
Is it compiled as prefork or worker (I prefer worker for optimal performance and I have had strange linking errors in prefork)?
__SNIP__ and php __SNIP__./configure –with-apxs2=/usr/local/apache-04172007/bin/apxs –with- mysql –prefix=/usr/local/php –with-config-file-path=/etc/php –with- ldap –enable-ftp –with-curl –with-openssl –enable-zip –with-zlib – with-gettext
Hopefully you saved your working php-5.2.2 # if so, restore it# put the libphp5.so in /usr/local/php and adjust your httpd.conf to load it from /usr/local/php/libphp5.so
# then: mv /usr/local/php /usr/local/php-5.2.2 # install the new php # put the libphp5.so in /usr/local/php # then: mv /usr/local/php /usr/local/php-5.2.3 # make a symbolic link to a version: ln -shf php-5.2.3 /usr/local/phpYou can change the version by changing the symbolic link and stoping/ starting apache.
__SNIP__Both build and install with no errors. When I try to restart apache I get...__SNIP__Starting httpd: httpd: Syntax error on line 104 of /usr/local/ apache-09192007/conf/httpd.conf: Cannot load /usr/local/apache/ modules/libphp5.so into server: /usr/local/apache/modules/ libphp5.so: undefined symbol: php__pcre_ucp_findprop
Are you running this on the machine you built it on?If not, is it identical, does it contain the same dependancies and dependancy versions?
Does the same error occur when you run the php binary (/usr/local/php/ bin/php -n -i)?
Is it linking against a local libpcre?Maybe when it linked the objects it didn't include all of the ext/ pcre objects?
__SNIP__ I am running php 5.2.2 compiled the same way with no problem. TIA, Adam
-- Dale
PGP.sig
Description: This is a digitally signed message part