Answer the question
In order to leave comments, you need to log in
How to run shell script from php?
The shell script does not start when trying to run it from php with the exec("sh .hooks/gitlab-webhook-push.sh") command. This script is run from the command line. I don't see anything in the logs. The nginx php-fpm bundle is used. What could be the problem?
Answer the question
In order to leave comments, you need to log in
Considering that the path to the executable file is relative, this is most likely the issue.
I figured it out, the script still starts, it just doesn't work as it should. I'll figure out what's wrong.
Let me guess, he can't execute commands from root?
leave the folder?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question