You are here: PHP / MySQL on Fedora - can't make it work « PHP SQL « IT news, forums, messages
PHP / MySQL on Fedora - can't make it work

Posted by Dan on 09/27/05 00:55

Hi,

I can't figure out why PHP can't access any MySQL databases on my Fedora
2.6.8. I have no problem executing php scripts that do not deal with MySQL.
Also, I have no problem accessing MySQL databases using mysql (locally or
remotely).
phpinfo() reports '--with-mysql=shared,/usr' '. Initially I thought that
certain php's and mysql defaults are not in sync so I created /etc/my.cnf
with:

[client]
socket=/var/lib/mysql/mysql.sock
port=3306
[myssqld]
socket=/var/lib/mysql/mysql.sock
port=3306

and then updated /etc/php.ini as follows:

mysql.default_socket = /var/lib//mysql/mysql.sock
mysql.default_port = 3306

I restarted both Apache and MySQL. Still no luck.

I'm running Apache 2.0.51 and PHP 4.1.

Could someone please give me some ideas what could be wrong here?

Thanks,
Dan.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация