Answer the question
In order to leave comments, you need to log in
How to feed php-fpm bash script?
There is a location:
location / {
include fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME /var/www/cgi-bin/script.sh;
}
Answer the question
In order to leave comments, you need to log in
You can just run it with HttpLuaModule
location / {
content_by_lua 'os.execute("/var/www/cgi-bin/script.sh")';
}
I propose to continue the questions.
"How to feed MySQL config from PostgreSQL?"
"How to cross an amoeba and a monkey?"
"How to use the monitor as a door lock?"
No way.
php-fpm is not for bash.
Handle bash scripts differently.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question