Can't update plugins on one click wordpress install?

February 24, 2015 1.1k views

Hiya, faily familiar with a comman line and ubuntu, file permissions etc

I've been trying the Digital Ocean One Click Apps to see if it's easier than setting up and maintaining my own open source web control panel like Open Panel or Vesta

I've setup a website on a Digital Ocean 512mb droplet and is workign great for smaller sites but when in wordpress and I try to update plugins or themes it can't write to the server?

Is there a clean way of allowing it to update or do I need to mess with folder permissions by hand?

Any help kindly apprceiated


1 Answer

You can ensure that Apache has permission to write to your files by running the following command on your droplet as root:

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

If you are going to be running a full LAMP stack (Linux, Apache, MySQL, PHP) on a 512MB droplet I would strongly recommend setting up a swap file, otherwise these services are likely to consume the available memory resulting in services crashing.

by Justin Ellingwood
Swap space can be used as an "overflow" area for your system when you run out of RAM. The operating system can store data that would normally be kept in RAM on the hard drive in a specially formatted file. In this guide, we'll demonstrate how to create and use one of these files in Ubuntu 14.04.
Have another answer? Share your knowledge.