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.