Python + PHP + Lighttpd?

I created several web servers at one time, but I'm not sure how they work internally. I am setting up a new environment for myself, and I am interested in setting up my lighttpd server to support PHP and Python. Is it possible?

+3
source share
2 answers

Yes it is possible. Here you can find a sample configuration.

fastcgi.server = (
".php" => ((
"bin-path" => "/usr/bin/php5-cgi",
"socket" => "/tmp/php.socket"
)),
"django.fcgi" => (
"main" => (
"host" => "127.0.0.1",
"port" => 9090, #set the port numbers to what-eva you want
),
),
"admin.fcgi" => (
"admin" => (
"host" => "127.0.0.1",
"port" => 9091,
)
)
)
+3
source

Lighty .pl,.py .php 'cgi', mod_cgi . - Lighty. , cgi. , .

+1

Source: https://habr.com/ru/post/1706793/


All Articles