PHP exec disabled - problem enabling.
#1
PHP exec disabled - problem enabling.
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 

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?
 
Reply
#2
RE: PHP exec disabled - problem enabling.
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.
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
#3
RE: PHP exec disabled - problem enabling.
Such panel will be a big security issues if you ever get hacked.

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Problem with roundcube pgh2011 0 3 ,165 01-30-2021, 12:48 AM
Last Post: pgh2011
Import zpanel settings problem pgh2011 0 3 ,197 12-30-2020, 07:08 PM
Last Post: pgh2011
Senator crash problem with mysql provokas 3 12 ,245 08-20-2020, 04:11 AM
Last Post: Your Creator

Forum Jump:


Users browsing this thread: 1 Guest(s)