No announcement yet.

How to Enable shell_exec function for one account?


Ads on showthread pages

  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Enable shell_exec function for one account?

    WordPress Hosting on SSD Servers
    You may have disabled PHP functions like system,passthru,shell_exec,curl_exec in php.ini file of your server. If you want to enable any particular function for only one account then it is possible. However, It is only possible if you have installed suhosin extentions in your server.

    Below are the exact steps to enable a particular PHP function:

    1. Remove all functions from disable_functions in php.ini
    2. Add functions in php.ini suhosin.executor.func.blacklist = “” those you want to disable globally.

    After that in the virtual host section of a domain you can add below code to enable a function only for one domain:

    <IfModule mod_php5.c>
    php_admin_value suhosin.executor.func.blacklist = “shell_exec”

    In this example shell_exec has been enabled for the VirtualHost.

Sign up for a News Letter Click here to sign up