bschwarting
Member
Posted 16 years ago #
I'm now on VPS, setting up version 1.3. When I try to upload an image in a post, i get this error. I've tried changing all of them to 777 with no luck, so i started searching and saw some stuff about ownership. Who should own what directory? In my setup, by default everything is owned by root except blogs.dir which is owned by apache.
Does that sound correct?
Unable to create directory /var/www/vhosts/default/htdocs/wp-content/blogs.dir/4/files/. Is its parent directory writable by the server?
MrBrian
Member
Posted 16 years ago #
Type 'chown root.root -R /var/www/vhosts/default/htdocs/wp-content/blogs.dir' and double make sure it's 777.
bschwarting
Member
Posted 16 years ago #
it's 777, triple double checked :)
Is there a user/group for the web account?
bschwarting
Member
Posted 16 years ago #
by web account, do you mean apache?
Nope. I mean the user/group attached to the account for the main domain.
MrBrian
Member
Posted 16 years ago #
Try deleting blogs.dir with your FTP program and then re-create it and chmod again. Or maybe shared hosting is for you.
MrBrain - he just moved *off* shared. :D
It's okay, b. It's a steep learning curve, but you'll get it.
bschwarting
Member
Posted 16 years ago #
Shared hosting is for me? Not sure i get that.
I tried to upload the 1st time, WP creates blogs.dir with no sub-directories. If I manually create the 2nd and 3rd level directories, it uploads fine. Not sure I understand what could be causing this. If WP can create blogs.dir, why can't it create sub-directories?
The main domain account is root.
Have you tried letting root own blogs.dir?
lunabyte
Member
Posted 16 years ago #
Why let root own it? How about the user apache is running as?
"the user apache is running as"
There, that's what I meant. :D
bschwarting
Member
Posted 16 years ago #
thanks all, got this fixed. my bro-in-law was in town this weekend and he helped me out. he's a sr. unix admin at oracle. the permissions ended up getting "half changed" in the directories. (ssh crash) half were on root, half were on apache so it got confused. changed them all to apache and WPMU is finally happy!
thanks again!
Anonymous
Unregistered
Posted 15 years ago #
This worked for me, using a Plesk environment:
Make sure the web server user (apache in my case) is a member of the group owner of the blogs.dir folder (psacln in my case.) Doing this enabled me to keep the blogs.dir and subfolders 775.
usermod -G psacln apache
If using cpanel server , you should delete or rename the blogs.dir folder to something else ( for ex : blogs.dir2 ! )
then create new folder manually ( blogs.dir )and set 777 permissions .
Then problem will be fix automatically :) .
Um, no. That's a security risk and leaves you open to problems.
The blogs.dir subdirectory is created by the webserver during install and should be left alone.