Jump to content

Featured Replies

Posted

Hi Guys

What do I do about this message please? Just do what it says?

Could contain: Text, File

Edited by 15Degrees

Hi.

These are dangerous functions that need to be disabled in php.ini

  • Author

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

  • Author

Thanks

  • Author

I Have that code in my php.ini but I still get the dangerous notification in admin cp when I log in. I've cleared it a few times but it comes back?

Any ideas please?

  • Community Expert

Those functions cannot be disabled in php.ini for a single site's folder. They need to be disabled at the server level.

  • Author

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.

  • Community Expert
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

  • Author

You mean like this in WHM root in PHP ini editor mode for the PHP version? (I added the line as there was nothing after the = sign before).

Could contain: Chart, Plot

Recently Browsing 0

  • No registered users viewing this page.