How to Disable PHP Functions from WHM Panel?

This article demonstrates the process of deactivating specific PHP functions on your server through WHM to enhance security. Some PHP functions can be exploited by hackers on web hosting servers, posing potential risks. While these functions are not inherently malicious, it is advisable to disable them as a precautionary measure to bolster overall security. 

Follow these steps to disable PHP functions:

  1. Access your WHM account by logging in.

https://www.eukhost.com/kb/wp-content/uploads/2022/05/1-9-300x285.png

  1. Select the category titled "Software."

https://www.eukhost.com/kb/wp-content/uploads/2022/05/2-11.png

  1. "MultiPHP INI Editor" is the option that you should select.

https://www.eukhost.com/kb/wp-content/uploads/2022/05/3-8.png

  1. Choose the "Editor Mode."

https://www.eukhost.com/kb/wp-content/uploads/2022/05/4-9.png

  1. Choose the relevant "PHP version" from the provided dropdown menu.

https://www.eukhost.com/kb/wp-content/uploads/2022/05/5-9.png

  1. The INI settings corresponding to the selected PHP version will be displayed.

https://www.eukhost.com/kb/wp-content/uploads/2022/05/6-9.png

  1. Utilize "Ctrl+F" to open the search box, and then search for "disable_functions."

https://www.eukhost.com/kb/wp-content/uploads/2022/05/8-5.png

https://www.eukhost.com/kb/wp-content/uploads/2022/05/7-7.png

  1. Input the following to deactivate the PHP functions.

https://www.eukhost.com/kb/wp-content/uploads/2022/05/9-5.png

  1. Subsequently, press the "Save" button.

https://www.eukhost.com/kb/wp-content/uploads/2022/05/10-2.png

  1. An achievement message will be displayed as follows.

https://www.eukhost.com/kb/wp-content/uploads/2022/05/11-2.png

This method represents the simplest and most fundamental way to deactivate PHP functions in WHM.


Was this article helpful?

mood_bad Dislike 0
mood Like 0
visibility Views: 147