What may be causing the installation errors I continue to get when trying to auto update anything in WordPress? I’ve been manually upgrading everything for quite some time, and I’ve tried all sorts of permissioning schemes.
Here’s a sample error:
Installing Theme: Indore 1.0.1
Downloading install package from http://wordpress.org/extend/themes/download/indore.1.0.1.zipâ¦
Unpacking the packageâ¦
Could not create directory. /public_html
Thanks!
The
Could not create directory. /public_html
error message can be related to multiple issues.Most of them are related to your file-system. This includes the type of filesystem (e.g. NTFS under windows based servers) and the access settings for those. You have not named any in your question, so I assume some linux based host because of popularity and the type of slash.
So you need to first take a look what is going on behind the scenes. A little checklist to be helpful resolving such issues that just came out of my mind (just add feedback if you like):
File System Access Checklist
/public_html
out of your error message.FS_CHMOD_DIR
).FS_CHMOD_FILE
).How to perform the tests? If you don’t know how to perform these tests in context of your wordpress installation, please contact technical support for either your host and or wordpress.
Additional stuff you should check are the file-system methods. A helpful thingy to gain more knowledge here is Core Control (WordPress Plugin), good to know for use is this WordPress Filesystem Abstraction FAQ (DD32 Blogpost).
As I assume it’s most probably some configuration issue related to your file-system I assumed that you’re using the direct method for file-system-access. If not, the checklist above might help you to enable your server for the direct method which is the preferred one.
I think this is due to the ftp user and the webserver user being different.
If you can login through ssh, try selecting “ftps” in the wordpress upgrade dialog. Otherwise, ask your hosting provider to login as root and assign al your files to your ftp user, as it is possible that some are currently assigned to the web server user, giving rise to the error you encounter.
I am also having this problem, and have resigned to upgrading manually…