<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p><br /></p>
<p>Hi I am running a local server running Ubunto 16.04LTS with a stock LAMP install that runs stock Apache.</p>
<p>I have an install of WordPress under /var/www/vhost/{vhost-name}/public_html</p>
<p>Here is my problem.</p>
<p>I can either FTP or WordPress can edit / remove file. I cannot do both. Not sure why.</p>
<p>To allow WordPress to modify files I must: (I cannot SFTP)</p>
<ul>
<li>chown -R {my-user-name}:www-data www/</li>
<li>chmod -R 755 www/</li>
</ul>
<p><span>To allow me to SFTP I must change the file ownership: (WordPress cannot modify files)</span></p>
<ul>
<li><span>chown -R {my-user-name}:www-data www/</span></li>
</ul>
<p><span>I would like to be able to FTP and allow WordPress to modify files.</span></p>
<p><span>Any help much appreciated.</span></p>
<p><span>Thanks!!</span></p>
<p><br /></p>
</body></html>