WordPress: Cannot create directory
OK, so first few minutes with the new blog, and I have been trying to get wordpress configured. I did the install straightforward enough. I have messed around with it a bit on my laptop locally setup, but finally got my Linux server up and online again so I figured I would make the move.
I had the base install done pretty quickly despite the Fedora RPM giving me headaches, so I just installed a fresh copy without the RPM. As soon as that was done I decided it was time to get some of the plugins and themes installed.
With my local install, the plugin upgrade was very easy to do. Simply browse from the list of available plugins, select the one you wanted, and then have it auto-install. Easy enough. First one's first: "All in One SEO pack", ready... click. Wait for it, wait for it:
Downloading install package from http://downloads.wordpress.org/plugin/all-in-one-seo-pack.zip…
Unpacking the package…
Could not create directory. /var/www/html/blog/wp-content/upgrade/all-in-one-seo-pack.tmp
Crap, well that isn't good, it worked way easier on my laptop. OK, off to the Googles.
I found countless messages about a bug in a version of PHP that I was not running, everyone that has no concern with security just enabling 777 to everything, people disabling php safe mode, but nothing seemed to match my issue. OK Google, you have left me hanging, time to put on the troubleshooting cap. I'm not using ftp, so there is no ftp user mismatch permissions, everything is owned by the web server user, the web server user has write access. Let's check the logs. The error_log is blank, so let's crank up the verbosity.
vi /etc/httpd/conf/httpd.conf, loglevel debug, service httpd restart.
Install plugin: Could not create directory... WTF!?!? Revert that back. Does php have a log? Just for grins
tail /var/log/messages
Jun 12 18:06:14 server setroubleshoot: SELinux is preventing /usr/sbin/httpd from write access on the directory upgrade. For complete SELinux messages. run sealert -l .....
Stupid SELinux always getting in the way of my fun.
'echo 0 > /selinux/enforce'
Install plugin:
Downloading install package from http://downloads.wordpress.org/plugin/all-in-one-seo-pack.zip…
Unpacking the package…
Installing the plugin…
Successfully installed the plugin All in One SEO Pack 1.6.13.3.
VICTORY!!!
A update to /etc/sysconfig/selinux to set the mode to DISABLED, and we are off and running. As for SELinux and how it should be configured, that is for another day, but it is time for some dinner and the power just went out. Looks like a takeout night. At least I don't need to set world writable files in Apache before I can get it properly secured.
Tags
Categories
- Network (1)
- OS (1)
- Performance (2)
- PS3 (1)
- Storage (2)
- NetApp (2)
- Streaming (1)
- Uncategorized (2)
- VMWare (2)
- Web (1)