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 disable functions
#2
RE: PHP disable functions
Greentings sunardi, and welcome to the Sentora Community Smile

You should first enable PHP Debugging (see php.net: error_reporting manual) on your php.ini (see Sentora Docs: Important Paths):
PHP Code:
// Report all PHP errors (see changelog)
error_reporting(E_ALL); 
Note: This should NEVER be left enabled for production servers.


With Debugging enabled you will see errors and not only a blank page (when you try to connect to the Sentora Panel).
Read those errors and try to find what needs to be changed.

Suhosin
Sentora uses suhosin (suhosin Official Website) as the executor, you should check your httpd-vhosts.conf (see Sentora Docs: Important Paths) and edit the following line (only the last line matters, the rest is just for reference):
PHP Code:
<virtualhost *:80>
ServerName yourdomain.com
ServerAlias  www
.yourdomain.com
ServerAdmin admin
@yourdomain.com
DocumentRoot 
"/var/sentora/hostdata/user_account/public_html/yourdomain_com"
php_admin_value open_basedir "/var/sentora/hostdata/yourdomain/public_html/yourdomain_com:/var/sentora/temp/"

# EDIT THE LINE BELOW #
php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec" 

Editing this, instead of php.ini is, in my opinion, the best way to do it (disable unwanted commands) within Sentora (please, someone correct me if I'm wrong), this will keep them available to Sentora Panel but not for other users.

If you really want to globaly disable those commands, please check witch ones are needed by Sentora by following the steps above (enable PHP debugg and search).
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora

[Image: vanguardly-logo-micro.png]
Graphic and Web Design. Development.
www.vanguardly.com


Reply
Thanks given by:


Messages In This Thread
PHP disable functions - by sunardi - 04-08-2015, 10:03 PM
RE: PHP disable functions - by apinto - 04-09-2015, 12:17 AM
RE: PHP disable functions - by Ron-e - 04-09-2015, 12:22 AM
RE: PHP disable functions - by apinto - 04-09-2015, 12:29 AM
RE: PHP disable functions - by sunardi - 04-09-2015, 02:45 AM
RE: PHP disable functions - by Me.B - 04-09-2015, 05:04 AM
RE: PHP disable functions - by sunardi - 04-12-2015, 07:28 AM
RE: PHP disable functions - by Me.B - 04-12-2015, 09:50 AM
RE: PHP disable functions - by sunardi - 04-12-2015, 10:59 AM
RE: PHP disable functions - by Kevvo - 04-11-2016, 07:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Can i permanently disable domain access log??? BloodySky 1 4 ,620 08-17-2018, 07:04 AM
Last Post: TGates
Sentora disable proc_open ? avidican 2 6 ,828 03-31-2018, 02:11 AM
Last Post: nscloud
Disable Client Custom Error Pages sanction 4 10 ,414 07-09-2017, 02:29 PM
Last Post: Ron-e

Forum Jump:


Users browsing this thread: 1 Guest(s)