You may get this error if you try to install new theme or wordpress plugins, or installing update directly from wordpress admin area
Warning: ftp_mkdir() [function.ftp-mkdir]: /public_html/wp-content/plugins/contact-form-7/: Permission denied in /home/hecode/public_html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 240
Could not create directory. /public_html/wp-content/plugins/contact-form-7/
Plugin Install Failed. Read the Solution

Just give chmod 777 to the plugin directory.

And now you are to go!
Try to install new plugins or theme or wordpress upgrade. you are the winner:)

Update: Yesterday I tried to update my WordPress to latest version by using auto unpdate buttom. While I could install new plugins from admin area, but I couldnt update my wordpress! Then I tried below command from SSH
chmod 755 -R public_html
and everything become fine. and now I have latest WordPress just by one click!
Still have problem? No problem!, I’m here to help you.Please let me know how I can help you.
Do you need Professional coder? Hire me
Looking for different WordPress plugin? Try Wishlist member
Andy is one of core WordPress WishList Member Developer. He is in love with WordPress and fun of turning new ideas to WordPress plugin or theme.




Craig
September 2, 2009
4:52 am
I have the above problem, but everytime I try to change my access to 777 I am told I do not have permission. I am using a QNAP 209 server.
admin
September 2, 2009
1:27 pm
Hello Craig,
Thank you for your time and commnet.
First make sure you have right access. for example root user in linux servers have full access.
Also some server does not allow you to chmod 777. Some server even change automatically to chmod 644 if apply chmod 777.
Try chmod 766 or chmod 764.
by the way you can always upload your plugin directly using ftp.
I hope it helped.
Andy
mecal
September 16, 2009
6:48 am
not work for me
Andy
September 16, 2009
4:28 pm
Sorry to hear that. Solving this problem is very simple. all you need is give write permission to the plugin directory.
Just let you know chmod is a Unix/Linux shell command used to change permissions on files. Its name is a contraction of “change mode.”
Please let me know how you applied that?
Andy
Charles
November 25, 2009
4:00 am
Hello Andy,
I’ve tried implementing the suggestion you gave for installing themes and plugins to my existing blog, but am unsure where to access the plugin admin. Is it in the blog admin area or the web hosting company’s admin area. Do you have step-by-step instructions? That would help me greatly.
Thanks for all you help with this.
Andy
December 1, 2009
3:43 pm
Hello Charles,
There are two ways to install a plugin or theme.
A) You can upload them manually using a ftp program directly to your WordPress. Normally path is like this “your_site/wp-content/plugins” or “your_site/wp-content/themes”. Then try to login in your wp admin area and activate that plugin or theme. This way will work most of the times.
B) Second way is same with above, only you no need to copy it with ftp program. You will upload it directly in WordPress admin area. And then you need activate them.
Thank You
Andy
Jarhead
January 25, 2010
4:52 am
I have this problem, but here’s the kicker on two other blogs I can just install plugin’s and theme’s easy, NO ftp window comes up and it just works
Now on this new blog which the host setup and installed for me I have to fill in the FTP connection
HOST:________________
LOGIN:_______________
PASSWORD:____________
and then get the famous cant unzip message.
What gives
stuff24
February 10, 2010
3:59 pm
I also had problems during the installation of plugins and tried your solutions, but did not succeed and I think changing the chmod is not a good solutions.
I found two other solutions: http://stuff24.de/blog/wordpress-could-not-create-directory-plugin-install-failed/