Shell_exec() blocked on hestiacp?

Im trying to execute shell commands via php and i get the following error " Fatal error : Uncaught Error: Call to undefined function shell_exec() in /home/admin/web/dashboardbeta.cloudtube.cloud/public_html/creategdps.php:56 Stack trace: #0 {main} thrown in /home/admin/web/dashboardbeta.cloudtube.cloud/public_html/creategdps.php on line 56"

shell_exec function is disabled by default due it is a security risk, if you want to enable it, you should edit the php.ini conf file used by your current php version and remove it from disable_functions directive

If you are using php 8.2, this is the file you need to edit:

/etc/php/8.2/fpm/php.ini

Once edited, you must restart the service.

systemctl restart php8.2-fpm

But again, keep in mind that it is a security risk.

Thanks! i need it because im a provider and i make accounts via a dashboard

1 Like

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