Operating System - HP-UX
1827769 Members
2712 Online
109969 Solutions
New Discussion

Re: Still stuck on getting PHP to run with Apache (HP-UX 11.11)

 
C. Matthew Woody_1
Occasional Contributor

Still stuck on getting PHP to run with Apache (HP-UX 11.11)

I have installed Apache 1.3.27 (from binary) and it works without PHP, but when I add PHP (2.3.3) as a DSO I get a bunch of messages that it can't resolve the mySQL libraries. I followed various other posts about renaming the PHP library to "libphp.so" from .sl and then copied it to the apache\libexec directory and updated the httpd.conf file accordingly (mod_so is installed).

I get about 20 of these types of messages for various mysql functions when I access the web page or run "httpd configtest".

from /ha1/delnosa6/apache/libexec/libphp4.so /usr/lib/dld.sl: Unresolved symbol: mysql_real_query (code)

I'm using HP-UX 11.11, gcc 3.2.11, binutils 2.11.2, bison 1.35, gmake 3.79.1.

Any hints (or solutions!) would be welcome.
5 REPLIES 5
Shannon Petry
Honored Contributor

Re: Still stuck on getting PHP to run with Apache (HP-UX 11.11)

It does not look like a PHP problem as much as a mysql problem. Are you using mysql?
Is mysql configured properly in the build of php?

Usually, if you build your own, you can run
./configure --help

It will give options like --disable-mysel
--mysql-directory=/path/to/it

See if this helps. If your downloading someone elses PHP, then make sure you meet all their dependancies (which appear to be mysql).

Regards,
Shannon
Microsoft. When do you want a virus today?
C. Matthew Woody_1
Occasional Contributor

Re: Still stuck on getting PHP to run with Apache (HP-UX 11.11)

When I compiled php I added "--with-mysql=/usr/local/mysql" and it compiled OK except for the so/sl problem, but httd won't run.

BTW, I went ahead and compiled everything as static and it is working OK.

Matt
Rajeev  Shukla
Honored Contributor

Re: Still stuck on getting PHP to run with Apache (HP-UX 11.11)

To support the DSO module(Dynamic Module) you need to install a patch
PHSS_26560
Just see if you have this.

Cheers
Rajeev
C. Matthew Woody_1
Occasional Contributor

Re: Still stuck on getting PHP to run with Apache (HP-UX 11.11)

I don't see that patch on the server and I didn't find it in the patch download section of HP's site. I did find patch PHCO_27434 and one other post said that fixed a PHP problem for them.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x095b0fe6d0f7d61190050090279cd0f9,00.html

I will ask a more knowledgeable sysadmin if we should install that patch.


Matt
Rajeev  Shukla
Honored Contributor

Re: Still stuck on getting PHP to run with Apache (HP-UX 11.11)