Webserver

Apache2

Installation

apt-get install apache2

Enabling .htaccess

On the default site (/etc/apache2/sites-enabled/000-default) .htaccess files are disabled. If wished otherwise, the AllowOverride directive has to be changed from “none” to e.g. “all”.

Enabling SSL

General Steps:

  1. Generate Certificates
  2. Activate module
  3. Activate site

1. Certificate generation

Perform following operations as root:

mkdir -p /etc/apache2/ssl
openssl req -new -x509 -days 365 -nodes -out /etc/apache2/ssl/apache.pem -keyout /etc/apache2/ssl/apache.pem

Change value of days to how long you want your cert be valid. During the process you have to give following informations. Enter . if you do not want to specify. Important fields: Country Name, Common Name, email.

ln -sf /etc/apache2/ssl/apache.pem /etc/apache2/ssl/`/usr/bin/openssl x509 -noout -hash < /etc/apache2/ssl/apache.pem`.0
chmod 600 /etc/apache2/ssl/apache.pem

2. Bring up module

sudo a2enmod ssl
sudo /etc/init.d/apache2 force-reload

MySQL 5

apt-get install mysql-server
During installation a root password needs to be specified

PostGreSQL

Important Commands:

pg_dump -U <username> -W -b <dbname> > db.out
psql -U <username> <dbname> -W

phpmyadmin

apt-get install phpmyadmin
During installation webservers have to be chosen for automatic configuration.
webserver.txt · Last modified: 2010/07/01 16:38 (external edit)
CC Attribution-Noncommercial-Share Alike 3.0 Unported chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0