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:
-
Access your WHM account by logging in.
-
Select the category titled "Software."
-
"MultiPHP INI Editor" is the option that you should select.
-
Choose the "Editor Mode."
-
Choose the relevant "PHP version" from the provided dropdown menu.
-
The INI settings corresponding to the selected PHP version will be displayed.
-
Utilize "Ctrl+F" to open the search box, and then search for "disable_functions."
-
Input the following to deactivate the PHP functions.
-
Subsequently, press the "Save" button.
-
An achievement message will be displayed as follows.
This method represents the simplest and most fundamental way to deactivate PHP functions in WHM.