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 (Stellar, Stellar Plus plans and old Value, Professional, Ultimate plans)
How to edit php.ini file on Business servers (Stellar Business and old Business SSD plans)


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. 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

SQL

SQL (can be pronounced either as see-kwell or as separate letters) is an abbreviation for...

Web server

Web server  is a software application that is responsible for returning webpages per clients’...

TCP/IP

TCP/IP - Transmission Control Protocol/Internet Protocol (currently in revision 4, known as IPv4,...

IP address

IP address  - Internet Protocol Address – also known as an “IP number” or simply an “IP” is a...

Why is it beneficial to have a dedicated IP address?

When it comes to hosting a website on a shared server, there is always quite a common...