How to enable exec()

You can modify different php settings for your account, using php.ini file. We recommend using our default php.ini file that is the most compatible with our servers and was specifically created to optimize the process of php values modification.
     You can learn how to find and edit php.ini on our shared and business servers here:

 

1. How to edit php.ini file on shared servers with SuPHP module
 

2.  
How to edit php.ini on business servers with FastSGI module


To enable exec() function, you need to remove it from the following line in your php.ini file: 

disable_functions = "show_source, system, shell_exec, exec" 


1. Open your php.ini and find the following section


2. Remove exec from the line and click on Save Changes



 If you need to disable show_source, system or shell_exec as well, just remove them from the line and save the changes. 


    If your account is hosted on a shared server, the suPHP configuration directive should be added to your .htaccess file to make these settings global for the entire account. You can find step by step instruction here.

    In case your account is located on a business server no other modifications should be applied.


                                  
               Need any help? Contact our Helpdesk

  • 1 utilizatori au considerat informația utilă
Răspunsul a fost util?

Articole similare

How to check PHP version and configuration

Phpinfo() function is commonly used to check the current state of PHP configuration. It can also...

How to use PHP Selector

In some cases correct functioning of your website depends on PHP version installed on the...

How to switch PHP version on shared servers

Our shared servers are set up to allow each customer to choose the PHP version to use for the...

SuPHP directive for php.ini on shared servers

SuPHP (Single user PHP) is a php handler, which executes PHP scripts with the permissions of...

How to switch PHP version on business servers

Our business servers are running with FSGI module and have PHP 5.2, 5.3, 5.4, 5.5 versions...

Powered by WHMCompleteSolution