Why can't WordPress create directories when uploading themes?
Posted
by
Arman
on Stack Overflow
See other posts from Stack Overflow
or by Arman
Published on 2012-09-20T03:35:54Z
Indexed on
2012/09/20
3:37 UTC
Read the original article
Hit count: 481
I can't workout how to solve this problem so wordpress would let me upload themes.
I have a fresh copy of Fedora 17 installed on my dev machine.
I then installed mysql using: yum install mysql mysql-server
. Next I installed WordPress which also installs apache and php: yum install wordpress
I can go to http://localhost/wordpress
and see WordPress working. But when I try tried to install my theme it asked for ftp credentials. I then updated the wp-config.php file and set the FS_METHOD
constant to direct
. Now it doesn't ask for ftp credentials but it gives me this error:
Could not create directory. /usr/share/wordpress/wp-content/themes/my-theme-name/
httpd service is running under 'apache' user and 'apache' group. The /usr/share/wordpress/
directory is recursively own by 'apache' user and 'apache' group too. I've even set the permissions to 777 (also recursively) and even then I keep getting the same error as above.
How can I solve this problem?
© Stack Overflow or respective owner