Install a new server
| 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
- /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:
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.
Activate the slow query log for mysqld. Make sure this directive is uncommented.
The differences to the default php.ini file in our servers are as follows:
The Apache configuration will already have been configured from within the decompressed FS backup, but if you're not installing from a backup, then here's our typical vhost configuration which maps domains to filesystem structure. We usually just replace the default virtual hosts file with this one which handles all domains and sites.
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.
- Note: If you're installing your wikia structure on a local machine, then you must ensure that your domains such as foo.localhost are set in /etc/hosts as aliases for 127.0.0.1
Extracting Databases from a Backup
Extract the most recent database backup (this may overwrite existing databases of the same names)
Setting up FTP access
Some clients may require standard FTP access which although not very secure, can have some restrictions put on it to make it a little safer such as restricting users to their home directories and using a non standard port. We use the GPL proFTPD server in standalone mode.
Edit the /etc/proftpd/proftpd.conf file and change the port to something other than 22 and add the following directive to restrict users to their home directories.
Setting up SSL for Apache
- Generate a self signed certificate
- Generate a certificate request for a commercial Certificate Authority
Create a file in the same dir called organicdesign.co.nz with this content.
Run this line
Check the apache config before reloading
Check the cert with this command:
The following output indicates the cert is working correctly
If everything is ok reload the server
Check the error log for problems.
If you see a message like this everything is ok.
If you see something like this you have problems:
apt-get -y install vim cat >> ~/.vimrc syntax on <Press Ctrl-D> cat >> ~/.bashrc Alias vi='vim' <Press Ctrl-D>