How to enable exec()

You can modify different php settings for your account using a php.ini file. We recommend using our default php.ini file which 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 servers here:

How to edit php.ini file on shared servers


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:



3. If you need to disable show_sourcesystem or shell_exec as well, just add them back to the line and save the changes.

If your account is hosted on a shared server, the suPHP or LSPHP configuration directive should be added to your .htaccess file to make these settings global for the entire account. 

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


That's it!

  • 75 Utenti hanno trovato utile questa risposta
Hai trovato utile questa risposta?

Articoli Correlati

PHP modules and extensions on shared hosting servers

PHP is an open-source scripting language that is mainly used to create dynamic web pages. Its...

How to edit php.ini on Shared servers

This guide describes how to edit the php.ini file on shared servers. 1. Log into your...

How to set PHP timezone in php.ini

You can configure PHP setting to use your local time zone by setting the date.timezone directive...

How to disable magic_quotes

You can modify different php settings for your account using a php.ini file. We recommend using...

How to enable register_globals

You can turn on register_globals in your php.ini file. To do this, please create a php.ini file...