Reply to Re: [PHP] PHP mysql Apache install on FC3

Your name:

Reply:


Posted by Vidyut Luther on 08/04/05 17:37

Look into the SELinux settings for your system, if you have that
enabled, by default PHP is not allowed to get that file via the user
nobody.
If you look into /var/log/messages you'll see some selinux messages.

You either need to disable selinux, or set your policy...http://
fedora.redhat.com/docs/selinux-faq-fc3/

that url should help.


On Aug 4, 2005, at 9:26 AM, robert@littlebitlost.com wrote:

> 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
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

[Back to original 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

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