Why Do Permissions Need To Be Higher On Some Servers, Can It Be Changed?

ttmw

Member
Mar 30, 2011
13
0
51
I was wondering if anyone could tell me why on some servers , scripts or software runs fine on lower permissions...say chmod 750, but then on a different server the same code needs permissions 777 to work. I've just uploaded a new script and it wont work without using permissions of 777 on the files...can i change this in WHM or anywhere? I really don't want to leave files with 777 permissions.

Thanks in advance :)
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
DSO requires higher file permissions, while suPHP and FCGI don't require higher file permissions for PHP scripts. I believe I probably already handled this question in your other forum thread in my last reply:

http://forums.cpanel.net/f5/hacked-...ation-not-permitted-200852-p2.html#post824842

Basically, some machines are using DSO for the PHP handler and some are using suPHP or FCGI. New cPanel installs default to suPHP for the PHP handler. In the past, the default was DSO instead, so older machines might be using DSO.