Thread: Error http 500
View Single Post
Old June 8th, 2010, 03:49 PM   #13 (permalink)
Infopro
Junior Member
Verified Customer
 
Join Date: Dec 2003
Location: Pennsylvania
Posts: 29
Lightbulb

Quote:
Originally Posted by Chuck S View Post
yes strange indeed. Most servers when you create directories the default permissions are 755 for a directory and 644 for a file. That way neither is writable but I am sure there are more stringent setups out there as seen here. I mean at least the error given was straight forward. Can not be group writable. Real simple go back and remove write permissions on directories and files from group.
You have no experience at all with a server that runs SuPHP do you, Chuck?

When Photopost creates a directory (a user uploads a photo, if no directory is available, PP creates it), it is hard coded to create that directory (mkdir) with permissions of 0755 and then chmod to 0777 it uploads the file itself (the image) and chmod to 0777 as well.

The code that does this is located in the pp-inc.php, simply search for 0777 and you'll find it in the latest 702 release.

No directory can be greater than 755, no file higher than 666, or you will have problems in a SuPHP setup running Photopost.

Nothing at all strange about that. What is strange though is that the latest PP 702 still uses this old wore out chmod everthing to 0777 code as that will (or used to) solve any problems the silly inexperenced users came across.

Times have changed, time to upgrade the code to something that works correctly in multiple environments.

In the mean time if someone runs into this problem, they run a secure server with SuPHP, have your host reset permissions on all directories and files in your PP installation properly and then edit the code in the pp-inc.php before you upload or move one more file on your gallery.

Yes, strange indeed, Chuck.
Infopro is offline   Reply With Quote