Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP recompile causes apache to crash

Status
Not open for further replies.

dluvsu

Programmer
Jan 18, 2004
11
ZA
Hi there,

I was running php-4.2.3 on my server but needed to recompile with some extra modules so I downloaded php-4.3.4.tar.gz to use. Unpacked the source and configure, make and make install ran perfectly. The problem is after this httpd crashes and if I do httpd status it gives the message :
"httpd dead but subsys locked"
When I do apachectl start I get the message:
"Syntax error on line 259 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/libphp3.so into server: /etc/httpd/modules/libphp3.so: undefined symbol: gss_mech_krb5
/usr/sbin/apachectl start: httpd could not be started"
although I have not changed anything in the httpd.conf.

Prior to recompiling php I also unpacked and installed libmcrypt-2.5.7 and
mcrypt-2.6.4

I have tried everything but so far the only thing that works is if I delete the line mentioned in http.conf. Then apache works fine again. I cannot do this as I still need the php3 modules.

Any thoughts would be greatly appreciated

Thanks,
Darren
 
Part of the problem is legacy code references in your httpd.conf. "libphp3.so" tells me that Apache is trying to load an older version of PHP.

When you ran the configure script, what options did you pass it?



Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Here is my configure command

./configure --prefix=/usr/local/ --with-config-file-path=/usr/local/lib/ --with-gd --with-jpeg-dir --with-png-dir --with-tiff-dir --with-ttf --enable-force-cgi-redirect --enable-safe-mode --with-zlib --enable-ftp --enable-versioning --enable-url-includes --enable-gd-native-ttf --enable-trans-sid --enable-dbase --with-db2 --with-ldap --enable-bcmath --enable-calendar --enable-discard-path --enable-memory-limit --with-imap --with-mcal --with-bz2 --with-mod-dav --enable-sockets --with-kerberos --with-imap-ssl --enable-gd-imgstrttf --with-freetype-dir --with-curl --with-apxs --with-mysql --with-mhash --with-gdbm --with-pgsql --with-gettext --with-xml --with-mcrypt

Thanks,
darren
 
is it apache 2?

______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
just checking, I had a very similar message when I installed apache 2. unrelated it would seem.

______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
dluvsu:

dluvsu said:
I have tried everything but so far the only thing that works is if I delete the line mentioned in http.conf. Then apache works fine again. I cannot do this as I still need the php3 modules.

What possible reason could you have for the PHP 3 module? You're installing PHP 4.


I see nothing untoward in your invocation of the configure script.



Want the best answers? Ask the best questions!

TANSTAAFL!!
 
The reason I still need PHP3 is that some of my company's clients still use it.

I think I've managed to narrow down the problem to the libphp4.so file. When the new version(4.3.4) of php is recompiled the libphp4.so is replaced and for some reason this new version is conflicting with libphp3.so being loaded. If I copy back the original libphp4.so file then Apache works fine again?

Tried recompiling the same php version(4.2.3) with the extra module I need(gettext) and that went fine with Apache still working after restart. I must therefore conclude that it is the new version that is breaking it, but still no idea why?

Your posts are much appreciated,

Darren
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top