Question

Wordpress asking for FTP Credentials

https://www.digitalocean.com/community/articles/how-to-install-wordpress-on-ubuntu-12-04, Okay, I used this for installing my wordpress. When I am trying to install a new theme, it is asking for FTP credentials, but I don’t know what to insert.

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This is user’s permission problem that will be solved by method given below that worked for me.

step-1 : First open wp-config.php file of your wordpress installation folder. step-2: Copy below code and paste it at the end of the wp-config.php file.

define('FS_METHOD','direct');

step-3: Now open your droplet access console and enter root as username and its password. step-4: Copy below code and paste it into access console where you have to specify your plugin directory path and then hit enter.

chmod 777 /yourwebsitename/public/wp-content/plugins/

Note: Replace your website name in the place of yourwebsitename. Thank you.

Does running the following commands fix it? <br><pre>sudo chown username:www-data /var/www -R <br>sudo chmod g+w /var/www -R</pre>

After you upload your files, you’ll want to make sure ownership permissions are set to Apache so that Wordrpess can update and/or install plugins without requiring FTP credentials. You can set permissions via SSH.

Single site hosting:

chown -R apache:apache /var/www/html

Multi site hosting:

chown -R apache:apache /var/www/

You may need to do this whenever uploading folders.

Source: http://www.visiblexposure.com/seomiami/configure-server-permissions-wordpress-not-require-ftp-plugin-installsupdates/