Jump to content

You have dangerous PHP


15Degrees

Recommended Posts

Ive created this file. Does it look right?

 

; cPanel-generated php ini directives, do not edit
; Manual editing of this file may result in unexpected behavior.
; To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
; For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)

allow_url_fopen = Off
allow_url_include = Off
display_errors = Off
enable_dl = Off
file_uploads = On
max_execution_time = 120
max_input_time = 120
max_input_vars = 3000
memory_limit = 2056M
post_max_size = 300M
session.gc_maxlifetime = 1440
session.save_path = "/var/cpanel/php/sessions/ea-php81"
upload_max_filesize = 256M
zlib.output_compression = Off

# list of function to disable globally #
disable_functions =exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source,pcntl_exec

Link to comment
Share on other sites

12 minutes ago, 15Degrees said:

Any instructions on how to do that as I have control the server. I just need pointing in the right place and I can do it. I have WHM root access.

You can edit it fromthe  PHP Configuration Editor area which is located. under Service Configuration Tab.

Check  the Advanced Mode option, scroll down and paste the PHP functions that you want to disable in the disable_functions field. And don't forget to save the changes.

Edited by Miss_B
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...