Project

General

Profile

Actions

TutorialLighttpdAndPHP » History » Revision 10

« Previous | Revision 10/91 (diff) | Next »
Anonymous, 2005-12-29 12:35


= Lighttpd and PHP =
`Startingpoint` Lighttpd is already [wiki:TutorialInstallation installed and working]
PHP and FastCGI
First of all you need a PHP which is providing FastCGI support. Depending on your
distribution you might already have it: === ArchLinux ===
Read http://wiki.archlinux.org/index.php/Fastcgi_and_lighttpd === FreeBSD === {{{
$ cd /usr/ports/www/php-cgi
$ make install clean
}}} === Gentoo ===
Add the USE flag 'fastcgi' to compile php with fastcgi support. {{{
$ emerge php-cgi
}}} === Debian ===
Debian provides (at least in Sarge) a fastcgi enabled version - though it's called php4-cgi. {{{
$ apt-get install php4-cgi
}}} === Others ===
Download a source tar-ball from http://www.php.net/ and configure it with at least this settings: {{{
$ ./configure \
--enable-fastcgi \
--enable-discard-path \
--enable-force-redirect
}}}
If you want to have the same PHP as you are using in a mod_php configuration somewhere else call {{{

}}}

Updated by Anonymous over 19 years ago · 91 revisions