Warning: shell_exec()


#1

Warning: shell_exec() has been disabled for security reasons

Why i receive this error ? The script is always work :frowning:


#2

Did it used to work here at DreamHost?

At one point, you could run PHP as Apache with the option to run PHP as CGI. This is no longer an option. However, an existing domain with PHP running as Apache can keep it, but will lose it if you do a one-click install and most likely not be able to get it switched back.

-Scott


#3

I have added this line on .htaccess

AddHandler application/x-httpd-php .php

with this i receive the error:

Warning: shell_exec()…

without it’s all ok…but i must have the virtual function for include a CGI in a php page