WordPress permissions

Hi I am trying to install a plugin for WordPress and I am being asked for FTP credentials. I had solved this problem with this command:

sudo chown -R myusername:www-data public_html

but now I'm having the same problem again, I don't understand why.

2 Replies

@drtanz:

Hi I am trying to install a plugin for WordPress and I am being asked for FTP credentials. I had solved this problem with this command:

sudo chown -R myusername:www-data public_html

but now I'm having the same problem again, I don't understand why.

I use the following command

sudo chown -R username /var/www/yourdir/

I tend to use it from root(danger danger will robingson). BUT BE SURE TO TURN THE PERMS BACK as it might pose a security risk ;)

A good way to check your file perms is

ls -l -h -a 

Also is your user a part of the group www-data ??

And have a look at the file perms list for the worpress folders on the wordpress site. GL

http://codex.wordpress.org/ChangingFilePermissions

That might help you in your quest ;)

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct