Install Childrenarewelcome Server

From Organic Design wiki
Revision as of 05:23, 22 February 2013 by Jack (talk | contribs) (reinstall, suhosin)

Set Up Server

Andy is using the Codero public cloud, a 2 processor 2GB 50gb VM instance with an Ubuntu 10.04 install which is a bit old but does come with PHP 5.3 which is needed for Mediawiki 1.20, so its OK.

This would have been fine but the default install that Codero put on the hypervisor did not actually work, i.e. it was not possible to ssh to it, it took a chat with their tech to realise that it was actually their problem. So I destroyed that instance and set another up and ssh'd no worries.

Performed an apt-get update and upgrade and set up four users: jack nad andy and izzy, preparatory to setting up mail accounts for the latter two.

I installed

apt-get install sudo p7zip-full bzip2 unzip subversion git imagemagick

I had to install git-core, there was no package git found.

Have not upgraded to precise pangolin, it fails under ssh, as warned.

Pointed the DNS A-records at the new IP 66.226.79.129 via 123-reg.

Installed using apt all the LAMP and mailserver components

 	
apt-get install exim4-daemon-heavy dovecot-common dovecot-imapd spamassassin spamc maildirsync
apt-get install htmldoc librsvg2-bin imagemagick
apt-get install mysql-server apache2 libapache2-svn libapache2-mod-php5
apt-get install php5-mysql php5-gd php5-mcrypt php5-xsl php5-curl php5-sqlite php5-imap
apt-get install php5-suhosin php-apc

MySQL root user password is the same as the OS root password. Logged into MySQL which is up and running.

http://www.childrenarewelcome.co.uk/ now points to server's default page.

Configured svn using svn user and password and rewrite is activated. Just using straight passwords.

I've left the existing /etc/hosts and /etc/hostname generated by the host provider.

/etc/ssh/sshd_config and crontab are package generated configuration file defaults.

Not installing backup.pl

/home/user accounts exist (set up by adduser), /var/www/tools and /var/www/extensions created

Exim4 and spamassassin when wiki is set up, and configure apache2 with the wiki.

DNS lookup shows 123-reg for both A and MX records

Install MediaWiki and Extensions

SCP'd MW 1.20.2. SMW recommends installation of the suite of extension that come with MW.

Have saved the config file for the extensions included in Semantic Bundle so I can install them without the bundle's superstructure and being stuck with an older version of SMW. The extensions are being checked for new versions compatible with the 1.8.2., are the latest except in case of Forms where change is relevant only to upcoming MW 1.21 and can be dealt with then in case of an upgrade.

The resulting tgz identical to the bundle tgz but with the latest SMW scp'd across to be untarred into the extensions folder.

MediaWiki has been installed and users created for izzy, nad, andy and jack, all admins. Uploads have been enabled and the suite of extensions offered at setup time have been installed. Of these, Approved Revs has been temporarliy disabled.

SMW is now set up, Localsettings updated and tables in database.

The wiki is private. I will send out usernames and passwords in emails. I haven't got the mod_rewrite sorted yet so there are no pretty URLs, will do later and make a symlink too.

http://www.childrenarewelcome.co.uk/mediawiki-1.20.2/index.php/Special:UserLogin

Note: There is a problem with Semantic Forms that is stopping any editing from taking place when it is going. I'm looking at this!

Set up the same MW locally without any of the extensions offered in the install, then SMW, SM Forms, saved extensions and then reinstalled CW wiki. Worked as per expectations, re-enabled the automatically installed extensions.

The main change to achieve this was taking up the suggestion in the mw-config/index.php environment page to edit php.ihi to make the suhosin get max value length to 1024, which I checked by setting up a phpinfo(). This is a suhosin hardened-php server.