How to enable exec() in hestiacp

Dear Friends,

Please advise how to enable the exec() on my hestiacp, I am using a VPS where I don’t have any support from the hosting provider.

Please see the disabled exec($command) in the screenshot below: that is giving “Call to undefined function App\Http\Controllers\Admin\exec()”

Please help, I am a novice and need a detailed instruction.

Hi @khaiser Exec() is a default php function wich should be work.

For what I see is that you are using a Laravel app and its looking for the exec() function in the App\Http\Controllers\Admin namespace.

Don’t know what kind of project/software you are trying to install but I don’t think this is a Hestiacp problem.

We have disabled php exec function recently on ever new install…

nano /etc/php/x.x/fpm/php.ini and remove exec from the disabled functions list. and it works…


Aah thanks good to know, learned something new!

Thanks for the information bro, can you tell me how to edit the php.ini file in the HestiaCP or on my VPS with Ubuntu 20.04?

I am a novice but daring to use the hestiacp, I can follow the steps accurately but cannot do it on-my-own.

Please consider telling me step by step on how to do it and also, it may be helpful to many people on this platform like me.

Please help.

nano /etc/php/x.x/fpm/php.ini

Where x.x is the php version you are using …

1 Like

Thank you @eris I did it and my problem is solved with your help… Thank you once again bro…

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.