Changing Umask Leads to mod_fcgid errors
To enhance security, I changed my system umask in /etc/profile to 007. After this, creating new websites would no produce websites that could use PHP. I got errors such as:
In looking at the code, I see in:
on line 958:
exec('chmod 755 '.$fcgi_starter_script);
That is fine for modifying the mode of the .php-fcgi-starter file, but the directory is created on line 925 and is created with the default umask. That's the problem. So, before this line, I inserted:
and all worked again.
Perhaps this umask should be in a more global or earlier location. Can any of the devs suggest a more permanent fix?
In ISPConfig 3.0.5 RC1, the umask is set globally in the server.sh script for the ispconfig proces, so your problem can not accur in the latest ispconfig version.
Thanks for the reply. It's good to know. Of course, I tend to only update to stable versions and the current stable version is 188.8.131.52. Do you know when the 3.0.5 version will become the stable version?
|All times are GMT +2. The time now is 17:54.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.