1834597 Members
4178 Online
110069 Solutions
New Discussion

HP PHP won't start

 
SOLVED
Go to solution
Matt Hearn
Regular Advisor

HP PHP won't start

I'm running the standard package of HP webadmin tools, and I SWEAR I had PHP (part of Tomcat, I think) running properly before. The other day I tried to run one of my PHP links, and my browser was forced to try and download it as a file.

So I looked at /opt/apache2/etc/httpd.conf, and the LoadModule php4_module was commented out. Weird.

I uncommented, and stopped and started apache, and got:
bede:/sbin/init.d> /opt/apache2/bin/apachectl start
Syntax error on line 249 of /opt/apache2/etc/httpd.conf:
Cannot load /opt/hpws/apache/modules/libphp4.so into server: Unresolved symbol: apr_table_elts (code) from /opt/hpws/apache/modules/libphp4.so
/opt/apache2/bin/apachectl start: httpd could not be started

If I search the forums, I see where some people had the same problem and installed a patch (I forget which now) and it was resolved. I installed the patch, but no dice, same error.

I'm wondering if something else I installed overwrote a library that PHP needs, but I dunno what that might be or when I installed it; this is just a box I use for light web hosting and testing, unless I'm developing something I only log in every few weeks.

Thanks for any help you can lend!!!
3 REPLIES 3
Steven E. Protter
Exalted Contributor
Solution

Re: HP PHP won't start

Seems a bit strange.

Which HP apache port did you use?

I did the 2.10 install on several hp-9000 servers and did not run into this issue.

I think something has hammered php and reinstallation of the apache package may be warranted.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Matt Hearn
Regular Advisor

Re: HP PHP won't start

It was probably because I'm an idiot and was running the apache I built from source in /opt/apache2.

I did do the reinstall, and while checking to figure out where it put the files, remembered all about /opt/hpws. Apache started up fine, and my php files are running correctly.

Thanks for your help!
Wilfred Chau_1
Respected Contributor

Re: HP PHP won't start

/opt/apache2/bin/apachectl start
/opt/apache2/etc/httpd.conf:
Cannot load /opt/hpws/apache/modules/libphp4.so into server: Unresolved


You have two apache root, /opt/apache2 and /opt/hpws/apache

Try start apache from /opt/hpws/apache/bin