Lighttpd
Quote van lighttpd.net: "Security, speed, compliance, and flexibility -- all of these describe lighttpd (pron. lighty) which is rapidly redefining efficiency of a webserver; as it is designed and optimized for high performance environments. With a small memory footprint compared to other web-servers, effective management of the cpu-load, and advanced feature set (FastCGI, SCGI, Auth, Output-Compression, URL-Rewriting and many more) lighttpd is the perfect solution for every server that is suffering load problems. And best of all it's Open Source licensed under the revised BSD license."
Installeren lighttpd
yum install lighttpd
Aanpassingen aan /etc/lighttpd/lighttpd.conf
-server.use-ipv6 = "enable" +server.use-ipv6 = "disable"
Installeren php
yum install php-fpm lighttpd-fastcgi
Aanpassingen aan /etc/php-fpm.d/www.conf
-user = apache -group = apache +user = lighttpd +group = lighttpd
Aanpassingen aan /etc/php.ini
-;cgi.fix_pathinfo=1 +cgi.fix_pathinfo=1
Aanpassingen aan /etc/lighttpd/modules.conf
-#include "conf.d/fastcgi.conf" +include "conf.d/fastcgi.conf"
Aanpassingen aan /etc/lighttpd/conf.d/fastcgi.conf
fastcgi.server += ( ".php" => (( "host" => "127.0.0.1", "port" => "9000", "broken-scriptfilename" => "enable" )) )
Toestaan van php-fpm in selinux
setsebool -P httpd_can_network_connect 1
Starten php en lighttpd
chkconfig --levels 235 php-fpm on chkconfig --levels 235 lighttpd on service php-fpm start service lighttpd start