par
Hubert Roksor » 11 mars 2006, 11:56
Dans ma quête de la performance absolue, je me suis décidé à essayer
lighttpd, en étant tout particulièrement intéressé par ça:
Cache Meta Language.
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/"
))
)
voici ce que j'obtiens au démarrage:
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.
À noter que php-cgi fonctionne normalement lorsque je l'appelle séparement:
Code : Tout sélectionner
C:\lighttpd\sbin>php-cgi.exe c:\lighttpd\htdocs\helloworld.php
Content-type: text/html
Hello World!
Toute aide sera la bienvenue
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)
Dans ma quête de la performance absolue, je me suis décidé à essayer [url=http://www.lighttpd.net]lighttpd[/url], en étant tout particulièrement intéressé par ça: [url=http://www.lighttpd.net/documentation/cml.html]Cache Meta Language[/url].
Je suis sous WinXP, et jusqu'à maintenant j'ai [url=http://www.kevinworthington.com:8181]téléchargé lighttpd[/url], 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]fastcgi.server = ( ".php" =>
(( "host" => "127.0.0.1",
"port" => 55554,
"mode" => "responder",
"bin-path" => "php-cgi.exe",
"docroot" => "C:/lighttpd/htdocs/"
))
)[/code]
voici ce que j'obtiens au démarrage:
[code]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]
À noter que php-cgi fonctionne normalement lorsque je l'appelle séparement:
[code]C:\lighttpd\sbin>php-cgi.exe c:\lighttpd\htdocs\helloworld.php
Content-type: text/html
Hello World![/code]
Toute aide sera la bienvenue ;)
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 [url=http://www.lua.org]LUA[/url] (le language de CML)