Wordpress on Ubuntu install plugins without FTP access Wordpress on Ubuntu install plugins without FTP access wordpress wordpress

Wordpress on Ubuntu install plugins without FTP access


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)


Execute this command on your ubuntu terminal

sudo chown -R www-data /var/www


I was not satisfied with any of these answers so I kept on searching. I found an answer that was so simple I was surprised it had not been mentioned already.

https://askubuntu.com/a/826805/145472

This answer says to add a line to wp-config.php

define('FS_METHOD', 'direct');

Job done. I cannot take credit for knowing this but I do feel it needs a mention here too.