Our wordrpess website is getting shutdown almost everyday ""

Posted November 8, 2017 989 views
MySQLWordPressUbuntu 16.04

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.


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.

Submit an Answer
1 answer

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.