15Degrees Posted July 20, 2023 Posted July 20, 2023 (edited) Hi Guys What do I do about this message please? Just do what it says? Edited July 20, 2023 by 15Degrees
SeNioR- Posted July 20, 2023 Posted July 20, 2023 Hi. These are dangerous functions that need to be disabled in php.ini
15Degrees Posted July 20, 2023 Author Posted July 20, 2023 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
15Degrees Posted July 23, 2023 Author Posted July 23, 2023 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?
teraßyte Posted July 23, 2023 Posted July 23, 2023 Those functions cannot be disabled in php.ini for a single site's folder. They need to be disabled at the server level.
15Degrees Posted July 23, 2023 Author Posted July 23, 2023 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.
Miss_B Posted July 23, 2023 Posted July 23, 2023 (edited) 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 July 23, 2023 by Miss_B
15Degrees Posted July 24, 2023 Author Posted July 24, 2023 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).
Recommended Posts