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

November 8, 2017 373 views
WordPress MySQL Ubuntu 16.04
aleemkhan
By:
aleemkhan

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

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.

Have another answer? Share your knowledge.