php - Execute symfony task command from the shell_exec() permission denied -
I have a "doNothing" Symphony Task call and I want to execute it as Calling my symfony action Apache refused to say the error I think the Edit sh: / var / www / esm / symfony: Permission denied You should look in the directory where your script is. Use In addition to Look. You have a tree structured file system: Then the www-data user should be able to execute all those directories ( Then when execute You can change the permissions on 777 for each directory. But do not use the shell_exec ('/ var / www') I want to execute from / Symfony php symfony doNothing ');
www-data The user is not allowed to solve this.
Error
ls -la to display all the files in the folder and their permissions (to execute a php script file)
/ in all the original directories, for
x apache The user assigned to the group that is able to change the directory.
/ var / www
/ var
/ Var / www / esm in
/ var / www
/ var / www / esm / symfony
/ var / Www / esm
x bit).
/ to
LS-L and
x on Victor
/ var> See www for bit- Data users or groups (drw
x rw
x ---) and this is the owner of this directory. When
ls -l is executed in
/ var ...
-R key simply change the permissions in the directory.
Comments
Post a Comment