Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go



CLICK HERE TO VISIT THE UPDATED SURVIVAL GUIDE

Apache Web Server

20131215 Installing a web server under Debian and Ubuntu is as simple as installing apache2:

$ wajig install apache2
It is also installed as part of the LAMP (Linux/Apache/MySQL/PHP) suite:
$ wajig install lamp-server^

Apache provides a default web page at http://localhost/ with the actual page being sourced from /var/www/index.html. This is the starting point to creating a web site.

For a secure web server using SSL to encrypt all communications from a browser to the server (recognised with the https: prefix) enable the ssl module in apache2 and configure it:

$ wajig install apache2 openssl
$ sudo mkdir /etc/apache2/ssl
$ sudo make-ssl-cert /usr/share/ssl-cert/ssleay.cnf \
                     /etc/apache2/ssl/certificat.pem
$ sudo mv /etc/apache2/ssl/certificat.pem \
                     /etc/apache2/ssl/apache.pem
$ sudo a2enmod ssl
$ cd /etc/apache2/sites-available
$ sudo cp default ssl
Edit the new ssl:
NameVirtualHost *:443
<VirtualHost *:443>
	SSLEngine On
	SSLCertificateFile /etc/apache2/ssl/apache.pem
	ServerName host.name.specified.in.certificate.creation
Edit default to add *:80.
a2ensite ssl
Make sure /etc/apache2/ports.conf contains:
Listen 443
Listen 80
Then
wajig restart apache2


Support further development by purchasing the PDF version of the book.
Other online resources include the Data Science Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © Togaware Pty Ltd. . Creative Commons ShareAlike V4.