Apache and PHP

Brian Richardson brian at cubik.ca
Sat Nov 27 04:15:12 UTC 2004


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/





More information about the users mailing list