Je suis sous WinXP, et jusqu'à maintenant j'ai téléchargé lighttpd, je l'ai installé et index.html s'affiche correctement. Là où ça se corse c'est quand je veux activer PHP... Après avoir activé mod_fastcgi, configuré doc_root dans php.ini et ajouté ça à lighttpd.conf
Code : Tout sélectionner
fastcgi.server = ( ".php" =>
(( "host" => "127.0.0.1",
"port" => 55554,
"mode" => "responder",
"bin-path" => "php-cgi.exe",
"docroot" => "C:/lighttpd/htdocs/"
))
)Code : Tout sélectionner
C:\lighttpd\sbin>2006-03-11 10:52:50: (mod_fastcgi.c.1035) the fastcgi-backend C:/PROGRA~1/EasyDev/PHP5.1/php-cgi.exe failed to start:
2006-03-11 10:52:50: (mod_fastcgi.c.1039) child exited with status 0 C:/PROGRA~1/EasyDev/PHP5.1/php-cgi.exe
2006-03-11 10:52:50: (mod_fastcgi.c.1042) if you try do run PHP as FastCGI backend make sure you use the FastCGI enabled version.
You can find out if it is the right one by executing 'php -v' and it should display '(cgi-fcgi)' in the output, NOT (cgi) NOR (cli)
For more information check http://www.lighttpd.net/documentation/fastcgi.html#preparing-php-as-a-fastcgi-program
2006-03-11 10:52:50: (mod_fastcgi.c.1047) If this is PHP on Gentoo add fastcgi to the USE flags
2006-03-11 10:52:50: (mod_fastcgi.c.1337) [ERROR]: spawning fcgi failed.
2006-03-11 10:52:50: (server.c.834) Configuration of plugins failed. Going down.Code : Tout sélectionner
C:\lighttpd\sbin>php-cgi.exe c:\lighttpd\htdocs\helloworld.php
Content-type: text/html
Hello World!PS: j'ai lu la doc et le wiki plusieurs fois, mais personne n'est à l'abri d'avoir raté un paragraphe. Néanmoins, si c'est réellement aussi difficile d'installer lighttpd alors j'ai du souci à me faire pour l'installation de LUA (le language de CML)