Greetings all,
I installed last month CPanel on a new server. The WHM version is 11.2.0. I compiled Apache 2 with PHP4 support (most of my clients still have applications which are not compatible with PHP5) and I manually installed PHP5. Everything works very well except for a couple of things:
1) PHP4 works now with suPHP but every time I create an account it adds SuexecUserGroup instead of suPHP_UserGroup (I fix this every time I create a new account by a quick search replace in httpd.conf, but still would be nice to have the right setting written to httpd.conf).
2) This second issue is a bit more serious. Most of the scripts that allow some sort of directory creation/file upload are not working properly. Infact it seems that suPHP ignores the user's umask; all the directories are 744 and it's then impossible to open them by Apache. I tried to change the user's umask to make newly created directories 755 (and it works at command line) but every time I create a new directory from a script it has correct owner and group (my user) but wrong mode (744). I then changed the umask for a test user to 0 and still the php script creates the directory as 744. I checked around and found some documentation for suPHP and apparently it has a configuration file where it's possible to specify the umask to use in the form:
umask=022
(so more similar to a php.ini directive than an apache one) but I could not find that file anywhere (it's supposed to be called suphp.conf).
Any idea on how to fix this?
Thank you in advance
Stefano
I installed last month CPanel on a new server. The WHM version is 11.2.0. I compiled Apache 2 with PHP4 support (most of my clients still have applications which are not compatible with PHP5) and I manually installed PHP5. Everything works very well except for a couple of things:
1) PHP4 works now with suPHP but every time I create an account it adds SuexecUserGroup instead of suPHP_UserGroup (I fix this every time I create a new account by a quick search replace in httpd.conf, but still would be nice to have the right setting written to httpd.conf).
2) This second issue is a bit more serious. Most of the scripts that allow some sort of directory creation/file upload are not working properly. Infact it seems that suPHP ignores the user's umask; all the directories are 744 and it's then impossible to open them by Apache. I tried to change the user's umask to make newly created directories 755 (and it works at command line) but every time I create a new directory from a script it has correct owner and group (my user) but wrong mode (744). I then changed the umask for a test user to 0 and still the php script creates the directory as 744. I checked around and found some documentation for suPHP and apparently it has a configuration file where it's possible to specify the umask to use in the form:
umask=022
(so more similar to a php.ini directive than an apache one) but I could not find that file anywhere (it's supposed to be called suphp.conf).
Any idea on how to fix this?
Thank you in advance
Stefano