Jump to content

Site Access Problem When Using "www."


usr8481

Recommended Posts

I can normally open my site without "www." but if I try to open site with it ("www.example.com") it shows the error:

 

Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

 

 

Thanks for your service.

Link to comment
Share on other sites

cPanel username - usr8481

domain - I have only one domain (main - without www)

server -Stevie

 

p.s. recently it was working ok

 

It seems the problem with wordpress (mb after update or some plugin - but I didn't install any new plugin, only wordpress was updated to new version). So I'll also try to see what could be the problem

Link to comment
Share on other sites

I found the problem - W3TC plugin of wordpress created www.domain folder in /public_html/wordpress/wp-content/cache/page_enhanced/, it should only create domain folder (without www). I've removed it and access via www.domain works normally now

 

Thank you again for your service

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...