Installing The Lighttpd Web Server:
written by EON Mar 10, 2012 (Estimated Time: 5 mins)
EON 1.0 and higher no longer embeds Apache or Perl. If a web server is needed, there are 3 web server options (Apache, Lighttpd and Nignx). The web servers can be installed together but will require configuration edits to run simultaneously because the default settings are configured for port 80 and 443.
Let's show how to install and run the Lighttpd Web Server. With this EON release, 2 programs were introduced to simplify installs. One is the internet package installer, "rail" and the other "emp" is a program to start/stop/restart all the various programs.
Pre-requisite(s): The Binary Kit must be installed.
PHP must be installed (or comment the fastcgi.server section in /usr/local/light/etc/lighttpd.conf)
This assumes Internet connectivity is working and the binary kit has already been installed. So, let's install the Lighttpd Web Server.
rail install light install light ... found local /usr/local/.store/lighttpd-1.4.30.tgz (md5 pass: 489ee7490c0a54800b7c6e872fe84b9b) installing: /usr/local/.store/lighttpd-1.4.30.tgz ... doneThat's it, Lighttpd 1.4.30 is installed. Now let's start the Lighttpd web server, with "emp". Then, point your favorite browser to the IP address of your EON Server and you should see
emp light start light: startLet's view the running Lighttpd processes.
emp light show1118 /usr/local/light/sbin/lighttpd -f /usr/local/light/etc/lighttpd.conf 1119 /usr/local/php/bin/php-cgi 1120 /usr/local/php/bin/php-cgi 1121 /usr/local/php/bin/php-cgi 1122 /usr/local/php/bin/php-cgi 1123 /usr/local/php/bin/php-cgi 1124 /usr/local/php/bin/php-cgi 1125 /usr/local/php/bin/php-cgi 1126 /usr/local/php/bin/php-cgi 1127 /usr/local/light/sbin/lighttpd -f /usr/local/light/etc/lighttpd.conf 1128 /usr/local/light/sbin/lighttpd -f /usr/local/light/etc/lighttpd.conf 1129 /usr/local/light/sbin/lighttpd -f /usr/local/light/etc/lighttpd.conf 1130 /usr/local/light/sbin/lighttpd -f /usr/local/light/etc/lighttpd.confTo see other options for simply run "emp". The highlight below says, for apache, lighttpd, and nginx the options start, stop, restart and show are possible.
empusage: /usr/bin/emp name [ action ] afp [ start | stop ] apache | light | nginx [ start | stop | restart | show ] bind | dhcpd [ start | stop | restart ] daap | mtomb [ start | stop ] ndd [ start ] nfs [ start | stop | restart ] hotplug | powerd [ start | stop ] java [ start | show ] nscd | ntpd [ start | stop | restart ] osx [ start | stop ] postfix [ start | stop ] rsyncd [ start | stop | restart ] sabnzb | sickbeard | couchpotato [ start | stop ] transmission [ start | stop ] zswap | zdump [ start | stop | show ]The Lighttpd web server is pre-configured with a self-signed CA certificate. You can (and should) generate your own unique self-signed CA cert using "certgen.sh"
certgen.shEON Storage self signed CA certificate generatorusage: /usr/local/bin/certgen.sh [ a | l | n ] a = apache | l = lighttpd | n = nginxTo generate a certificate for Lighttpd. The highlight shows the pre-configured certificate, already exist.
certgen.sh lEON Storage self signed CA certificate generator [light] light certificate/key: exist already /usr/local/light/etc/server.pem exiting: NO changes made To remove the pre-configured certificate and generate a unique certificate.
rm /usr/local/light/etc/server.pemcertgen.sh lConfiguration file location(s):
/usr/local/light/etc/lighttpd.confLog file location(s):
/usr/local/light/logs/access.log/usr/local/light/logs/error.log