This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

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
Thanks given by:
#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
Thanks given by:
#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

10$ free to start your VPS
Reply
Thanks given by:


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

Forum Jump:


Users browsing this thread: 1 Guest(s)