I try Yii framework to create an administrative website. I actually encounter a problem to use the PHP function “exec” inside the Yii application context (It simply do not run the exec function).
Is there any specific security configuration to modify to allow it, I do not find it into the documentation ?
Note : Using the same apache server I've made a test.php page which succefully run my exec function, but not in my controller.php (probably Yii security context I think)
I try to run an "ssh" command (which execute a remote command on differents servers). But I do not think the problem come from the command itself because when i try to run a simple exec("whoiam"); i do not recieved any result (return var is empty).
I try to execute the same code into a test page (excluding Yii tools, but located in the same folder and with the same file permission) When I call it directly from the browser, then the test works.
I do not understand why it does not works when I run an exec inside a controller objet.
For information :
my controller definition :
class RSYController extends CController
{
[…] // Here some code for other actions, which works fine