Homepage Wiki Forum Buy

Webserver Debian

From GNUBLIN

If you want to use a webserver on GNUBLIN, you can install different versions. You can also activate different CGI-interfaces if you want.

If you want to build a webapplication you can use the Webserver demonstration

lighttpd Standard Installation

The webserver is already installed on GNUBLIN distribution. If you want to autostart this webserver after booting then you have to do following:

update-rc.d lighttd defaults

respectively installing with

apt-get install lighttpd

(internet connection required)

activate PHP

Installing:

apt-get install php5-cgi

Afterwards you must activate the module in lighty:

lighty-enable-mod fastcgi
lighty-enable-mod fastcgi-php


activate HTTPS

Installing:

apt-get install openssl

Activation:

lighty-enable-mod ssl

If you own a valid SSL-certificate you may copy it at /etc/lighttpd/server.pem. If you want to use an individual path, you may set it at /etc/lighttpd/conf-available/10-ssl.conf. You also can create your own certificate with

cd /etc/lighttpd
openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes

Your webbrowser will issue a warning, that the certificate is unverified. Nevertheless the connection is still encrypted. If the certificate is deposited and the webserver restarted, you now reach the encrypted sites via https://

In other languages