Re: WordPress file ownership and Permissions

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: James Mcphee
Date:  
To: Main PLUG discussion list
Subject: Re: WordPress file ownership and Permissions
Also, you're going to want to add your user to the www-data group. Then
check to see what perms a modified or added file has. If it's not
something you can write to, you'll have to set some suids or default facls.

On Thu, Jun 20, 2019 at 7:42 PM James Mcphee <> wrote:

> You need to give www-data write access for wordpress to be able to write
> to files. chmod -R 775 www/
> Whether a web daemon SHOULD have access to edit its own files is a whole
> nother question.
>
> On Thu, Jun 20, 2019 at 7:35 PM <> wrote:
>
>>
>> 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
>
>
>
> --
> James McPhee
>
>



--
James McPhee

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