@@ -1460,7 +1460,11 @@ function update($event_name, $data) {
14601460 //exec('chown -R '.$data['new']['system_user'].':'.$data['new']['system_group'].' '.escapeshellcmd($fastcgi_starter_path));
14611461 $ app ->system ->chown ($ fastcgi_starter_path , $ data ['new ' ]['system_user ' ]);
14621462 $ app ->system ->chgrp ($ fastcgi_starter_path , $ data ['new ' ]['system_group ' ]);
1463- $ app ->system ->chmod ($ fastcgi_starter_path , 0550 );
1463+ if ($ web_config ['security_level ' ] == 10 ) {
1464+ $ app ->system ->chmod ($ fastcgi_starter_path , 0755 );
1465+ } else {
1466+ $ app ->system ->chmod ($ fastcgi_starter_path , 0550 );
1467+ }
14641468
14651469 $ fcgi_tpl = new tpl ();
14661470 $ fcgi_tpl ->newTemplate ('php-fcgi-starter.master ' );
@@ -1503,7 +1507,11 @@ function update($event_name, $data) {
15031507
15041508 $ app ->log ('Creating fastcgi starter script: ' .$ fcgi_starter_script , LOGLEVEL_DEBUG );
15051509
1506- $ app ->system ->chmod ($ fcgi_starter_script , 0550 );
1510+ if ($ web_config ['security_level ' ] == 10 ) {
1511+ $ app ->system ->chmod ($ fcgi_starter_script , 0755 );
1512+ } else {
1513+ $ app ->system ->chmod ($ fcgi_starter_script , 0550 );
1514+ }
15071515 $ app ->system ->chown ($ fcgi_starter_script , $ data ['new ' ]['system_user ' ]);
15081516 $ app ->system ->chgrp ($ fcgi_starter_script , $ data ['new ' ]['system_group ' ]);
15091517
@@ -1596,7 +1604,11 @@ function update($event_name, $data) {
15961604 $ app ->system ->mkdirpath ($ cgi_starter_path );
15971605 $ app ->system ->chown ($ cgi_starter_path , $ data ['new ' ]['system_user ' ]);
15981606 $ app ->system ->chgrp ($ cgi_starter_path , $ data ['new ' ]['system_group ' ]);
1599- $ app ->system ->chmod ($ cgi_starter_path , 0550 );
1607+ if ($ web_config ['security_level ' ] == 10 ) {
1608+ $ app ->system ->chmod ($ cgi_starter_path , 0755 );
1609+ } else {
1610+ $ app ->system ->chmod ($ cgi_starter_path , 0550 );
1611+ }
16001612
16011613 $ app ->log ('Creating cgi starter script directory: ' .$ cgi_starter_path , LOGLEVEL_DEBUG );
16021614 }
@@ -1629,7 +1641,11 @@ function update($event_name, $data) {
16291641 $ app ->log ('Creating cgi starter script: ' .$ cgi_starter_script , LOGLEVEL_DEBUG );
16301642
16311643
1632- $ app ->system ->chmod ($ cgi_starter_script , 0550 );
1644+ if ($ web_config ['security_level ' ] == 10 ) {
1645+ $ app ->system ->chmod ($ cgi_starter_script , 0755 );
1646+ } else {
1647+ $ app ->system ->chmod ($ cgi_starter_script , 0550 );
1648+ }
16331649 $ app ->system ->chown ($ cgi_starter_script , $ data ['new ' ]['system_user ' ]);
16341650 $ app ->system ->chgrp ($ cgi_starter_script , $ data ['new ' ]['system_group ' ]);
16351651
0 commit comments