I am experiencing a umask problem with a PHP script that is managing image/file uploads. The resulting uploaded file has unix permissions of 600 and is therefore not readable by apache.
I have checked the umask in
/home/cpeasyapache/src/suphp.conf
/opt/suphp/etc/suphp.conf
and both are set to 0022 - which should give me 644 permissions.
server default umask is set to 0022.
php5 handler is set to suPHP so is Apache setting the incorrect umask on these files?
If I use file manager or ftp to upload files i get the expected 644 permissions (umask 0022). There is no umask or chmod function in the PHP file upload script.
Going slightly bonkers trying to find an answer.
cPanel 11.25.0-R42404
WHM 11.25.0 - X 3.9
CENTOS 5.4 i686



LinkBack URL
About LinkBacks
Reply With Quote





