Wordpress Need Password When Installing Plugins

In recent few days I played with Xen VPS because I have one spare to domain to use for studying linux and also learning on how to manage server on vps. Most of my domains are still on managed hosting because I have not much experience yet on Linux and self managed server.

This post will be short and also for my own documentation in case I forgot and need to setup new server in the future. After installing Wordpress I got few problems untill now:

  1. My wordpress need ftp information (username and password) when installing new plugins such as w3 total cache, wp super cache and almost any plugins.
  2. When changing permalinks I have to modify the .htaccess manually because wordpress can’t do it automatically.

So what’s the solution?

Both of them indicate permission problem because the files on html folder still owned by root (or other) and apache can’t modify it.

The solution is simple, just set the folder permission to your web server. I use apache so I take quick look at the httpd.conf (mine located at /etc/httpd/conf/httpd.conf to find yours just type “locate httpd.conf” on command line) if you’re using nginx or lighthttpd you have to locate the config and see the user and group.

I see on my httpd.conf the user and group = apache and I just have to set the server files and folders permission to apache (default is root) by using this command:

chown -fR apache /var/www/html

And problem solved.

Comments