LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   help with zend core php + mysql, cannot connect. (https://www.linuxquestions.org/questions/linux-server-73/help-with-zend-core-php-mysql-cannot-connect-685967/)

yandos 11-25-2008 08:12 AM

help with zend core php + mysql, cannot connect.
 
Hello everyone,
first time poster here, need help.
i have a red hat server, that functions mainly as a web server.
after a while i registered again for the official updates, i updated the system with quite a few updates.

after restart i found out that the sites on the http directory could not access the mysql DB.

i run Zend core package. i could start the mysql service manually and log in to mysql. the problem is only when the websites (php?) tries to connect to DB.

i ran a phpinfo() and find nothing to mention the mysql lib there.
when i edited the php.ini i think all the relevent commands were there.

would really be happy if someone can direct me how to solve this,
thanks.

php 5.2.1, latest apache

p.s. a real newby here, i thought about posting this at newbies section but wasn't sure.

edit: after some digging i think that for some reason php started using a different php.ini file.
i'm not sure if just replacing the files is a good idea, but that currently used one has no extension=mysql.so line in it... would still be glad for any help

yandos 11-26-2008 12:54 AM

well, i got it..
for some reason one of the updates replaced the php.ini used to another one in some other directory. don't know why...
so that was the problem and the solutions...

mike-aso 12-11-2008 07:20 AM

what is the solution ?
 
I am using Red hat enterprise 5. have the same problem as yours.

mike-aso 12-11-2008 07:20 AM

what is the solution ?
I am using Red hat enterprise 5. have the same problem as yours.

yandos 12-12-2008 01:44 AM

hey mate,
all i had to do is delete the new php.ini created by some update installation, and restore the old one. lucky for me, the old one was in a /usr/local/Zend directory, and the new one that for some reason replaced it was in /etc/php.ini.

i hope this help,
yandos.


All times are GMT -5. The time now is 06:23 AM.