Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache / PHP / MySQL connection problem

Status
Not open for further replies.

flubbard

Technical User
Jun 11, 2003
148
US
It seems like there are a few other posts on here with similar errors but none help. When I try to connect to mysql from a php webpage I get the following error:
Code:
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
Both httpd and mysqld are running on the same server and running through local host. /var/lib/mysql/mysql.sock is present and I have tried restarting mysql

As an aside, I have moved the base directory and have a symbolic link to the new directory.
 
The link has permissions 777 but the directory that is linked to it is set with 755. Owner and group are both mysql.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top