WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My nginx user is www-data. If I do su www-data I can create both file and directory.

But when installing plugin I am asked for FTP credentials.

I tried to give the public_html directory 777 permissions for a while to test if I can install plugin without providing FTP credentials but it didn't help either.

  • WP 3.2.1
  • nginx
  • ubuntu

How can I install plugins without providing FTP credentials.

share|improve this question
up vote 3 down vote accepted

You can set this in the wp-config.php, check the Editing wp-config.php page in the docs.

share|improve this answer
Yes, I can but I don't want to for reasons (security etc..) – Radek Jul 17 '11 at 10:43
@Radek if someone got as far as your wp-config.php - there is no security left to worry about. – Rarst Jul 17 '11 at 11:14
@Rarst: you're right ... but when searching for answer before posting my question. I found above solution. And somebody mentioned security reasons why not to do so. – Radek Jul 17 '11 at 11:28
@Radek, it's better to add FTP credentials to the wp-config.php than to add it to your database (the fields you can fill in during the update process). When you paste them directly into the wp-config.php they're not send through POST like the default process (that's why it's safer). – Hiranthi Jul 18 '11 at 13:07

The owner of the files must be php user. To have php user in the group is not good enough.

share|improve this answer
What is 'php user'? – AlxVallejo May 12 '14 at 12:47
A user that php is running under. – Radek May 14 '14 at 2:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.