Problem solved:

sudo chown -R www-data:myusername /var/www/vhost

then

sudo find /path/to/your/wordpress/install/ -type d -exec chmod 775 {} \;
sudo find /path/to/your/wordpress/install/ -type f -exec chmod 664 {} \;

---

On 2020-07-03 11:41, Keith Smith via PLUG-discuss wrote:


I have a development server setup in my office and am trying to edit remote (from another computer.)
 
Server is running stock Ubuntu 18.04 with a LAMP configuration.
 
I have an install of WordPress at /var/www/vhost/test/public_html
 
The user is bill.
 
Editor is Visual Studio Code.  Connecting remote as user bill.
 
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.
 
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.

Any help much appreciated!!

Keith


---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss