By El Rey Mark on
Hi,
Today I received this error when opening my site:
Error
The website encountered an unexpected error. Please try again later.
Error messagePDOException: SQLSTATE[HY000] [2002] No such file or directory in lock_may_be_available() (line 167 of /var/www/vhosts/drakenbloedboom.com/httpdocs/includes/lock.inc).
I have not worked on my site the last weeks.
My website is completely down.
Does anyone know what the problem might be?
Mark
Comments
Check database
It sounds something is wrong with the database. Check whether you can access it with phpMyAdmin and browse some tables.
Thx
Thx for your reply. I am trying to access y site, however my host does not reply and I cannot reach my database. As soon as my host replies I will know more
If you use MySQL, you might
If you use MySQL, you might have some MyISAM tables that are acting up. If possible restart the database server and your http server and see if everything is ok again. Then, check if you have MyISAM tables and convert them to InnoDB. Be sure to backup your database first.
thx
Thx for your reply. I am trying to access y site, however my host does not reply and I cannot reach my database. As soon as my host replies I will know more
I have access to my database now
Hi I have access to my database.
Howevere I cannot restart the database and http server. I think that is something the host must do?
I have found to tables which are in MyISAM which I have converterd to InnoDB
But the problem remains
I wish I understood why this
I wish I understood why this works, but it has worked for me:
Download your settings.php file
Delete the one on server
Change your db host from localhost to 127.0.0.0
Place back on server
Remember to chmod to 644
127.0.0.1 works for some but not for all
Hi Mark, hi Kimble. I have the same problem at the moment and have been reading a lot about this problem. My site says: PDOException: SQLSTATE[HY000] [2002] No such file or directory in lock_may_be_available() (line 167 of /var/www/vhosts/advokaat-janssens.be/httpdocs/includes/lock.inc).
Changing in de settings.php file to 127.0.0.0 gives a result like 'cant find', and changing localhost to 127.0.0.1 seems to work for some people, but doesn't work for me. I think/hope that the problem lays with the hosting company, but if anyone else has an idea: the're welcome :)
thx
This is my exact error:
PDOException: SQLSTATE[HY000] [2002] No such file or directory in lock_may_be_available() (line 167 of /var/www/vhosts/drakenbloedboom.com/httpdocs/includes/lock.inc).
I looked into my database and converted 2 tables to innoDB
I downloaded my settings.php and
I changed localhost into 127.0.0.0 and it did not work
I changed localhost into 127.0.0.1 and it did not work
I could not delete the settings.php file , but I could upload the changed settings.php file and with it the original was overwritten...
I also see that the "httpdocs" map has been changed in the files direcory into "web"...could this cause the problem...
So the problem still remains. I believe it has something to do with my webhost. It appears they have moved my site to another server. I reached out to them, however they did not reply yet...
Problem solved by host
Mark, My problem was located at the hosting company. They changed the PHP level and added An extra security layer. In my case, they changed it back to the original settings, and the website is up and running again.
thx
Today the problem has been solved by my host. It was exactly the same as you described Tom. Their sites were hacked, so they changed php level and added an extra security layer. Today they changed back the php level and eveything works fine again.