When I am trying to run shell script with exec and shell_exe nothing happens!
When I run with those command ls or whoami all work’s.
What could it be?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Do you echo the output?
Do you have safe_mode enabled?
When yes: (from the manual)
Try to call exec with
Then
If it shows
127it´s likely that the path is wrong.Also check the permissions. User ‘nobody’ is probably the apache user, which needs the rights to access and execute the script.
You can change the permissions by running
chmod 755 pathtouyourscriptThis means something like ‘I don’t mind if other people read or run this file, but only I should be able to modify it’.