These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
This is not really DigitalOcean specific, you probably have the shell_exec, exec and etc. functions disabled in your php.ini file.
What you could do is create a PHP info file and check if this is the case:
<?php
phpinfo();
?>
Then visit the file via your browser and look for disable_functions. If this is the case edit your php.ini file and remove the shell_exec functions from the disabled_functions list and then restart your Apache service.
Hope that this helps!
Regards,
Bobby
The developer cloud
Scale up as you grow — whether you're running one virtual machine or ten thousand.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.