Our wordrpess website is getting shutdown almost everyday ""

I am trying to check the apache logs and this is what i have gathered ::-

[Wed Nov 08 09:06:25.792086 2017] [:error] [pid 11744] [client] PHP Warning: mkdir(): Permission denied in /var/www/html/wp-content/plugins/Akismet3/Akismet3.php(35) : runtime-created function on line 49, referer:

i have ported the website from shared hosting to digital ocean droplet by reading the documentation provided on your tutorial.

I have to restart the droplet everytime to bring the site live.

Any leads will be appreciated.

Regards, Rajiv


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

It is odd that the error goes away with a restart but it looks like a pretty straightforward permissions error. This likely means that your web files are not owned by the user account used by the web server but rather are still owned by the user account used to upload them. You can correct this with:

chown -Rf www-data:www-data /var/www/html

This is assuming that you are using the default web root for your WordPress installation.