LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 11-25-2008, 08:12 AM   #1
yandos
LQ Newbie
 
Registered: Nov 2008
Posts: 7

Rep: Reputation: 0
Question 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

Last edited by yandos; 11-25-2008 at 09:36 AM.
 
Old 11-26-2008, 12:54 AM   #2
yandos
LQ Newbie
 
Registered: Nov 2008
Posts: 7

Original Poster
Rep: Reputation: 0
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...
 
Old 12-11-2008, 07:20 AM   #3
mike-aso
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Rep: Reputation: 0
what is the solution ?

I am using Red hat enterprise 5. have the same problem as yours.
 
Old 12-11-2008, 07:20 AM   #4
mike-aso
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Rep: Reputation: 0
what is the solution ?
I am using Red hat enterprise 5. have the same problem as yours.
 
Old 12-12-2008, 01:44 AM   #5
yandos
LQ Newbie
 
Registered: Nov 2008
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
is there a client install for MySql so PHP can connect to MySQL Server? alar Linux - Software 8 07-03-2007 07:42 PM
LXer: Use Zend Core PHP on System i LXer Syndicated Linux News 0 03-31-2007 09:16 AM
LXer: Zend Goes Straight to The PHP Core LXer Syndicated Linux News 0 03-06-2007 09:01 AM
LXer: Zend Partners with Google, IBM, MySQL and Microsoft to Grow PHP LXer Syndicated Linux News 0 11-04-2006 11:33 AM
PHP can't connect to MySQL westchester Linux - Software 13 07-02-2005 10:45 PM


All times are GMT -5. The time now is 11:13 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration