BigWil
Verified User
- Joined
- Aug 5, 2004
- Messages
- 300
Martynas,
I would like an answer to the file uploading as chmod 600 issue under PHP5/suPHP. I have confirmed that the same thing is happening for ALL domains on both of the machines I have upgraded to use custombuild with the same options.
Is anyone else out there seeing this problem? A typical web application with upload capability is uploading files as owned by the user but chmoded 600. This causes the web browser to not display the said upload such as an image for instance which just has the red ex because of the forbidden error it is getting. Trying to access the image that was uploaded directly does actually produce the "Forbidden" page.
All folders from /home/username/ /home/username/domains down are all owned by the user as they should be. Yet suPHP still saves the file as 600. Checking the suphp.conf file umask is set to umask=0022 as it should be.
Image example:
-rw------- 1 theusername wheel 8962 Dec 2 03:03 logo.gif
options.conf
#PHP settings. default_php possible values - 4 or 5
default_php=4
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
zend=yes
#Possible values - 5.0 or 5.1 (4.1 is possible too, but it's EOL)
mysql=4.1
mysql_inst=no
#Possible values - 1.3, 2.0 or 2.2
apache_ver=1.3
PHP5/suPHP is great so far with the exception of uploading items. Any insight from anyone would be greatly appreciated.
BigWil
I would like an answer to the file uploading as chmod 600 issue under PHP5/suPHP. I have confirmed that the same thing is happening for ALL domains on both of the machines I have upgraded to use custombuild with the same options.
Is anyone else out there seeing this problem? A typical web application with upload capability is uploading files as owned by the user but chmoded 600. This causes the web browser to not display the said upload such as an image for instance which just has the red ex because of the forbidden error it is getting. Trying to access the image that was uploaded directly does actually produce the "Forbidden" page.
All folders from /home/username/ /home/username/domains down are all owned by the user as they should be. Yet suPHP still saves the file as 600. Checking the suphp.conf file umask is set to umask=0022 as it should be.
Image example:
-rw------- 1 theusername wheel 8962 Dec 2 03:03 logo.gif
options.conf
#PHP settings. default_php possible values - 4 or 5
default_php=4
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
zend=yes
#Possible values - 5.0 or 5.1 (4.1 is possible too, but it's EOL)
mysql=4.1
mysql_inst=no
#Possible values - 1.3, 2.0 or 2.2
apache_ver=1.3
PHP5/suPHP is great so far with the exception of uploading items. Any insight from anyone would be greatly appreciated.
BigWil