![]() |
|
PHP exec disabled - problem enabling. - Printable Version +- Sentora Support Forums (https://senforums.mach-hosting.com) +-- Forum: Sentora Forum Archives (https://senforums.mach-hosting.com/forumdisplay.php?fid=5) +--- Forum: Sentora Public Support Forums v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=32) +---- Forum: General Support Forum v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=36) +---- Thread: PHP exec disabled - problem enabling. (/showthread.php?tid=2926) |
PHP exec disabled - problem enabling. - asobiek - 07-06-2016 Hi, I am working on a simple control panel to start and stop a shell script. In order to do this, I wanted to use exec() or something similar. Only problem is, I get this error: Warning: exec() has been disabled for security reasons in /var/sentora/hostdata/zadmin/public_html/SITE/server/actions.php on line 6 I have removed all the disable_functions in the php.ini as well as set safe_mode to off. I've also tried this in the httpd.conf: <Directory /etc/sentora/hostdata/zadmin/public_html/*> Options +FollowSymLinks DirectoryIndex index.php <IfModule mod_php5.c> php_admin_value safe_mode off </IfModule> </Directory> I still get the error that it is disabled. What am I missing? RE: PHP exec disabled - problem enabling. - TGates - 07-07-2016 You can enable/disable the protection by going to Module Admin > Apache Config > Override a Virtual Host > [select domain] > Uncheck Suhosin Enabled and wait ~5 minutes for the panel to update the setting. This does create a security risk for that domain, use at your own discretion. RE: PHP exec disabled - problem enabling. - Me.B - 07-07-2016 Such panel will be a big security issues if you ever get hacked. M B |