Loading...

Knowledge Base

Scripting: How to Disable PHP Functions

  1. Log in to Account Manager.

    Checkout Domain order

  2. On the left pane, click on Hosting.

    Checkout Domain order

  3. Under Hosting Packages, click the MANAGE button next to the package you want to access.Checkout Domain order
  4. Under Scripting Configuration, click on the Manage PHP Scripting.

    Checkout Domain order

  5. Under PHP Scripting Config, access Manage php.ini.

    Checkout Domain order

  6. Locate the following block of code within your php.ini file:

    Checkout Domain order

  7. 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

  8. Click the Save button once you are done.

    Checkout Domain order

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).
Did you find this article helpful?

 
* Your feedback is too short

Loading...