<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>
<div id="signature"> </div>
<p>Problem solved:</p>
<p><code>sudo chown -R www-data:myusername /var/www/vhost</code></p>
<p>then</p>
<pre><code>sudo find /path/to/your/wordpress/install/ -type d -exec chmod 775 {} \;
sudo find /path/to/your/wordpress/install/ -type f -exec chmod 664 {} \;<br /><br />---</code></pre>
<p id="reply-intro">On 2020-07-03 11:41, Keith Smith via PLUG-discuss wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div id="replybody1">
<div style="font-size: 10pt; font-family: Verdana,Geneva,sans-serif;">
<p><br /></p>
<div><span>I have a development server setup in my office and am trying to edit remote (from another <span style="font-size: 13.3333px;">computer</span>.)</span></div>
<div><span> </span></div>
<div><span>Server is running stock Ubuntu 18.04 with a LAMP configuration.</span></div>
<div><span> </span></div>
<div><span>I have an install of WordPress at /var/www/vhost/test/public_html</span></div>
<div><span> </span></div>
<div><span>The user is bill.</span></div>
<div><span> </span></div>
<div><span>Editor is Visual Studio Code. Connecting remote as user bill.</span></div>
<div><span> </span></div>
<div><span>If I set ownership to www-data:bill (chown -R www-data:bill /var/www/vhost/) WordPress can write to a file and Visual Studio Code can NOT.</span></div>
<div> </div>
<div><span>If I set ownership to bill:www-data (chown -R bill:www-data: /var/www/vhost/) WordPress can NOT write to a file and Visual Studio Code can.</span></div>
<p>Any help much appreciated!!</p>
<p>Keith</p>
</div>
</div>
<br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">---------------------------------------------------<br />PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br />To subscribe, unsubscribe, or to change your mail settings:<br /><a href="https://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank" rel="noopener noreferrer">https://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></div>
</blockquote>
</body></html>