usr8481 Posted May 13, 2016 Posted May 13, 2016 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.
Tjoene Posted May 14, 2016 Posted May 14, 2016 Please post the following information:Your cPanel username Your main domain The server that you are on
usr8481 Posted May 17, 2016 Author Posted May 17, 2016 Your cPanel usernameYour main domainThe server that you are on I've sent you a pm
wolstech Posted May 17, 2016 Posted May 17, 2016 Please post the information here so all of us can see it. If you don't want to post the domain/server, the username by itself is fine. Everything else we can look up.
usr8481 Posted May 17, 2016 Author Posted May 17, 2016 cPanel username - usr8481domain - 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
wolstech Posted May 18, 2016 Posted May 18, 2016 I can't even visit that site to see what's going on. I get a 403 error that says it's not allowed in my country. Please unblock the USA so that we can assist you.
usr8481 Posted May 18, 2016 Author Posted May 18, 2016 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
wolstech Posted May 18, 2016 Posted May 18, 2016 Glad to see you figured it out Let us know if you need anything else.
Recommended Posts