V
V
Vasiliy Shilov2012-08-05 10:51:08
PHP
Vasiliy Shilov, 2012-08-05 10:51:08

/tmp/phpfpm.sock in what form should environment variables be passed?

There is /tmp/phpfpm.sock.
I have my own application that will work with php-fpm.
You need to pass environment variables to php-fpm:
SCRIPT_FILENAME
QUERY_STRING
REQUEST_METHOD
SCRIPT_NAME
DOCUMENT_URI
REQUEST_URI
DOCUMENT_ROOT
PHP_SELF
GATEWAY_PROTOCOL How
to write this data to the socket?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
VBart, 2012-08-05
@web36m

Well, have you tried to read the FastCGI specification ?

P
Puma Thailand, 2012-08-05
@opium

In my opinion, a lot is described how to transfer it in the standard nginx config, by analogy, writing the rest is not difficult, or do you not have nginx?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question