local wordpress installation, plugin installation and file permissions

Posted by user1205935 on Ask Ubuntu See other posts from Ask Ubuntu or by user1205935
Published on 2012-12-12T06:11:50Z Indexed on 2012/12/12 17:19 UTC
Read the original article Hit count: 1051

Filed under:
|
|

I have a local wordpress installation and got everything working, until I tried to install a new plugin. Trying to activate the plugin, wordpress asked me for FTP connection information, which I understood to be a failure of write-access to the plugins directory. Apache runs as www-data, so I ran sudo chown -R www-data: /var/www/wordpress to make the wordpress directory writable for Apache. But now, I cannot edit the files as user anymore. Changing file permissions back to chown -R user: /var/www/wordpress/wp-content/themes, the wordpress dashboard complains again, that it doesn't have sufficient access.

I tried various "solutions" online, but none have worked so far. Do I really need to install something like proftp and create an FTP user & password for my local server? Or can I circumvent the problem with some nifty file permission settings, which allow both me and Apache to access/write the files?

© Ask Ubuntu or respective owner

Related posts about permissions

Related posts about chmod