Report this

What is the reason for this report?

Server Pilot and Wordpress: WP cannot access webserver

Posted on October 12, 2014

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!



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!

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.

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

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!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.