Difference between revisions of "Install a new server"

From Organic Design wiki
(Mail: See Configure mail server)
(Setting up the software environment)
Line 11: Line 11:
  
 
== Setting up the software environment ==
 
== 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:
+
Bring the system up to date and install the [[organicdesign-server]] package:
 +
echo "deb http://packages.organicdesign.co.nz main/" >> /etc/apt/sources.list
 +
apt-get update
 +
apt-get upgrade
 +
apt-get install organicdesign-server
 +
You will have a functioning server and LAMP environment.
  
=== General utilities ===
+
You may want to then unpack an FS template or backup into ''/var/www'' and begin setting up server-specific configuration:
*7zip, bzip2
+
*/etc/ssh/sshd_config
*make
+
*/etc/crontab
*htmldoc
+
*/var/www/extensions/wikia.php
 +
*/var/www/domains
 +
*/var/www/wikis
 +
*/var/www/backup.pl
  
=== Network ===
+
You may need to set up email [[Configure mail server]]
*LAN
 
*DNS
 
 
 
=== Mail ===
 
See [[Configure mail server]]
 
*Webmail (Roundcube)
 
*SMTP (Exim)
 
*POP (Dovecot)
 
*IMAP (Dovecot)
 
*LDAP
 
 
 
=== Apache ===
 
*SSL
 
*Vhosts
 
** mv /var/www/domains/packages/source/organicdesign-workstation.deb /var/www/domains/packages/main/organicdesign-workstation.deb
 
** sudo ln /etc/apache2/sites-available/default vhosts
 
 
 
=== MySQL ===
 
 
 
 
 
=== PHP5 ===
 
*SQLite
 
 
 
=== PERL ===
 
*SCP
 
 
 
=== SVN ===
 
For distributed backup of servers and workstations
 
  
 
== Setting up the Wikia file structure ==
 
== Setting up the Wikia file structure ==

Revision as of 04:25, 23 December 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

Bring the system up to date and install the organicdesign-server package:

echo "deb http://packages.organicdesign.co.nz main/" >> /etc/apt/sources.list
apt-get update
apt-get upgrade
apt-get install organicdesign-server

You will have a functioning server and LAMP environment.

You may want to then unpack an FS template or backup into /var/www and begin setting up server-specific configuration:

  • /etc/ssh/sshd_config
  • /etc/crontab
  • /var/www/extensions/wikia.php
  • /var/www/domains
  • /var/www/wikis
  • /var/www/backup.pl

You may need to set up email Configure mail server

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.

ln /etc/apache2/sites-available/default vhosts

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
# Flush privileges
mysqladmin -u root -p flush-privileges

Next steps