Difference between revisions of "Install a new server"
(→See also: Add an IP address to a server) |
(→Setting up the software environment: math) |
||
Line 23: | Line 23: | ||
apt-get upgrade | apt-get upgrade | ||
apt-get install organicdesign-server | apt-get install organicdesign-server | ||
+ | </pre>}} | ||
+ | |||
+ | If you would like math markup support, also install the following, and see [[Enabling math markup]] for more details. | ||
+ | {{code|<pre> | ||
+ | apt-get install dvipng tetex-extra cjk-latex ocaml | ||
</pre>}} | </pre>}} | ||
Revision as of 03:54, 14 January 2009
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
Ensure that you're using the same package repository for your Debian installation as we are:
Bring the system up to date and install the organicdesign-server package:
If you would like math markup support, also install the following, and see Enabling math markup for more details.
You will have a functioning server and LAMP environment.
Post install checklist
- /etc/hostname, hostname -F /etc/hostname, /etc/hosts
- tzselect, tzconfig
- DB info for wikia, webmail, crm
- /etc/ssh/sshd_config
- /etc/crontab
- /var/www/backup.pl
- /var/www and /home structures (should be automatically maintained by adding new server as a peer)
- Exim4 (this will need to be configured even for sending mail, see Configure mail server)
- Import spamassassin bayesian rules
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.
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
LAMP configuration
The easiest way to configure this is to copy the vhosts file which originated from the backup file over the default Apache configuration file, and then make the vhosts file a symlink pointing at the default configuration as usual. Then adjust the file to the wikia's specific needs.
The differences to the default php.ini file in our servers are as follows:
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)