Question

Unable to add content or install plugins on Wordpress

Hi there,

Since migrating my website to Digital Ocean (www.jamesgphotography.co.uk) I am unable to upload new content or install/update plugins due to file permission issues?

Can anyone help point me in the right direction?

Thanks,

James

Using Ubuntu 14.04


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

First find out the username of the PHP/Apache process by creating the following PHP script:

<?php
$processUser = posix_getpwuid( posix_geteuid() );
print $processUser['name'];
?>

Access this script on your browser and it’ll print a name, usually www-data or apache. Then execute chown as follows:

chown -R username:username /var/www/html/

Replace username with what the script printed.

Did you try to change the chmod via ssh?