php log file that traces php to mysql connections troubles !
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
php log file that traces php to mysql connections troubles !
Hi to all,
i'am looking for the file on my redhat (v5) machine that have both php v5 and mysql v5.1.35, that traces the troubles for php while accessing mysql, any one can help ?
i looked up for that in php.ini and found many lines related to mysql, but did not find the one i was looking for, i also changed the "mysql.connect.timeout" setting it to -1 instead of 60, but the problem is somewhere else !
It seems that PHP can't connect to my sql DB even after installing manualy the "my sql Connector" files( i mean copying the files of the downloaded packets since we can't do it using "yum" on that RedHat machine ! )
What we are actually doing is "to clone" an "ubuntu" machine on a redhat machine, taking tools we need to move and installing software we need ( not making a ".tar" files like we deed for other tools, for exemple when installing "mysql" and "php" ) and finally, regarding the DB, i made a dump for each and every DB and it works ! )
Why can't you d/l and install the native rhel mysql, php, php-mysql packages and then import the sql dumps into mysql? Using a different distro's packages is most likely not going to work.
Anyway you can try the following commands to see if you miss something for mysql support in php:
====> it seems to me that there no packeges installed for mysql under php and this confirm that is a problem of connection between php and mysql !
Further more, since php is installed and it works and mysql too ( since i can connect to DB and make quarries ) it is either missing files that allows communication between php and mysql but we copied the files of the package "php-mysql5.1.6-23.2.el5_3asp121.386.rpm" manually since with "yum" it did not work ! or it shoul be installed somewhere else !!!!
please help cause i spent a lot of time over this pbm.
If yum doesn't work, you have to download all 3: php, mysql and php-mysql packages in your server and use "rpm -ivh package-name" to install them. Of course you have to uninstall first the previous php and mysql.
Copying the files from the rpm manually in their locations should work, but it's better allow rpm to do its job.
According to this, you need also the libmysqlclient.so.15 library.
You mean that you're going to compile php from source?
If that's the case you can get the latest 5.3.0 version from www.php.net. To compile php you'll need also the devel packages for apache (it contains apxs) and mysql. Look for httpd-devel and mysql-devel in your repository.
Thank you so much for help, but at the moment, the problem will be frozen, since that RedHat machine is not the target machine, i mean the one that will be used at the end, and we'll probably do all directly on the final one that have an active Licence and on which "yum" will work fine, and if we'll have the same problem on it, we'll do what you actually proposed to fix this kind of problem the way you suggested.
Regards
=======================================
we went back to this problem once again this morning, and we found this site "http://hulan.info/item/compile-apache-with-ssl-php-5-and-mysql-on-linux" that describes the entire process to compile PHP and all the related Software such as MySQL and Apache, in way to allow PHP connect properly to my DB !!!.
Do any one knows where i can download a compiled PHP version, that takes into account MySQL (while compiling ) so that i can finally resolve this problem JUST DOWNLOADING IT AND NOT SPENDING MUCH TIME ON COMPLING PROCESS ?!
THANK YOU SO MUCH, IT WILL BE VERY HELPFULL SINCE IT SEEMS TO ME THAT THIS PROBLEM HAS NO END
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.