Answer the question
In order to leave comments, you need to log in
How to make php-cgi work via php-fpm?
Hello. I execute the following code in the console
env ENV_1=VALUE_1 ENV_2=VALUE_2 ENV_N=VALUE_N php-cgi -f /home/user/www/test/info.php > phpinfo
<?php
phpinfo();
?>
Answer the question
In order to leave comments, you need to log in
no way. you can communicate with it over the network/socket using FastCGI.
PS the command above can be shortened tophp-cgi -i > phpinfo
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question