| Lighttpd’s default document root is /var/www, and the configuration file is /etc/lighttpd/lighttpd.conf. Additional configurations are stored in files in the /etc/lighttpd/conf-available directory. These configurations can be enabled with the lighttpd-enable-mod command which creates a symlink from the /etc/lighttpd/conf-enabled directory to the appropriate configuration file in /etc/lighttpd/conf-available. You can disable configurations with the lighttpd-disable-mod command. |
1. Installation
-
See http://www.howtoforge.com/installing-lighttpd-with-php5-php-fpm-and-mysql-support-on-ubuntu-13.04.
-
Disable :doc:`Apache <apache>`.
-
Disable :doc:`Nginx <nginx>`.
sudo apt-get install lighttpd # cat /etc/lighttpd/lighttpd.conf # dir /etc/lighttpd/conf-available
Security Warning Your data directory and files are probably accessible from the internet because the .htaccess file does not work. For information how to properly configure your server, please see the documentation.
-
Browse to http://localhost/index.lighttpd.html.
2. Disable Lighttpd
sudo service lighttpd stop sudo update-rc.d lighttpd disable
3. Enable Lighttpd
sudo update-rc.d lighttpd enable sudo service lighttpd start