Operating System - HP-UX
1753761 Members
4825 Online
108799 Solutions
New Discussion юеВ

HPUX - Apache - PHP - MySQL

 
PatRoy
Regular Advisor

HPUX - Apache - PHP - MySQL

Hi.

I'm trying to setup Apache with PHP and MySQL on HPUX 11.31 ia64.

I've got Apache / PHP installed from the HP's depot: swlist -l fileset | grep -i apache

# hpuxwsAPACHE B.2.0.59.00 HP-UX Apache-based Web Server
hpuxwsAPACHE.APACHE B.2.0.59.00 2.0.59 base
hpuxwsAPACHE.APACHE2 B.2.0.59.00 2.0.59 base (IPF Binaries)
hpuxwsAPACHE.AUTH_LDAP B.2.0.59.00 1.5.4 base
hpuxwsAPACHE.AUTH_LDAP2 B.2.0.59.00 1.5.4 base (IPF Binaries)
hpuxwsAPACHE.MOD_JK B.2.0.59.00 2.0.5 base
hpuxwsAPACHE.MOD_JK2 B.2.0.59.00 2.0.5 base (IPF Binaries)
hpuxwsAPACHE.MOD_PERL B.2.0.59.00 1.99.16 base
hpuxwsAPACHE.MOD_PERL2 B.2.0.59.00 1.99.16 base (IPF Binaries)
hpuxwsAPACHE.PHP B.2.0.59.00 5.2.2 base
hpuxwsAPACHE.PHP2 B.2.0.59.00 5.2.2 base (IPF Binaries)
hpuxwsAPACHE.WEBPROXY B.2.0.59.00 2.0.59 base


And MySQL as well: swlist -l fileset | grep -i mysql

# xMySQL A.10.00-5.0.51.002 MySQL Database
xMySQL.DBDMYSQL A.10.00-4.005.002 DBD MYSQL Files
xMySQL.HPUXIXWEBMIN A.10.00-5.0.51.002 MySQL Webmin Files
xMySQL.MYSQL-CONF A.10.00-5.0.51.002 MySQL Configuration Files
xMySQL.MYSQL-DOC A.10.00-5.0.51.002 MySQL Document Files
xMySQL.MYSQL-INC A.10.00-5.0.51.002 MySQL Header Files
xMySQL.MYSQL-JDBC A.10.00-5.0.8.002 MySQL Connector/J Driver File
xMySQL.MYSQL-LIB A.10.00-5.0.51.002 MySQL Library Files
xMySQL.MYSQL-MAN A.10.00-5.0.51.002 MySQL Manual Pages
xMySQL.MYSQL-RUN A.10.00-5.0.51.002 MySQL Executable Files
xMySQL.MYSQL-SRC A.10.00-5.0.51.002 MySQL Source Files
xMySQL.MYSQL-TEST A.10.00-5.0.51.002 MySQL Testing Files
xMySQL.MYSQL64-LIB A.10.00-5.0.51.002 MySQL 64 bit Library Files
xMySQL.MYSQL64-RUN A.10.00-5.0.51.002 MySQL 64 bit Executable Files
xMySQL.UNIXODBC A.10.00-2.2.12.002 Unix ODBC Files
xMySQL.UNIXODBC64 A.10.00-2.2.12.002 Unix ODBC 64 bit Files

I've got a regular test.php file work just fine. However, connections to MySQL DB doesn't work. Even though I've edited the php.ini to enable the extension :

grep -i mysql php.ini
extension=mysql.sl

Seems like mysql.sl is missing in the /opt/hpws/apache/php/lib/php/extensions/ folder. Heck. It's missing in the iexpres depot!

How can I get this ?

This IS my problem, right?

Regards, Patrick.
3 REPLIES 3
Sheila McKenzie
Occasional Contributor

Re: HPUX - Apache - PHP - MySQL

I'm bumping into the same problem. The xMySQL build for iExpress 11iv3 does not contain the mysql.sl file -- it's missing. It does for iExpress 11iv2 though.

How did you get around this? Do you have the 11iv3 mysql.sl file that you can post?

Thanks.
PatRoy
Regular Advisor

Re: HPUX - Apache - PHP - MySQL

To be honest... i don't even remember what I had done nor from where I got the mysql.sl file!!! However, it's now working for me on HP-UX 11.31. I'm posting you the mysql.sl file. Make sure you've got the following in your php.ini file:

extension=mysql.sl

Cheers! Pat
PatRoy
Regular Advisor

Re: HPUX - Apache - PHP - MySQL

Found a working mysql.sl.