HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Changing default file upload permissions in PHP-CGI (http://www.howtoforge.com/forums/showthread.php?t=27172)

dabro 26th September 2008 20:15

Changing default file upload permissions in PHP-CGI
 
I have just realized file uploads using PHP, the permissions are defaulted to 600 and the webserver cannot see them. I'm running php5-cgi and the owner and group are being set properly, eg. web##_admin, web##. But the permissions should be set to 644. I don't see any way to change the default umask in the php.ini config file.

I originally set this server up using SU-PHP in a tutorial available here. Since that time I have updated and upgraded my server using apt. Everything appeared to still be functioning fine. What did I break? How can I tell what user Apache is running under? I'm using Drupal and it is still operating properly, if I create a directory inside Drupal it, it creates the directory with owner- web##_admin and group- web## with default permission of 775, which appears properly. But if I upload a file inside drupal the ownership is correct but the permission is 600. Not viewable. Any help would be appreciated, Dave

BTW my ISPConfig version is 2.2.23

till 27th September 2008 09:53

The ownership is correct. To set another umask of the uploaded file, you can e.g. use the chmod command in php.


All times are GMT +2. The time now is 22:59.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.