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:

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_source, system 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. You can find step-by-step instructions here.

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


That's it!

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Create FTP account in cPanel?

Login into cPanel using provided URL and its credentials Go to Files section. Click on FTP...

cPanel - Remote MySQL

This feature of cPanel allows remote servers or web application to access a database hosted on...

How to Change contact information of client in cPanel ?

Login into cPanel using provided URL and its credentials Click on preference section Click on...

How to install and uninstall FrontPage extensions?

Login into cPanel using provided URL and its credentials Go to Advanced section Click on...

How do I setup personal nameservers?

To set up your own private nameservers, it is necessary to manually register them at the domain...