Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 630
Manny Calavera Avatar asked Aug 16 '10 11:08

Manny Calavera


2 Answers

Execute this command on your ubuntu terminal

sudo chown -R www-data /var/www
like image 130
PrivateUser Avatar answered Oct 30 '22 22:10

PrivateUser


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)
like image 13
blockhead Avatar answered Oct 30 '22 22:10

blockhead