PHP mysql Apache install on FC3
| From: | robert at littlebitlost dot com | Date: | Thu, 04 Aug 2005 13:26:50 +0000 |
| Subject: | PHP mysql Apache install on FC3 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-219999@lists.php.net to get a copy of this message | ||
Hello,
I am not quite sure if this is the correct mailing list to post this
question, but here I go anyway. I have a vanilla Fedora Core 3
installation, and I am trying to run a php script through a local
website that has calls into a MySQL database. I can run this script
at the command line using the php PHPScript.php command, and it runs
perfectly. When I run it through the firefox web browser, I get an
error that says:
[client 127.0.0.1] PHP Warning: mysql_pconnect(): Can't connect to local
MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in
/var/www/html/index.php on line 4
I have checked the socket, it exists. Again, if I run this script just
using php, it works just fine. However, when running it through Apache or
httpd it does not. What am I doing incorrectly?
Thank you for your time,
Robert