Giter Club home page Giter Club logo

terraform-mediawiki's Introduction

terraform-mediawiki

This repository will help you install MediaWiki on AWS in fully automated fashion using Terraform and userdata script

Execution

Setup the machine if provisioning from RHEL linux - setup.sh

chmod +x setup.sh
./setup.sh

Acess keys and Secret keys

Change the access and secret keys in main.yml

Init

terraform init

The terraform init command is used to initialize a working directory containing Terraform configuration files.

Plan

terraform plan

The terraform plan command creates an execution plan, which lets you preview the changes that Terraform plans to make to your infrastructure

Apply

terraform apply

The terraform apply command executes the actions proposed in a Terraform plan.

After apply

  • Wait for couple of minutes(be patient) before mediawiki is being installed and configured. Use the output displayed on the screen in place of serverip http://serverip/w/index.php
  • Select the setup link, and proceed through the setup steps. Choose the MariaDB option when prompted for a database server, and enter the database name, username, and user password you created for MediaWiki.
  • Download the LocalSettings.php file when prompted at the end of the setup process, then move it or copy its contents to /var/www/html/w/LocalSettings.php
  • Adjust the file’s permissions
sudo chmod 664 /var/www/html/w/LocalSettings.php

Destroy

terraform destroy

The terraform destroy command is a convenient way to destroy all remote objects managed by a particular Terraform configuration.

Useful Links

MediaWiki Installation
Terraform Installation

terraform-mediawiki's People

Contributors

nbandi7 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.