Announcement

Collapse
No announcement yet.

How to Enable shell_exec function for one account?

Collapse

Unconfigured Ad Widget

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Enable shell_exec function for one account?

    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:

    <VirtualHost 127.0.0.1>
    ………..
    <IfModule mod_php5.c>
    php_admin_value suhosin.executor.func.blacklist = “shell_exec”
    </IfModule>
    ……
    </VirtualHost>

    In this example shell_exec has been enabled for the VirtualHost.

    Thanks!
Working...
X