Question

Our wordrpess website is getting shutdown almost everyday "http://www.desertadventures.com/"

Posted November 8, 2017 794 views
MySQL WordPress Ubuntu 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 82.193.159.6:53218] PHP Warning: mkdir(): Permission denied in /var/www/html/wp-content/plugins/Akismet3/Akismet3.php(35) : runtime-created function on line 49, referer: http://www.desertadventures.com/contact/faq/

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

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.

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.

Submit an Answer