Php Error While Loading Shared Libraries Libmysqlclient.so.15
a DA server, recently updated mysql to version 5.1, you'll still need your old libmysqlclient.so files from mysql 5.0. This would be the error you're seeing:[root@server directadmin]# service directadmin restart Stopping DirectAdmin: [FAILED] Starting DirectAdmin: /usr/local/directadmin/directadmin: error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory [FAILED]To resolve the issue, simply grab the old libmysqlclient.so.15 file from our server. Example, for CentOS 5 - 64-bit, run:wget -O /usr/lib64/libmysqlclient.so.15 http://files.directadmin.com/services/es_5.0_64/libmysqlclient.so.15 chmod 755 /usr/lib64/libmysqlclient.so.15 ldconfig On non-64-bit systems, the file would go into /usr/lib/libmysqlclient.so.15 Similar reported issue on Debian 5 64-bit, type:wget -O /usr/local/mysql/lib/libmysqlclient.so.16 http://files.directadmin.com/services/debian_5.0_64/libmysqlclient.so.16 chmod 755 /usr/local/mysql/lib/libmysqlclient.so.16 ldconfig Debian 6, if you update to 5.5.11 from 5.5.9, they've changed the libmysqlclient.so.16 to libmysqlclient.so.18, so it just needs a relink. If you run thiscd /usr/local/directadmin ./directadmin oand get this error./directadmin: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directorythen run this:cd /usr/local/mysql/lib ln -s libmysqlclient.so.18 libmysqlclient.so.16 ldconfigSome reported cases of the link to 18 not working, so the 16 version has been made available. Type:cd /usr/local/mysql/lib rm -f libmysqlclient.so.16 #in case you've already tried the above linking method wget http://files.directadmin.com/services/debian_6.0/libmysqlclient.so.16 chmod 755 libmysqlclient.so.16 ldconfig Related Helpfiles ./install.sh: line 225: ./directa
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just https://help.directadmin.com/item.php?id=236 like you, helping each other. Join them; it only takes a minute: Sign up PHP: error while loading shared libraries: libmysqlclient.so.18 up vote 2 down vote favorite I'm Set Crontab : [root@root mysql]# crontab -l 5 * * * * php /home/admin/public_html/scheduleSendMail.php But Not Execute PHP code! [root@root mysql]# php /home/admin/public_html/scheduleSendMail.php php: error while loading shared libraries: http://stackoverflow.com/questions/13994089/php-error-while-loading-shared-libraries-libmysqlclient-so-18 libmysqlclient.so.18: cannot open shared object file: No such file or directory [root@root mysql]# rpm -qR postfix find : .. libmysqlclient.so.16 libmysqlclient.so.16(libmysqlclient_16) .. I am using the Centos And DirectAdmin PHP v: php-5.3.3-14.el6_3.i686 mysql v: mysql-5.1.66-2.el6_3.i686 centos v: CentOS release 6.3 (Final) php mysql apache centos share|improve this question edited Dec 22 '12 at 3:48 hakre 134k26216390 asked Dec 21 '12 at 16:51 Ali Zahedi 81119 1 There are a couple things that could be wrong. Either you don't have the mysql client libraries installed. Or PHP is compiled against the wrong version of the libraries. –datasage Dec 21 '12 at 17:22 add a comment| 3 Answers 3 active oldest votes up vote 4 down vote accepted code: #ls -l /usr/lib/mysql | grep libmysqlclient.so outPut: lrwxrwxrwx 1 root root 24 Dec 21 21:41 libmysqlclient.so -> libmysqlclient.so.16.0.0 lrwxrwxrwx 1 root root 24 Dec 21 21:41 libmysqlclient.so.16 -> libmysqlclient.so.16.0.0 -rwxr-xr-x 1 root root 1524000 Dec 7 18:27 libmysqlclient.so.16.0.0 #ln /usr/lib/mysql/libmysqlclient.so.16.0.0 /usr/lib/mysql/libmysqlclient.so.18 Not Work ! But : #ln /usr/lib/mysql/libmysqlclient.so.16.0.0 /usr/lib/lib
Community Podcasts MySQL.com Downloads Documentation Section Menu: MySQL Forums :: Install & Repo :: error while loading shared http://forums.mysql.com/read.php?11,56170,56170 libraries: libmysqlclient.so New Topic Advanced Search error while loading shared http://forum.sa-mp.com/showthread.php?t=348761 libraries: libmysqlclient.so Posted by: Yohann Dumais () Date: November 23, 2005 10:03AM Hi, I am migrating our web site from a SCO to a Redhat server and I'm having trouble with the mysql server. After installin apache, I did the following php error to install mysql groupadd mysql useradd -g mysql mysql (untared mysql-5.0.16.tar.gz in /tmp) cd mysql-5.0.16 ./configure -prefix=/usr/local/mysql -localstatedir=/usr/local/mysql/data -disable-maintainer-mode -with-mysqld-user=mysql -enable-large-files-without-debug make make install cp support-files/my-medium.cnf /etc/my.cnf cd /usr/local/mysql bin/mysql_install_db --user=mysql chown -R root . chown -R mysql data chgrp -R mysql . bin/mysqld_safe --user=mysql & Now it is running: ps php error while -ef | grep mysql root 19582 1 0 Nov22 ? 00:00:00 /bin/sh bin/mysqld_safe --user=mysql mysql 19606 19582 0 Nov22 ? 00:00:28 /usr/local/mysql/libexec/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --user=mysql --pid-file=/usr/local/mysql/data/BLRMTL01.pid --skip-locking --port=3306 --socket=/tmp/mysql.sock root 787 32608 0 11:00 pts/1 00:00:00 grep mysql But if I do anything, for example /usr/local/mysql# bin/mysqladmin -version bin/mysqladmin: error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory What bugs me, is that I do have this shared library : locate libmysqlclient /usr/local/mysql/lib/mysql/libmysqlclient.so.15.0.0 /usr/local/mysql/lib/mysql/libmysqlclient.so.15 /usr/local/mysql/lib/mysql/libmysqlclient.so /usr/local/mysql/lib/mysql/libmysqlclient.la /usr/local/mysql/lib/mysql/libmysqlclient.a I am thinking that something's wrong with my configure, I'm stomped. Any help greatly appreciated. Navigate:Previous Message•Next Message Options:Reply•Quote Subject Written By Posted error while loading shared libraries: libmysqlclient.so Yohann Dumais 11/23/2005 10:03AM Re: error while loading shared libraries: libmysqlclient.so Yohann Dumais 11/23/2005 12:37PM Re: error while loading shared libraries: libmysqlclient.so Faisal M 09/14/2007 11:23PM Re: error while loading shared libraries: libmysqlclient.so ryan bui 12/08/2007 06:49PM Re:
CloudFlare Ray ID: 2f6aa4ed2175376e