Issue :

An application requires execution of a binary file. A separate account has been created but do not want to turn on the exec() function citing security concerns. What is the best way to go about this ?

Solution :

If it is a php suexec server then you can place a custom php.ini file under the concerned folder in the account created. Copy the content from the server php.ini but remove the required function from the ‘disable_function’ list in the custom php.ini. This will affect only the account and not the entire server.

If it is not a php suexec server then place the following code in the VirtualHost entry for the domain and restart apache.

< IfModule mod_php5.c >
php_admin_value disable_functions ” ”
< /IfModule >

Include the functions that you want to keep disabled for the account within the quotes in the above code.

Contact Us On WhatsApp