Operating System - HP-UX
1835483 Members
2568 Online
110078 Solutions
New Discussion

Php and MySQL with WebServer Suite 2.12

 
Rivet
Occasional Advisor

Php and MySQL with WebServer Suite 2.12

Hi all,
I just installed HP Web Server suite V2.12.
I also installed MySql from a tar file (mysql-standard-4.0.12-hp-hpux11.11-hppa2.0w-64bit.tar.gz)
When I try to acces MySQL, I get the message "PHP cannot load MySQL Extension. Check your PHP config".
I checked it but I am not able to find anything wrong !
I believed MySQL was built-in and therefore there was no need to enable anything !

Could someone help me ?

Thanks
13 REPLIES 13
Alex Lavrov.
Honored Contributor

Re: Php and MySQL with WebServer Suite 2.12

If Apache was started, try this:

create files phpinfo.php:


And try to execute it: http://lalala/phpinfo.php


What do you see in MYSQL section of the output?

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Rivet
Occasional Advisor

Re: Php and MySQL with WebServer Suite 2.12

I have a SQLite section on phpinfo() but no mySQL section.
The mySQL install seems to be OK (all tests passed with mysql-test-run).
So php and mySql seems to be OK on their own side, but they are unable to work together ...

Alex Lavrov.
Honored Contributor

Re: Php and MySQL with WebServer Suite 2.12

Hmm, that's weird ...

What's the compile line that was used to compile php? You can see at the first section of the output.

I think that it cannot find mysql libraries.

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Rivet
Occasional Advisor

Re: Php and MySQL with WebServer Suite 2.12

Yes, I agree with you, it looks like some libraries not found. And It seems that msyql.so is not present on my system, I can't find it.
Attached is the whole output of phpinfo().

Serge
Alex Lavrov.
Honored Contributor

Re: Php and MySQL with WebServer Suite 2.12

find / -name libmysql.so


Any results?


Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Rivet
Occasional Advisor

Re: Php and MySQL with WebServer Suite 2.12

No result !

Serge
Alex Lavrov.
Honored Contributor

Re: Php and MySQL with WebServer Suite 2.12

Ploho ...


Let's try this:

find / -name mysql | grep so


But I doubt that we'll find the libraries.

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Alex Lavrov.
Honored Contributor

Re: Php and MySQL with WebServer Suite 2.12

oops, sorry:

find / | grep -i mysql > /tmp/mysql_files.txt

Can you attach this file?

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Rivet
Occasional Advisor

Re: Php and MySQL with WebServer Suite 2.12

Here is the output file.
Actually, there is no library in ... but it doesn't really surprise me because as far as I know, HP WebServer Suite should contain a PHP version with mySQL client build-in.
Like it's said on HP site : "... However substantial functionality including MySQL database connectivity is built into PHP ... ".

serge
Alex Lavrov.
Honored Contributor

Re: Php and MySQL with WebServer Suite 2.12

Hmm .. that's true, it's built in from the version 4.something.

Do you see any errors in "access_log" of Apache?
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Rivet
Occasional Advisor

Re: Php and MySQL with WebServer Suite 2.12

I didn't have the usual acces_log file so I just configured it and restarted apache.
But there isn't anything wrong in it nor in the error_log file ...

Rivet
Occasional Advisor

Re: Php and MySQL with WebServer Suite 2.12

Well ...
Since I was in a total blackout, I decided to downgrade to HP WebServer Suite 2.10.
The main difference is PHP version 4 in place of PHP 5.
It's a bit frustrating but it work's ...

Thanks anyway for your help, Alex.

Serge
Alex Lavrov.
Honored Contributor

Re: Php and MySQL with WebServer Suite 2.12

My bad, I didn't notice that it was PHP5.
I don't give a damn for a man that can only spell a word one way. (M. Twain)