Installare PHP e Lighttpd
Updated at: 16/09/2013


Ho pensato di provare a usare Lighttpd al posto di Apache, per vedere se è sufficiente e al tempo stesso meno pesante Ho seguito questa procedura:
opkg update
  Ok, so we need to install PHP
opkg install php php-cgi php-cli
and then lighttpd with the fastcgi module
opkg install lighttpd lighttpd-module-fastcgi
  Using whichever text editor you prefer, edit lighttpd.conf and uncomment mod_fastcgi:
server.modules = (
#                               "mod_rewrite",
#                               "mod_redirect",
#                               "mod_alias",
                                "mod_access",
#                               "mod_cml",
#                               "mod_trigger_b4_dl",
#                               "mod_auth",
#                               "mod_status",
#                               "mod_setenv",
                                "mod_fastcgi",
#                               "mod_proxy",
#                               "mod_simple_vhost",
#                               "mod_evhost",
#                               "mod_userdir",
#                               "mod_cgi",
#                               "mod_compress",
#                               "mod_ssi",
#                               "mod_usertrack",
#                               "mod_expire",
#                               "mod_secdownload",
#                               "mod_rrdtool",
#                               "mod_webdav",
                                "mod_accesslog" )
Further down the file, find and uncomment (remove the # from) the following lines:
fastcgi.server = ( ".php" =>
                   ( "localhost" =>
                     (
                       "socket" => "/tmp/php.socket",
                       "bin-path" => "/usr/bin/php-cgi"
                     )
                   )
                 )
You need to make sure the path to php-cgi is correct.  You can find the correct path with:
which php-cgi
Now restart lighttpd using:
systemctl restart lighttpd &
You can double check is it working using:
systemctl status lighttpd.service
   
Nota bene: NON aveva di default configurati i DNS e quindi non raggiungeva il server!!!