View Single Post
  #1  
Old 10th May 2009, 22:31
FeraTechInc FeraTechInc is offline
Senior Member
 
Join Date: Feb 2007
Posts: 138
Thanks: 3
Thanked 6 Times in 6 Posts
Default Strange folder permissions from PHP scripts.

PHP Version - 5.2.4-2ubuntu5.5
MySQL Version - 5.0.51a-3ubuntu5.4
Server API Version - apache2handler
OS Version - Ubuntu 8.10
ISPConfig 2.2.x

So several sites that I have use PHP scripts to create folders in an uploads gallery. However, once these folders are created they aren't writable by the site.

The scripts are set to chmod the folders to 777 but these created folders have the following permissions:

owner:
www-data
permission:
755

The owner should be obviously webX where X is the number of the site.
Reply With Quote
Sponsored Links