Question

Server Pilot and Wordpress: WP cannot access webserver

Hello,

I have just created my first droplet and am using Server Pilot to manage my server. Server Pilot’s uses a custom LAMP/LEMP stack. I followed their tutorial on installing Wordpress on my server here: https://serverpilot.io/community/articles/install-wordpress-on-ubuntu.html.

The installation went well and everything seemed fine, but when I tried to install or delete plugins, I was unable to do so, and I get a message on Wordpress that shows this:

“Connection Information To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.”

Server Pilot has tutorials on how to install plugins, but they never mention this big problem. If anyone can help me solve what is wrong here, I would be extremely grateful.

Thanks so much!


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.

I found out the answer for anyone else having this problem!

ssh into your server and use this command, which is basically what kamaln said, except that it applies to the whole app folder:

sudo chown -R serverpilot:serverpilot /srv/users/serverpilot/apps

An explanation can be found here: http://serverpilot.io/community/articles/how-to-fix-file-permissions.html

Thanks to kamaln and the Server Pilot team for such quick responses!

You need to grant your webserver permission to write to the plugins directory. SSH into your droplet and run the following command:

sudo chown -R serverpilot:serverpilot /srv/users/serverpilot/apps/your-app-name/wp-content