Cloud Computing Made Easy®
Mediawiki Single Server
From Cloud Computing Wiki - Kaavo
Contents |
Overview
This is a Sample System Definitions for demonstrating the deployment of Mediawiki v1.16.0. This is a single server deployment.
Web_tier: Apache HTTP Service, PHP and MySQL are installed in that server.
Like other Sample System Definitions provided with IMOD, the Mediawiki system definition template for Amazon EC2 and Rackspace is provided as an example. Users are expected to develop their own system definitions or customize the provided solutions for their own needs. The information assumes that the users have basic understanding of deploying and starting systems in IMOD.
Note : We have tested this template with the below mentioned configuration:
Amazon EC2 Configuration:
Fedora 8, 32 bit ( ami-2b5fba42 )
Rackspace Configuration:
CentOS 5.4, 64 Bit, RAM size = 512 MB
For more information on Mediawiki installation please go to
1. http://www.mediawiki.org/wiki/Installation
2. http://www.mediawiki.org/wiki/Manual:Config_script
Inputs
For testing the template (in EC2/Rackspace) we need only the account related information for different Kaavo supported platform. After that, with a single click the application will be running.
In case there are any issues or questions please post them on http://forums.kaavo.com
After the application is up and running, please trigger event "move-local-setting-php" because we need to move 'LocalSettings.php' to main wiki directory and delete the "config" directory.
Please refer to this link for more information http://www.mediawiki.org/wiki/Manual:Config_script. After that you can go to the http://ip-address-of-server/ to start using the application.
What deployment time Actions are included in the System Definition?
Amazon EC2 configuration
- install-necessarysoftware
- install-mysql
- grant-mysql
- download-and-configure-mediawiki
- create-wiki-conf
- restart-apache
Rackspace configuration
- open-port-for-webtier
- install-necessarysoftware
- install-mysql
- grant-mysql
- download-and-configure-mediawiki
- create-wiki-conf
- restart-apache
What run-time Events are defined in the System Definition?
a) For moving LocalSetting.php and deleting the "config" directory, trigger the event "move-local-setting-php"
b) For database backup process, trigger the event "backup-database"
c) For database restore process, trigger the event "restore-database-from-s3" for ec2 or "restore-database-from-cloudfiles" for rackspace
How to provide your own information for your application?
1. If you want to modify the database name, username and password for your application modify in action 'grant-mysql'.
2. Virtual Hosting with Apache HTTP service has been configured in the system definition file. If you want to modify the "DOMAIN NAME" for your application modify in action 'create-wiki-conf'. For more information on domain name configuration please click here.
3. For database backup and restore process user needs to provide account specific information, such as for Amazon user needs to provide "access_key" and "secret_key" in action 'SetupS3cfg' in order to upload and download from s3 and for Rackspace user needs to provide "HOST", "API_KEY" and "USER" account name information in action 'backup-database' and 'restore-sampleapp-database-from-cloudfiles' in order to upload and download from cloudfiles.
![[Wiki Home]](/skins/common/images/wiki.png)