Do You know this Wordpress message?

Name:  wordpress-ftp-connection-information.png
Views: 135
Size:  31.4 KB

Connection Information
To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.
If You facing it too and do not want to waste time entering FTP details everytime you upgrade, install plugins etc, then you need to check you files permissions.

Example, i ZIPped my files on old hosting and unzipped on new linux server. The above issue was fixed by changing user permissions for the wordpress files and folders.

example my files are at:
/home/admin/wordpressblog/

ls -l /home/admin/wordpressblog
Code:
total 5972-rw-r--r-- 1 admin admin    2822 Mar 26 04:21 _htaccess_
drw-r--r-- 2 admin admin    4096 May  4  2010 cgi-bin
-rw-r--r-- 1 admin admin     394 May  4  2010 fantastico_fileslist.txt
-rw-r--r-- 1 admin admin      36 May  4  2010 fantversion.php
-rw-r--r-- 1 admin admin     395 Mar 20  2013 index.php
-rw-r--r-- 1 admin admin   19929 Mar 20  2013 license.txt
-rw-r--r-- 1 admin admin    9177 Mar 20  2013 readme.html
-rw-r--r-- 1 admin admin      82 Apr 28  2013 robots.txt
-rw-r--r-- 1 admin admin    3177 Apr  9  2012 script-main.php
-rw-r--r-- 1 admin admin    3151 Apr  9  2012 script-sub.php
-rw-r--r-- 1 admin admin    2231 Apr  9  2012 script-sub_.php
-rw-r--r-- 1 admin admin 5172363 Aug 23  2011 sitemap.xml
-rw-r--r-- 1 admin admin  671240 Aug 23  2011 sitemap.xml.gz
drw-r--r-- 6 admin admin    4096 Mar 27 00:00 tube
-rw-r--r-- 1 admin admin    4663 Mar 20  2013 wp-activate.php
drwxr-xr-x 9 admin admin    4096 Mar 20  2013 wp-admin
drw-r--r-- 9 admin admin    4096 Nov 12  2012 wp-admin_
-rw-r--r-- 1 admin admin    1354 Jul 30  2012 wp-app.php
-rw-r--r-- 1 admin admin     226 Sep 17  2011 wp-atom.php
-rw-r--r-- 1 admin admin     271 Mar 20  2013 wp-blog-header.php
-rw-r--r-- 1 admin admin    3522 Mar 20  2013 wp-comments-post.php
-rw-r--r-- 1 admin admin     244 Sep 17  2011 wp-commentsrss2.php
-rw-r--r-- 1 admin admin    3182 Mar 20  2013 wp-config-sample.php
-rw-r--r-- 1 admin admin    2673 Mar 26 03:56 wp-config.php
drwxrwxr-x 8 admin admin    4096 Apr  3 17:50 wp-content
-rw-r--r-- 1 admin admin    2718 Mar 20  2013 wp-cron.php
-rw-r--r-- 1 admin admin     246 Sep 17  2011 wp-feed.php
drwxr-xr-x 9 admin admin    4096 May 19  2013 wp-includes
drw-r--r-- 8 admin admin    4096 May 19  2013 wp-includes_
-rw-r--r-- 1 admin admin    1997 Mar 20  2013 wp-links-opml.php
-rw-r--r-- 1 admin admin    2408 Mar 20  2013 wp-load.php
-rw-r--r-- 1 admin admin   29310 Mar 20  2013 wp-login.php
-rw-r--r-- 1 admin admin    7723 Mar 20  2013 wp-mail.php
-rw-r--r-- 1 admin admin     413 Feb  5  2012 wp-pass.php
-rw-r--r-- 1 admin admin     224 Sep 17  2011 wp-rdf.php
-rw-r--r-- 1 admin admin     334 Feb  5  2012 wp-register.php
-rw-r--r-- 1 admin admin     224 Sep 17  2011 wp-rss.php
-rw-r--r-- 1 admin admin     226 Sep 17  2011 wp-rss2.php
-rw-r--r-- 1 admin admin    9899 Mar 20  2013 wp-settings.php
-rw-r--r-- 1 admin admin   18219 Mar 20  2013 wp-signup.php
-rw-r--r-- 1 admin admin    3700 Mar 20  2013 wp-trackback.php
-rw-r--r-- 1 admin admin    2719 Mar 20  2013 xmlrpc.php
as you can see i have "admin" permissions..

Check which username is assigned to apache by command: ps aux | grep apache
Code:
apache   3815  1.7  1.4 322884 29608 ?        S    18:13   0:04 /usr/sbin/httpd
apache   12091  3.3  1.3 320836 28832 ?        S    18:16   0:02 /usr/sbin/httpd
apache   12093  3.2  1.3 321860 29060 ?        S    18:16   0:02 /usr/sbin/httpd
apache   17409  1.0  1.0 316444 22824 ?        S    18:17   0:00 /usr/sbin/httpd
root     23757  0.0  0.0   6136   572 pts/0    R+   18:17   0:00 grep apache
you see in first column "apache" so it is that username which you can try to change permissions to.

so i went one folder up (cd /home/admin/) and did command:
Code:
chown -R apache:apache wordpressblog
that command changes user permissions recursivelly for wordpressblog folder and its subfolders. If you do above command in wrong directory, you can make fatal failures on your system. You should probably backup your files first if you are not sure what you are doing.