Cannot install WordPress plugin update – FTP Error

I ran into a problem when trying to update plugin in a fresh installed wordpress on a ClearOS Box! 😉

So I got it working by doing this and then ran this:

chown -R apache:apache /var/www
find /var/www/ -type d -exec chmod 755 {} \;
find /var/www/ -type f -exec chmod 644 {} \;

All working good now.

Optional : Add define(‘FSMETHOD’, ‘direct’); in wp-config.php
Not recommended for obvious Security issues!

OLD NOTES : as long as you have one (1) site apache is Ok, but when you have more sites you should never give them the same user, regardless if using the direct FS_METHOD in your wp-config or not. Why? If one site is hacked all others will be too.

We are in a Virtual Server Era now… will investigate this!