Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

2 Answers 2

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
1  
@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 at 12:47
    
A user that php is running under. –  Radek May 14 at 2:16

Your Answer

 
discard

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.