Disable_functions command problems...

Avatar
  • updated
  • Answered

Hello... New customer here. I want to enter a series of disable_functions in php.ini for my site but it seems php.ini is really stripped down via the cPanel MultiPHP INI editor. I did add the line below in editor, but my firewall does not detect it. When I check PHP current settings after line entry it states "disable_functions = opcache_get_status" ...which I'm assuming is the only command InMotion wants to be enforced.... but what if I want to add mine as well? Is it because these values are being enforced in another way, that they are not needed in 8.0.15?  I should add that I came from working in an hosting environment which did not have cPanel... previous web host allowed me to edit php.ini as necessary. Running Joomla 3.10.6 currently with PHP 8.0.15, previously on 7.4.27.

disable_functions = system, shell_exec, passthru, exec, popen, proc_open

Thanks for any insight you may provide!

Avatar
Tim9427

Thanks. I will reach out as you suggested.

Avatar
IMH Support Agent 2
  • Answered

Hello,

Sorry for the issues with editing the PHP.INI file.  typically, you can edit it with either the MlutiPHP Editor in cPanel like you have, or by using the File Manager to edit the file directly (you could also use an FTP client).  However, the PHP.INI file that you are editing would be applicable only to your website/application (on your account) and as I do not have any information about your account, then I can't look to see and confirm that you can make the change you're trying to make.  

Typically, in Shared servers, the server-wide PHP.INI file cannot be edited.  On a VPS or dedicated server, you could get root access and then have access to make changes to the proper file.  I would recommend that you speak with our live technical support team by phone or chat. You can also file a ticket, if needed. They can handle your request privately and securely.  They will be able to have direct access to your account and assist you with that change - or at least determine if you can make it on your account type.

If you have any further questions or comments, please let us know.


Kindest Regards,

Arnel C.