Search code examples
wordpressftpwordpress-hook

Wordpress on Ubuntu install plugins without FTP access


I run my own web server for development and, on it, I installed a WordPress instance. When I try to add plugins to this instance from the admin interface, WordPress asks for FTP access.

I don't use FTP and have no plans to do so in the future. I know I can change some configuration in WordPress so that I am able to upload without FTP. What exactly should I configure to accomplish this?


Solution

  • One of three things:

    1. Either change permissions so your web server can read the wp-content directory, which should be fine for a development server.
    2. Run PHP as FastCGI which can run as a different user than your web server.
    3. Install the ssh extension for PHP (sudo apt-get install libssh2-php on ubuntu on think)