Howto Webhosting

edited on 20.01.2010

Login to primary DNS-Server (snoopy)
  • Change folder to /etc/bind
  • Copy a db.-File to db.[domainname]
  • Edit the named.conf.local
  • Edit the db.[domainname]
  • Reload the DNS-Server: rndc reload
  • Login to backup DNS-Server (bubble)
  • Change folder to /etc/bind
  • Edit the named.conf.local
  • Reload the DNS-Server: rndc reload

  • Login to Webserver (sally)
  • Create a new user: adduser --home /srv/www/[domainname] [username]
  • Create a folder in /srv/www/[domainname]/webalizer
  • Change the owner:group of /srv/www/[domainname]/webalizer to [username]:[username]
  • Add the user to the www-data-group (/etc/group)
  • Add the user to the ftpuser-group (/etc/group)
  • Change folder to /etc/apache2/sites-available
  • Copy a conf-file to [domainname].conf
  • Edit the conf-file [domainname].conf
  • Activate the Config in /etc/apache2/sites-enabled/
  • Restart the Apache: apache2ctl restart

  • Logon on prevered Mail-Server (woodstock)
  • Change folder to /etc/postfix
  • Edit the virtual_alias and add min. the webmaster@[domainname] and info@[domainname]
  • Create the Hash-File: postmap virtual_alias
  • Edit the main.cf and add the [domainname] to the virtual_alias_domains
  • Reload the Mail-Server: postfix reload