lighttpdI switch apache to lighttpd on my VPS with Kloxo, everything are running well except one Joomla based site. It mainly because the Joomla site has SH404SEF installed.

I find “How do i configure my lighttpd server” on FAQ of SH404SEF site, now everything of this Joomla site runs well.

Here is how to configure the Kloxo sever:

1, log in Kloxo panel, switch apache to lighttpd on “Switch Program”

switch

2, go to enable FastCGI:

1) Domain home–Domain Features–set Number Of Fastcgi and enable FASTcgi.

very important: if you enable Xcache, please must set the number to 1, otherwise your RAM will be eaten  by many zombie.

To check this, run “netstat -anpo|grep “php-cgi”|wc -l”, if the result is “0″, it means you should change your number of fastcgi process mumber.

2) Domain home–domain–Fcgi Configuration–enable

fastcgi

3, add this to etc/lighttpd/lighttpd.conf

server.error-handler-404   = “/index.php”

4) Configure Joomla

on Joomla administrator panel, Global Configuration–SEO Settings–enable “Use Apache mod_rewrite” and “Search Engine Friendly URLs”, and in SH404SEF Configuration, select “with .htaccess(mod_rewrite)”.

5) done.

If you enable Joomla cache, you may can not delete the cache files on “Clean Cache”. In this case, go to Kloxo File Manager, deleted all cache files.