• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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