Quantcast
Channel: How can I set the default permissions for files uploaded by apache2? - Server Fault
Browsing latest articles
Browse All 3 View Live

Answer by Itai Ganot for How can I set the default permissions for files...

Apache inherits its umask from its parent process (i.e. the process starting Apache). This should typically be the /etc/init.d/{apache,httpd} script. So you can put a umask command in that script. #...

View Article



Answer by CookieCrash for How can I set the default permissions for files...

You can change the permissions after uploading the file with the php function chmod. http://php.net/manual/en/function.chmod.php

View Article

How can I set the default permissions for files uploaded by apache2?

When I upload files through php, it writes the file with the permissions 644 (-rw-r--r--). I have my /var/www/html folder setup with setgid, so that all files uploaded are set to a group that should...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images