tags:

views:

35

answers:

1

Hello. I run my own webserver for development and I installed a Wordpress blog but when I try to add plugins from admin it asks for FTP access. I don't use FTP and don't want to use and I know I can change some permissions for Wordpress to be able to upload without FTP. What do I need to configure for this ?

Thank you.

+2  A: 

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)

blockhead
+1 - Just dealt with this issue myself. I used solution #1 and `chown`'d the directory containing wordpress to user `www-data`.
Ryan Tenney
@Ryan for you own sake and sanity, it might be better to use setfacl to give you and www-data access to it, just so you can access the files as well.
blockhead
You just blew my mind. I never knew `setfacl` existed, but it will undoubtedly make my life easier. Thanks!
Ryan Tenney