Wordpress ftp credentials

  • Posted on October 5, 2013
  • c-outletAsked by c-outlet

Good day,

After the wordpress has been transferred ex another hosting I am required to fill in the FTP credentials each time I want to install plugin. I tried to add define(‘FS_METHOD’, ‘direct’); however no result.

Although I can access ftp through one of the clients, it seems that ftp credentials received from Digital Ocean are not valid for my wordpress, because I keep receiving error in FTP username and/or passport.

Please suggest possible reasons for that and any solution.

Many thanks in advance.

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.

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.