Difference between revisions of "Install a new server"

From Organic Design wiki
(Setting up the Wikia file structure)
(Next steps)
Line 47: Line 47:
  
 
== Next steps ==
 
== Next steps ==
 +
*[[Configure mail server]]
 
*[[Install a MediaWiki code-base]]
 
*[[Install a MediaWiki code-base]]
 
*[[Install a new wiki]]
 
*[[Install a new wiki]]
  
 
[[Category:Installation]]
 
[[Category:Installation]]

Revision as of 04:36, 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.

Configure any of the following:

  • /etc/ssh/sshd_config
  • /etc/crontab
  • /var/www/backup.pl

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

You will need to adjust the following items in the structure:

  • /var/www/extensions/wikia.php
  • /var/www/activity.log
  • /var/www/domains
  • /var/www/wikis

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