Wordpress Plugins & Backups Not Running Quite Right

November 14, 2015 2k views
Apache WordPress Linux Basics Configuration Management LAMP Stack Backups Ubuntu

So I just fired up a new droplet running Ubuntu 15.10x64 and I'm setting up a Wordpress environment. I am setting it up from scratch without a Wordpress image.

I followed a lot of the tutorials here on Digital Ocean to get setup, and the site is running pretty well. I did not setup the extra layer of security with a 'wp-user' user and group because I was getting a lot of permissions issues.

I can upload images, etc. fine and install plugins. However, I noticed that the there may be something wrong with permissions for plugins. I am running Wordfence for security and a plugin called Backupwordpress for DB and full site backups.

Backupwordpress writes the backups to wp-content/uploads/backupwordpress.. but when I run a back up it runs as if its completing a backup, but the backup never shows. When I check the uploads folder there is nothing there... No errors, nothing.

My uploads folder is owned by $username:www-data as well as the backupwordpress folder with the permissions: drwxrwxr-x

I've also noticed that Wordfence won't run any security scans, but again no actual errors.

The plugins folder has permissions of drwxr-xr-x.

Any idea what I'm doing wrong? I use these plugins on a very regular basis (literally everyday) and have never encountered this so it must be my server environment. Also, are there any security issues I may have created while trouble shooting based on these usergroups and permissions?

Thank you so much.

4 comments
  • As a side note, my apache error log is blank.

  • Now the only thing I see showing up in the log is this:

    [Sat Nov 14 18:51:45.798164 2015] [cache_disk:error] [pid 1160] [client 68.2.********] AH00717: Premature end of cache headers., referer: http://ericwstout.com/wp-admin/tools.php?page=backupwordpress
    [Sat Nov 14 18:51:48.698167 2015] [cache_disk:error] [pid 1072] [client 68.2.********] AH00717: Premature end of cache headers., referer: http://ericwstout.com/wp-admin/admin.php?page=Wordfence
    

    but I'm not sure if that has to do with the issue at all.

    I've also created new instances of Wordpress in other Apache Virtual Hosts and they do the same thing...

  • If you just want your wordpress to run flat and smooth you may use a specialised blog hosting from some providers who specialise on this like http://v-sys.org/services/hosting/blog_hosting.
    In this case you just have your wordpress installed, cache and plugins set up and just concentrate on your webmaster job, not hosting issues )

  • @seojohnsmith Sure, but part of this is learning and understanding what is happening and why.

1 Answer

This actually turned out to be a DNS and Firewall issue. Allowing the correct ports on UFW allowed Wordfence to connect and run the scans. I was faking the DNS locally by editing the local host file on my machine and it was causing issues. Now that the site is actually live, it works flawlessly.

Have another answer? Share your knowledge.