1. Knowledge Base
  2. >
  3. Results
  4. >
  5. Article

Scripting: How to Disable PHP Functions

  1. Log in to your account Hosting Summary
    Hosting tab
  2. On the left pane, click on the Scripting Config.
    scripting config
  3. Under Scripting Configuration, click on the Manage PHP Scripting link.
    manage scripting config
  4. Under Actions, click on the Manage php.ini link.
  5. Locate the following block of code within your php.ini file:
; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names.
; http://php.net/disable-functions
disable_functions =

6. Just after 'disable_functions = ', write out the functions you want to disable (example: exec,passthru,popen). Here is a list of functions that are commonly disabled as a means to improve security:
  • exec
  • passthru
  • shell_exec
  • system,
  • proc_open
  • popen
  • curl_exec
  • curl_multi_exec
  • parse_ini_file
  • show_source
7. Click the Save button once you are done.
save button

Important: Some themes, plugins, and features for popular PHP-based website builders (such as WordPress) may rely on one or more of these functions. Disabling these functions may cause certain features to stop working (notably, some WordPress automatic backup plugins).

Thanks for visiting! Since you landed on this page of our website, we wanted to let you know you visited one of our paid endorsers while researching your purchase. close