WordPress file ownership and Permissions

Forside
Vedhæftede filer:
Indlæg som e-mail
+ (text/plain)
+ (text/html)
+ (text/plain)
Slet denne besked
Besvar denne besked
Skribent: PLUG-discuss
Dato:  
Til: Main PLUG discussion list
Emne: WordPress file ownership and Permissions
Hi I am running a local server running Ubunto 16.04LTS with a stock LAMP
install that runs stock Apache.

I have an install of WordPress under
/var/www/vhost/{vhost-name}/public_html

Here is my problem.

I can either FTP or WordPress can edit / remove file. I cannot do both.
Not sure why.

To allow WordPress to modify files I must: (I cannot SFTP)

     * chown -R {my-user-name}:www-data www/
     * chmod -R 755 www/


To allow me to SFTP I must change the file ownership: (WordPress cannot
modify files)

     * chown -R {my-user-name}:www-data www/


I would like to be able to FTP and allow WordPress to modify files.

Any help much appreciated.

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