Wordpress and server permissions... Uploads directory issue.
Posted: Wed Feb 03, 2010 10:33 am
I've recently helped a non-profit with a website using Wordpress 2.9 and I'm having problems with the "Uploads" directory.
It all started when I tried to set everything up--I made my edits using WAMP on my laptop and then uploaded everything to the server. When I did this, I immediately noticed that the Wordpress application was having problems displaying images. Upon further analysis, I discovered that it only happened with the folders found in the "Uploads" directory--it seemed as if it was unable to create folders.
So I immediately thought it had something to do with permissions, but since everything was already at 755, I decided to avoid the constant advice of setting everything to "777" and continue looking for other options.
I then came across some post somewhere that explained that having ownership of the files / directories could cause this issue. The post continued to explain that by using phpinfo(), you can see who the group / owner is. I did this, and indeed, it was different than what was being shown within my SFTP program. Could this be the case? I tried changing it using CHOWN, but due to server limitations, I was unable to. I've sent an e-mail to the sys admin, but I'm worried that this will do nothing for me.
It's my perspective that this shouldn't be an issue with a fresh install of Wordpress and manually resetting permissions every time a new month folder is generated seems to defeat the purpose of content management (I shouldn't have to log into the server using my SFTP app to assign 777 to whatever folder is being created, etc.).
Does anyone have any insight into this? I've tried posting about this over on Wordpress.whatever and I can never seem to get anyone to get past the 777 solution. God, this is so frustrating. I keep asking myself if I could've avoided this, but honestly, Wordpress had everything this agency needs in terms of functionality (hehe, except this minor issue of uploads). Oh, and another proposed solution to this that I've read about has been to un-check the box that organizes everything by month. Doing this, though, manages the uploads in a sloppy way--and again, defeats the cms aspect of using Wordpress.
It all started when I tried to set everything up--I made my edits using WAMP on my laptop and then uploaded everything to the server. When I did this, I immediately noticed that the Wordpress application was having problems displaying images. Upon further analysis, I discovered that it only happened with the folders found in the "Uploads" directory--it seemed as if it was unable to create folders.
So I immediately thought it had something to do with permissions, but since everything was already at 755, I decided to avoid the constant advice of setting everything to "777" and continue looking for other options.
I then came across some post somewhere that explained that having ownership of the files / directories could cause this issue. The post continued to explain that by using phpinfo(), you can see who the group / owner is. I did this, and indeed, it was different than what was being shown within my SFTP program. Could this be the case? I tried changing it using CHOWN, but due to server limitations, I was unable to. I've sent an e-mail to the sys admin, but I'm worried that this will do nothing for me.
It's my perspective that this shouldn't be an issue with a fresh install of Wordpress and manually resetting permissions every time a new month folder is generated seems to defeat the purpose of content management (I shouldn't have to log into the server using my SFTP app to assign 777 to whatever folder is being created, etc.).
Does anyone have any insight into this? I've tried posting about this over on Wordpress.whatever and I can never seem to get anyone to get past the 777 solution. God, this is so frustrating. I keep asking myself if I could've avoided this, but honestly, Wordpress had everything this agency needs in terms of functionality (hehe, except this minor issue of uploads). Oh, and another proposed solution to this that I've read about has been to un-check the box that organizes everything by month. Doing this, though, manages the uploads in a sloppy way--and again, defeats the cms aspect of using Wordpress.