View Single Post
  #4  
Old 10-17-2012, 08:18 PM
cmanns cmanns is offline
Senior Member
 
Join Date: Jun 2010
Posts: 100
Quote:
Originally Posted by pooyan View Post
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...
__________________
-William C.Manns Owner of XenServ Co
Need LiteSpeed Hosting, Server Tuning, or Other Help I'm your guy

http://xenserv.com http://evilpuma.com
Reply With Quote