Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
storage locations - write denied
Avatar
Leonardo Babauta
Member
Free Members
sp_UserOfflineSmall Offline
Dec 4, 2012 - 10:41 am

Under the Storage Locations section under Integration, it shows all my SP folders with a green checkmark for "Location found", but a red X for "Write - denied".

I went to those folders in FTP and set all their permissions to 775 (they were 755), but this hasn't changed the "write - denied" status of the folders in the SP panel.

How do I resolve this problem?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 4, 2012 - 1:01 pm

Did you check the /wp-content and the /sp-resources parent folders as well?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Leonardo Babauta
Member
Free Members
sp_UserOfflineSmall Offline
Dec 4, 2012 - 1:48 pm

/sp-resources was already at the same permissions level (775) but /wp-content was at 755 ... I've updated it to 775 but no change in the SP storage locations panel.

Any other ideas?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 4, 2012 - 2:52 pm

Well it is php that is telling SP that it can't write to that location so that's all we do to determine capability.
Do you have any 'security' type plugins active? Any unusual changes to your .htaccess file that might be blocking it?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 4, 2012 - 3:28 pm

You also need to check the directory owner. That is the uid/gid of sp-resources. It should match wp-content. In some php flavors and configs it does not get created right.

Avatar
Leonardo Babauta
Member
Free Members
sp_UserOfflineSmall Offline
Dec 4, 2012 - 3:35 pm

1. I don't have any security plugins except possibly Digital Access Pass, a membership plugin that restricts pages to members on my site. Could that be the problem? Have you dealt with DAP or other membership plugins before and found a fix?

2. How do I check the directory owner? I used an FTP program (Transmit) to change the permissions of the folders. I believe using root access.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 4, 2012 - 3:41 pm

No DAP would not be the problem and yes we have dealt with it before although I seem to recall one or two problems long the way... a topic for another day perhaps!

Yes indeed the UID and GUI could be the culprit. Most ftp programs will tell you these for any given folder - at least the ones i use do (Cyberduck on the Info popup) but I have never used Transmit.

They need to be the same as the wp-content folder.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Leonardo Babauta
Member
Free Members
sp_UserOfflineSmall Offline
Dec 4, 2012 - 3:56 pm

The owner and group of /wp-content is "www-data" while the owner and group of /sp-resources and all the folders in it is "root". Is the source of the problem here?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 4, 2012 - 3:59 pm

Oh yes- almost certainly. Not sure how that could have happened though as all folders should inherit from the parent they are placed within. They should a be 'www-data'.
Can you change? Or you might gave to ask your host support to quickly do it. Might be worth mentioning it happened in any case.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Leonardo Babauta
Member
Free Members
sp_UserOfflineSmall Offline
Dec 4, 2012 - 5:10 pm

OK, took me a little while because I had to figure out how to use Terminal to ssh into my server and then how to use chown, but I got it! And learned some stuff in the process.

All is fixed.

Thanks for the help.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625