• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Issue after installing ART PHP5.

P

Poof

Guest
After installing php-5.0.4-13.rhel3.art, php-mysql-5.0.4-13.rhel3.art, and mysql-server-4.1.21-2.rhel3.art I am now experiencing an issue where I cannot load the mysql.so module for any php pages.

The error I get is: (If I just type "php" in shell... If I visit the page, it says that connectdb() isn't available)

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/mysql.so' - libmysqlclient.so.14: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/mysqli.so' - libmysqlclient.so.14: cannot open shared object file: No such file or directory in Unknown on line 0

Any ideas on this? This is driving me bonkers!
 
All right...

What was causing this issue is that when I installed MySQL 4.1 from the ART RPMs, it made the /usr/lib/mysql mysqlclient files, but it didn't symlink those to /usr/lib. After I created those syms, it all worked fine.

Code:
[root@server1 mysql]# php
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/mysql.so' - libmysqlclient.so.14: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/mysqli.so' - libmysqlclient.so.14: cannot open shared object file: No such file or directory in Unknown on line 0

[root@server1 mysql]# pwd
/usr/lib/mysql
[root@server1 mysql]# ln -s /usr/lib/mysql/libmysqlclient_r.so.14.0.0 /usr/lib/libmysqlclient_r.so.14
[root@server1 mysql]# ln -s /usr/lib/mysql/libmysqlclient.so.14.0.0 /usr/lib/libmysqlclient.so.14
[root@server1 mysql]# php

[root@server1 mysql]#
 
Back
Top