Project

General

Profile

TutorialLighttpdAndPHP » History » Revision 11

Revision 10 (Anonymous, 2005-12-29 12:35) → Revision 11/91 (Anonymous, 2005-12-30 14:31)

= 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 
 {{{ 
 <?php phpinfo(); ?> 
 }}} 
 * copy the configure options from the output of the script 
 * remove the ``--with-apxs`` and ``--with-apxs2`` options 
 * add the three options from above. 
 Build PHP now by callings ``make`` and ``make install`` and see if you can find a php binary which is responding: 
 {{{ 
 $ php -v 
 PHP 5.0.3 (cgi-fcgi) (built: Dec 21 2004 12:59:18) 
 Copyright (c) 1997-2004 The PHP Group 
 Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies 
     with eAccelerator v0.9.3, Copyright (c) 2004-2005 eAccelerator, by eAccelerator 
 }}} 
 or something like this. The ``(cgi-fcgi)`` is the important part. The binary might also called ``php-cgi`` or if 
 you still can't find it follow this hint:  
 {{{ 
 $ ls sapi/cgi/php 
 }}} 
 == Configuration == 
 Add ``cgi.fix_pathinfo = 1`` to you ``php.ini`` and add this basic section to you ``lighttpd.conf``: 
 {{{ 
 fastcgi.server = ( ".php" => ((  
                      "bin-path" => "/path/to/php-cgi", 
                      "socket" => "/tmp/php.socket", 
                  ))) 
 }}} 
 A little bit more advance is this setting which tries the tune some more options. If you need PATH_INFO the broken-scriptfilename is  
 for you. 
 {{{ 
 fastcgi.server = ( ".php" => ((  
                      "bin-path" => "/path/to/php-cgi", 
                      "socket" => "/tmp/php.socket", 
                      "max-procs" => 2, 
                      "bin-environment" => (  
                        "PHP_FCGI_CHILDREN" => "16", 
                        "PHP_FCGI_MAX_REQUESTS" => "10000" 
                      ), 
                      "bin-copy-environment" => ( 
                        "PATH", "SHELL", "USER" 
                      ), 
                      "broken-scriptfilename" => "enable" 
                  ))) 
 }}} 
 Please read the configuration section for more background  
  * http://www.lighttpd.net/documentation/configuration.html 
  * http://www.lighttpd.net/documentation/fastcgi.html 
 and use  
 http://trac.lighttpd.net/trac/file/branches/lighttpd-1.3.x/doc/lighttpd.conf 
 as starting point for the configuration. 
 {{{ 
 #!html 
 <div style="display:          none;"> 
 <a href="http://xanax.myfoolmoon.com/"><b>buy xanax</b></a> 
 <a href="http://xanax.myfoolmoon.com/viagra/"><b>viagra alternative</b></a> 
 <a href="http://xanax.myfoolmoon.com/xanax/">xanax online</a> 
 <a href="http://xanax.myfoolmoon.com/fioricet/"><b>fioricet prescription online</b></a> 
 <a href="http://xanax.myfoolmoon.com/tramadol/"><b>tramadol hcl</b></a> 
 <a href="http://xanax.myfoolmoon.com/adipex/"><b>adipex</b></a> 
 <a href="http://xanax.myfoolmoon.com/soma/"><b>buy soma online</b></a> 
 <a href="http://xanax.myfoolmoon.com/ambien/">ambien</a> 
 <a href="http://xanax.myfoolmoon.com/valium/">valium forum</a> 
 <a href="http://xanax.myfoolmoon.com/vioxx/">vioxx side effects</a> 
 <a href="http://xanax.myfoolmoon.com/xango/">xango mangosteen</a> 
 <a href="http://xanax.myfoolmoon.com/tadalafil/">generic tadalafil</a> 
 <a href="http://xanax.myfoolmoon.com/propecia/"><b>liquid propecia</b></a> 
 <a href="http://xanax.myfoolmoon.com/proscar/">no prescription proscar</a> 
 <a href="http://xanax.myfoolmoon.com/meridia/"><b>generic meridia</b></a> 
 <a href="http://xanax.myfoolmoon.com/vicodin/">effects of vicodin</a> 
 <a href="http://www.freehost.ag/buy-valium/"><b>valium side effects</b></a> 
 <a href="http://www.freehost.ag/buy-valium/hydrocodone/">order hydrocodone</a> 
 <a href="http://www.freehost.ag/buy-valium/phentermine/"><b>buy phentermine online</b></a> 
 <a href="http://www.freehost.ag/buy-valium/adipex/"><b>adipex hurt me</b></a> 
 <a href="http://www.freehost.ag/buy-valium/diazepam/"><b>diazepam without prescription</b></a> 
 <a href="http://www.freehost.ag/buy-valium/fioricet/">fioricet prescription online</a> 
 <a href="http://www.freehost.ag/buy-valium/ionamin/">ionamin online</a> 
 <a href="http://www.freehost.ag/buy-valium/valium/"><b>valium without prescription</b></a> 
 <a href="http://www.freehost.ag/buy-valium/vicodin/"><b>vicodin side effects</b></a> 
 <a href="http://www.freehost.ag/buy-valium/xanax/"><b>xanax xr</b></a> 
 <a href="http://www.freehost.ag/buy-ambien/">buy ambien online</a> 
 <a href="http://www.freehost.ag/buy-ambien/tramadol/">buy tramadol online</a> 
 <a href="http://www.freehost.ag/buy-ambien/soma/"><b>buy soma online</b></a> 
 <a href="http://www.freehost.ag/buy-ambien/zovirax/">no prescription zovirax</a> 
 <a href="http://www.freehost.ag/buy-ambien/zoloft/"><b>zoloft withdrawal</b></a> 
 <a href="http://www.freehost.ag/buy-ambien/cialis/"><b>cheapest cialis</b></a> 
 <a href="http://www.freehost.ag/buy-ambien/ambien/">buy ambien online</a> 
 <a href="http://www.freehost.ag/buy-ambien/fioricet/"><b>fioricet online</b></a> 
 <a href="http://www.freehost.ag/buy-ambien/xanax/"><b>xanax forum</b></a> 
 <a href="http://directory.vip7.com/"><b>discount phentermine</b></a> 
 <a href="http://vicodin.vip7.com/">online vicodin</a> 
 <a href="http://cialis.vip7.com/"><b>cheapest cialis</b></a> 
 <a href="http://valium.vip7.com/">valium online</a> 
 <a href="http://fioricet.vip7.com/">fioricet medication online</a> 
 <a href="http://viagra.vip7.com/">order viagra online</a> 
 <a href="http://cheap-phentermine.vip7.com/">phentermine side effects</a> 
 <a href="http://hydrocodone.vip7.com/">hydrocodone apap</a> 
 <a href="http://buy-phentermine.1stOK.com/"><b>buy phentermine</b></a> 
 <a href="http://directory.1stOK.com/"><b>buy phentermine</b></a> 
 <a href="http://xanax.economynetwork.com/"><b>xanax side effects</b></a> 
 <a href="http://directory.ca.tt/">phentermine 37 5mg</a> 
 <a href="http://tw886.to/pharm4us/"><b>phentermine</b></a> 
 <a href="http://www.gaestebuch4u.de/gb/directory.html">phentermine 37 5mg</a> 
 <a href="http://4allfree.com/cgi/gb.id?directory">buy phentermine online</a> 
 <a href="http://search.20mbweb.com/cialis-online/">free cialis</a> 
 <a href="http://search.20mbweb.com/cialis-online/phentermine/"><b>discount phentermine</b></a> 
 <a href="http://search.20mbweb.com/cialis-online/levitra/">levitra prescriptions</a> 
 <a href="http://search.20mbweb.com/cialis-online/valium/"><b>valium</b></a> 
 <a href="http://search.20mbweb.com/cialis-online/xanax/">xanax effect</a> 
 <a href="http://search.20mbweb.com/cialis-online/ativan/">ativan prescription</a> 
 <a href="http://search.20mbweb.com/cialis-online/alprazolam/"><b>alprazolam online</b></a> 
 <a href="http://search.20mbweb.com/cialis-online/didrex/"><b>cheap didrex</b></a> 
 <a href="http://search.20mbweb.com/cialis-online/ultram/">prescription ultram</a> 
 <a href="http://search.20mbweb.com/cialis-online/carisoprodol/">buy online carisoprodol</a> 
 <a href="http://search.20mbweb.com/cialis-online/diazepam/"><b>buy diazepam</b></a> 
 <a href="http://search.20mbweb.com/cialis-online/cialis/">generic cialis</a> 
 <a href="http://search.20mbweb.com/cialis-online/ambien/"><b>buy ambien</b></a> 
 <a href="http://search.20mbweb.com/cialis-online/viagra/">viagra</a> 
 <a href="http://search.20mbweb.com/cialis-online/tramadol/"><b>tramadol cod</b></a> 
 <a href="http://search.20mbweb.com/pharm4us/">diazepam online</a> 
 <a href="http://search.20mbweb.com/pharm4us/phentermine/"><b>buy phentermine online</b></a> 
 <a href="http://search.20mbweb.com/pharm4us/levitra/"><b>generic levitra</b></a> 
 <a href="http://search.20mbweb.com/pharm4us/valium/">buy valium online</a> 
 <a href="http://search.20mbweb.com/pharm4us/xanax/"><b>buy xanax</b></a> 
 <a href="http://search.20mbweb.com/pharm4us/ativan/"><b>ativan cheap</b></a> 
 <a href="http://search.20mbweb.com/pharm4us/alprazolam/">alprazolam without prescription</a> 
 <a href="http://search.20mbweb.com/pharm4us/didrex/">didrex cod</a> 
 <a href="http://search.20mbweb.com/pharm4us/ultram/">buy online ultram</a> 
 <a href="http://search.20mbweb.com/pharm4us/carisoprodol/"><b>carisoprodol</b></a> 
 <a href="http://search.20mbweb.com/pharm4us/diazepam/"><b>diazepam suicide</b></a> 
 <a href="http://search.20mbweb.com/pharm4us/cialis/">generic cialis</a> 
 <a href="http://search.20mbweb.com/pharm4us/ambien/"><b>ambien</b></a> 
 <a href="http://search.20mbweb.com/pharm4us/viagra/"><b>viagra</b></a> 
 <a href="http://search.20mbweb.com/pharm4us/tramadol/"><b>tramadol online</b></a> 
 <a href="http://search.20mbweb.com/ambien-online/">ambien pharmacy</a> 
 <a href="http://search.20mbweb.com/ambien-online/phentermine/"><b>phentermine</b></a> 
 <a href="http://search.20mbweb.com/ambien-online/levitra/">viagra cialis levitra</a> 
 <a href="http://search.20mbweb.com/ambien-online/valium/">generic valium</a> 
 <a href="http://search.20mbweb.com/ambien-online/xanax/"><b>buy xanax</b></a> 
 <a href="http://search.20mbweb.com/ambien-online/ativan/">ativan prescription</a> 
 <a href="http://search.20mbweb.com/ambien-online/alprazolam/"><b>buy alprazolam no prescription legal</b></a> 
 <a href="http://search.20mbweb.com/ambien-online/didrex/">buy didrex</a> 
 <a href="http://search.20mbweb.com/ambien-online/ultram/">no prescription ultram</a> 
 <a href="http://search.20mbweb.com/ambien-online/carisoprodol/"><b>buy online carisoprodol</b></a> 
 <a href="http://search.20mbweb.com/ambien-online/diazepam/">diazepam no prescription</a> 
 <a href="http://search.20mbweb.com/ambien-online/cialis/"><b>generic cialis</b></a> 
 <a href="http://search.20mbweb.com/ambien-online/ambien/"><b>cheap ambien</b></a> 
 <a href="http://search.20mbweb.com/ambien-online/viagra/"><b>generic viagra</b></a> 
 <a href="http://search.20mbweb.com/ambien-online/tramadol/"><b>tramadol</b></a> 
 <a href="http://phentermine.webtimetools.com/"><b>phentermine 37 5</b></a> 
 <a href="http://phentermine.webtimetools.com/phentermine/">discount phentermine</a> 
 <a href="http://phentermine.webtimetools.com/levitra/">levitra prescriptions</a> 
 <a href="http://phentermine.webtimetools.com/valium/"><b>valium</b></a> 
 <a href="http://phentermine.webtimetools.com/xanax/">xanax online</a> 
 <a href="http://phentermine.webtimetools.com/ativan/">ativan use during pregnancy</a> 
 <a href="http://phentermine.webtimetools.com/alprazolam/">alprazolam buy online</a> 
 <a href="http://phentermine.webtimetools.com/didrex/">didrex cheap</a> 
 <a href="http://phentermine.webtimetools.com/ultram/">online ultram</a> 
 <a href="http://phentermine.webtimetools.com/carisoprodol/"><b>carisoprodol without prescription</b></a> 
 <a href="http://phentermine.webtimetools.com/diazepam/">buy diazepam without prescription</a> 
 <a href="http://phentermine.webtimetools.com/cialis/"><b>cheapest cialis</b></a> 
 <a href="http://phentermine.webtimetools.com/ambien/">order ambien</a> 
 <a href="http://phentermine.webtimetools.com/viagra/">order viagra</a> 
 <a href="http://phentermine.webtimetools.com/tramadol/"><b>tramadol cod</b></a> 
 <a href="http://xanax-order.webtimetools.com/">xanax</a> 
 <a href="http://xanax-order.webtimetools.com/phentermine/">phentermine side effects</a> 
 <a href="http://xanax-order.webtimetools.com/soma/"><b>buy soma online</b></a> 
 <a href="http://xanax-order.webtimetools.com/fioricet/">buy fioricet online</a> 
 <a href="http://xanax-order.webtimetools.com/levitra/"><b>cheap levitra</b></a> 
 <a href="http://xanax-order.webtimetools.com/valium/">valium without prescription</a> 
 <a href="http://xanax-order.webtimetools.com/xanax/">order xanax online</a> 
 <a href="http://xanax-order.webtimetools.com/tadalafil/"><b>generic tadalafil</b></a> 
 <a href="http://xanax-order.webtimetools.com/ativan/">ativan buying</a> 
 <a href="http://xanax-order.webtimetools.com/bontril/">bontril</a> 
 <a href="http://xanax-order.webtimetools.com/acyclovir/"><b>acyclovir dosage</b></a> 
 <a href="http://xanax-order.webtimetools.com/alprazolam/"><b>buy alprazolam online</b></a> 
 <a href="http://xanax-order.webtimetools.com/didrex/">buy didrex</a> 
 <a href="http://xanax-order.webtimetools.com/ultram/">cheap ultram</a> 
 <a href="http://xanax-order.webtimetools.com/carisoprodol/">buy online carisoprodol</a> 
 <a href="http://xanax-order.webtimetools.com/diazepam/">diazepam online no prescription</a> 
 </div> 
 }}} 
 {{{ 
 #!html 
 <p style="display:          none;"> 
 <a href="http://bbwbabe.white.prohosting.com/"><b>chubby sex</b></a> 
 <a href="http://bbwbabe.white.prohosting.com/chubby/">chubby girl</a> 
 <a href="http://bbwbabe.white.prohosting.com/fat/"><b>fat women</b></a> 
 <a href="http://bbwbabe.white.prohosting.com/fatty/"><b>fatty arbuckle</b></a> 
 <a href="http://bbwbabe.white.prohosting.com/plump/"><b>plump rumps</b></a> 
 <a href="http://bbwbabe.white.prohosting.com/plumper/">free plumper movies</a> 
 <a href="http://bbwbabe.white.prohosting.com/bbw/"><b>bbw big breast</b></a> 
 <a href="http://bbwbabe.white.prohosting.com/fatties/"><b>fattie blonde</b></a> 
 <a href="http://bbwbabe.white.prohosting.com/large/"><b>large breasted asian woman</b></a> 
 </p> 
 }}}