Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable system() and exec() functions on hosting?

I'm a developer and I build client sites on my server and then use a PHP script to clone it to the client's server when finished. I tried this time but am getting an error of

"Your host does not allow the use of the system() and exec() functions."

Any idea how to enable this? I have cpanel access and the host account is greengecko.com. Installing Wordpress was easy, I just can't run this script!

like image 901
Elijah Murray Avatar asked Dec 20 '12 21:12

Elijah Murray


1 Answers

If your host disabled these functions there will be no way to enable them. You can either consider contacting your host to see if they would enable them for a per account basis or if you are using Free hosting you may consider upgrading to a paid version of their hosting for those functions to be enabled. They are disabled by the host for security reasons. Your only course of action however if to contact your web host or try upgrading to paid hosting(if not already).

like image 159
Drekryan Avatar answered Sep 21 '22 15:09

Drekryan