
10-17-2012, 08:18 PM
|
|
Senior Member
|
|
Join Date: Jun 2010
Posts: 100
|
|
Quote:
Originally Posted by pooyan
I installed lsws on DA
when i run
service httpd stop
service lsws start
Also i compiled PHP via console
and test a website display this error:
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)
I searched on this forum and find related post and run this command but problem not fixed,
# ln /var/lib/mysql/mysql.sock /tmp
ln: creating hard link `/tmp/mysql.sock' to `/var/lib/mysql/mysql.sock': File exists
Please help me
regards
|
Just use 127.0.0.1 for now
One thing if you don't have all dev packages for MySQL/MariaDB/PerconaDB the LiteSpeed compile will give MySQL errors. Make sure 127.0.0.1 works first (ensure your user allows connections from localhost first, it should)
You should be all set then. Also next time compile the mysql socket to the proper directory mysql creates it in...
|