Re: Apache and PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Danesh Daroui wrote:

file and also checked PHP.ini file to see if mysql.so which has PHP mysql functions is loaded and it was loaded correctly. Also, when I run my mysql script by PHP command line interpretet as: php MySQLScript.php it show correct message and connects successfuly, but through web server it does not. Can anybody help ?

Sounds like an issue with how you're connecting. You need to connect to your mysql server through localhost:3306 from the web server (or at least make the UNIX domain socket read/write to the web server user, but don't do that). Since you run from the command line with different user privileges, standard connect works. However, I'd guess that doing so as the web server user doesn't work.


Brian

--
Brian Richardson
Software Developer
Public Key available at http://www.cubik.ca/



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux