WordPress file ownership and Permissions

James Mcphee jmcphe at gmail.com
Thu Jun 20 19:47:22 MST 2019


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 <jmcphe at gmail.com> 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 <techlists at phpcoderusa.com> 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 - PLUG-discuss at lists.phxlinux.org
>> To subscribe, unsubscribe, or to change your mail settings:
>> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
>
>
> --
> James McPhee
> jmcphe at gmail.com
>


-- 
James McPhee
jmcphe at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20190620/54fc2606/attachment.html>


More information about the PLUG-discuss mailing list