Added lighttpd info
This commit is contained in:
parent
0d92dc7119
commit
6b5df78a12
31
Lighttpd.md
31
Lighttpd.md
@ -1 +1,30 @@
|
|||||||
#Setting up Lighttpd for PHP-fpm
|
#Setting up Lighttpd for PHP-fpm
|
||||||
|
|
||||||
|
## Use flags
|
||||||
|
|
||||||
|
Recommended USE Flags for lighttpd - put these in `/etc/portage/package.use` rather than `/etc/make.conf` to make this easier to change if need be.
|
||||||
|
|
||||||
|
`fastcgi -php threads openssl`
|
||||||
|
|
||||||
|
To install, just do
|
||||||
|
|
||||||
|
`emerge lighttpd`
|
||||||
|
|
||||||
|
|
||||||
|
## Config
|
||||||
|
|
||||||
|
To use lighttpd with php-fpm, we'll need to modify `/etc/lighttpd/mod_fastcgi.conf`
|
||||||
|
to look like so:
|
||||||
|
|
||||||
|
server.modules += ("mod_fastcgi")
|
||||||
|
fastcgi.server = ( ".php" =>
|
||||||
|
( "localhost" =>
|
||||||
|
(
|
||||||
|
"host" => "127.0.0.1",
|
||||||
|
"port" => "9000"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,4 +2,7 @@
|
|||||||
|
|
||||||
A guide to setup and maintain a webserver with php/lighttpd
|
A guide to setup and maintain a webserver with php/lighttpd
|
||||||
|
|
||||||
[General Topics](./gentoo/blob/master/GENERAL.md)
|
[General Topics](./gentoo/blob/master/GENERAL.md)
|
||||||
|
[PHP](./gentoo/blob/master/PHP.md)
|
||||||
|
[Lighttpd](./gentoo/blob/master/Lighttpd.md)
|
||||||
|
[Setup](./gentoo/blob/master/Setup.md)
|
Loading…
Reference in New Issue
Block a user