Difference between revisions of "Install a new server"

From Organic Design wiki
m
(Setting up the Wikia file structure)
Line 47: Line 47:
 
== Setting up the Wikia file structure ==
 
== Setting up the Wikia file structure ==
 
Either copy the ''/var/www'' directory structure from an existing wikia installation (excluding the specific content from the ''domains'' and ''wikis'' directories). Alternatively, unpack a recent ''www-yyyy-mm-dd.tgz'' backup into ''/var/www'' and remove specific wiki content.
 
Either copy the ''/var/www'' directory structure from an existing wikia installation (excluding the specific content from the ''domains'' and ''wikis'' directories). Alternatively, unpack a recent ''www-yyyy-mm-dd.tgz'' backup into ''/var/www'' and remove specific wiki content.
 +
7za x www-yyyy-mm-dd-tgz
 +
tar -xf www.tar /var
 +
 +
== Domain names ==
 +
Adjust the names of the symlinks in the ''/var/www/domains'' directory to local domain names and ensure that those names are added to the ''/etc/hosts'' file.
 +
 +
== Extracting Databases from a Backup ==
 +
Extract the most recent database backup (this may overwrite existing databases of the same names)
 +
7za x all-yyyy-mm-dd.sql.7z
 +
mysql -u root -p < all.sql
  
 
== Next steps ==
 
== Next steps ==

Revision as of 20:14, 20 June 2008

Procedure.svg Install a new server
Organic Design procedure


Download and install Debian

If the server has no OS then download and install Debian first. Depending on the kind of access you have to the server, the following links may be of interest here:

Setting up the software environment

Run through the Debian Post Install to install the software components required by the organisation. After running through the post-install script you will have a functioning server and LAMP environment. In general the post-install script covers the following:

General utilities

  • 7zip, bzip2
  • make
  • htmldoc

Network

  • LAN
  • DNS

Mail

  • Webmail (Roundcube)
  • SMTP (Exim)
  • POP (Dovecot)
  • IMAP (Dovecot)
  • LDAP

Apache

  • SSL
  • Vhosts

MySQL

PHP5

  • SQLite

PERL

  • SCP

SVN

For distributed backup of servers and workstations

Setting up the Wikia file structure

Either copy the /var/www directory structure from an existing wikia installation (excluding the specific content from the domains and wikis directories). Alternatively, unpack a recent www-yyyy-mm-dd.tgz backup into /var/www and remove specific wiki content.

7za x www-yyyy-mm-dd-tgz
tar -xf www.tar /var

Domain names

Adjust the names of the symlinks in the /var/www/domains directory to local domain names and ensure that those names are added to the /etc/hosts file.

Extracting Databases from a Backup

Extract the most recent database backup (this may overwrite existing databases of the same names)

7za x all-yyyy-mm-dd.sql.7z
mysql -u root -p < all.sql

Next steps