WordPress on Ubuntu 18.04 file ownership and permissions issue

techlists at phpcoderusa.com techlists at phpcoderusa.com
Fri Jul 3 16:28:33 MST 2020


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 at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20200703/6c8cd4a0/attachment.html>


More information about the PLUG-discuss mailing list