Knowledge Base Hub

Browse through our helpful how-to guides to get the fastest solutions to your technical issues.

Home  >  cPanel  >  How to Disable PHP Functions using Control Panel?
Top Scroll

How to Disable PHP Functions using Control Panel?

 2 min

Steps to Disable PHP Functions :

1. Log in to Control Panel.

2. Go to CGI and then Scripted Language Support.

3. Click on PHP Scripting.

4. You can see your php.ini file that gets displayed in a text box at the bottom.

5. If your editing is disabled then click on Edit to make changes in the php.ini file.

6. Find the block of codes within your php.ini file as given below :

; – Using this directive you can disable certain functions for the security purposes.
This directive receives a comma-delimited list of function names. It is NOT affected by the status of Safe Mode i.e. even if it is On or Off.
; http://php.net/disable-functions
disable_functions=

7. Immediately after ‘disable_functions=’, write down the functions those you want to disable (for example exec, passthru, popen). Here is a list that you can disable in order to improve security :

• exec
• passthru
• shell_exec
• system,
• proc_open
• popen
• curl_exec
• curl_multi_exec
• parse_ini_file
• show_source

8. Now click on Save.

That’s it.
These are some of the common PHP functions that are disabled usually. Performing this operation using the control panel is very easy.

Also Read :

1)Change control panel language (cPanel)

2)How to access control panel ?

3)Getting Started with cPanel

For our Knowledge Base visitors only
Get 10% OFF on Hosting
Special Offer!
30
MINS
59
SECS
Claim the discount before it’s too late. Use the coupon code:
STORYSAVER
Note: Copy the coupon code and apply it on checkout.