WordPress and Etherpad with BlueMix and Docker. Our aim is to run on BlueMix containers (now in beta) these two famous services In the BlueMix dashboard,

Slides:



Advertisements
Similar presentations
LIS651 lecture 5 direct use of wotan Thomas Krichel
Advertisements

December, 2008 CS-591 Securing Servers: International Capture the Flag 1 Nadine Sundquist CS591-F2008 University of Colorado, Colorado Springs Dr. C. Edward.
Windows Apache MySQL PHP Radoslav Georgiev Telerik Corporation
Install WordPress with Xampp. By With Thanks to: Rupesh Kumar.
Apache Web Server Quick and Dirty Steve Gibbard for SANOG 16 (Originally by Joel Jaeggli for AfNOG 2007) ‏
1 Configuring Web services (Week 15, Monday 4/17/2006) © Abdou Illia, Spring 2006.
INSTALLATION OF WORDPRESS. WORDPRESS WordPress is an open source CMS, often used as a blog publishing application powered by PHP and MySQL. It has many.
Chapter Apache Installation in Linux- Mandrake. Acknowledgment The following information has been obtained directly from
XMAS installation instructions Windows Version: 1.0 4/22/2008.
1 實驗十:以 Linux 架設 Internet/Intranet 伺服 器 教師: 助教:. 2 Outline  Background  Linux system  Popular Internet services  Internet services  Internet  HTTP.
Dynamic Web site With PHP and MySQL. MySQL The combination of MySQL database and PHP scripting language is optimum for building dynamic websites. MySQL.
Bangkok, Thailand Smokeping & Cacti intERLab at AIT Workshop March – Bangkok, Thailand Hervey Allen.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 4P. 1Winter Quarter Introduction to UNIX.
DataStax Enterprise on Microsoft Azure. BrightView Analytics provides a robust Software-as-a-Service (SaaS) business solution, which delivers critical.
Securing LAMP: Linux, Apache, MySQL and PHP Track 2 Workshop PacNOG 7 July 1, 2010 Pago Pago, American Samoa.
Remote Accessing Your Home Computer Using VNC and a Dynamic DNS Name.
A crash course in njit’s Afs
Linux Operations and Administration
Raspberry Pi Training Truman College Goals of our Training Today Unbox and boot up the Raspberry Pi (RPi) Learn how to access the desktop graphical.
Microsoft Windows 2003 Server. Client/Server Environment Many client computers connect to a server.
One to One instructions Installing and configuring samba on Ubuntu Linux to enable Linux to share files and documents with Windows XP.
Creating a Web Presence Introduction to WordPress Week 1.
Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql.
MCDevOps Infrastructure In One Hour. Sponsors Improving Enterprises Software Development.
Tutorial 11 Installing, Updating, and Configuring Software
bWAPP – Bee Bug – Installation
Lab How to Use WANem Last Update Copyright 2011 Kenneth M. Chipps Ph.D. 1.
Objectives Define IP Address To be able to assign an IP address with its Subnet Mask and Default Gateway to a PC that operates using Windows 7 or Fedora.
Sponsored by the National Science Foundation Configuration Management For Experimenters: Ansible Hands-On Sarah Edwards, GPO.
BZUPAGES.COM Presentation on Content Management System (CMS) Presented to. Sir Ahmad Kareem.
Background - hardware User interface devices to system –Mainframe Text mode only Command-line (text mode) interface “Some” menus available (NOT a GUI)
Drupal Jumpstart Information Systems 337 Prof. Harry Plantinga.
Taipei, Taiwan Smokeping & Cacti APRICOT 2008 Workshop February – Taipei, Taiwan Hervey Allen.
Installing SME Version 5 –1)Set the computer to boot from the CDRom by changing the BIOS setting. –2)Startup the computer with the CD in the CD drive –3)Type.
Managing Drupal with Aegir Chris Burge Burge Consulting, LLC 30 June 2013 Dublin, Ireland Drupal Dev Days.
Linux Network Servers nginx, PHP-FPM, MySQL Rostislav Skudnov, Timo Jääskeläinen.
Apache, MySQL and PHP Installation and Configuration Chapter 1 Apache Installation and Configuration.
Apache Web Server Quick and Dirty for AfNOG 2015 (Originally by Joel Jaeggli for AfNOG 2007) ‏
Centreon Deployment Chris Scicluna
Apache Web Server Quick and Dirty Ayitey Bulley for AfNOG 2011 (Originally by Joel Jaeggli for AfNOG 2007) ‏
Apache Web Server Quick and Dirty Kevin G. Chege for AfNOG 2013 (Originally by Joel Jaeggli for AfNOG 2007) ‏
Linux Services Configuration
Introduction to Taverna Online and Interaction service Aleksandra Pawlik University of Manchester.
Creating a simple database This shows you how to set up a database using PHPMyAdmin (installed with WAMP)
Apache, MySQL and PHP Installation and Configuration Chapter 2 MySQL Installation and Configuration.
VIRTUAL HOSTING WITH PureFTPd And MYSQL (Quota And Bandwidth Management) BY Odoh Kenneth Emeka Sun Yu Patrick Appiah.
Web Server Apache PHP HTTP Request User types URL into browser Address resolved if nec. We use directly Most browsers request.
Installing Koha Presented By Aaron R. Williams KOHA North American Users Group.
Settings MySQL Database and JDBC configuration Instructor: Sergey Goldman.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
Multi-Domain Hosting CPTE 212 “Missing Slides” for 1/22/2015 John Beckett.
Your current Moodle 1.9 Minimum Requirements Ability to do a TEST RUN! Upgrading Moodle to Version 2 By Ramzan Jabbar Doncaster College for the Deaf By.
SPARCS Wheel Seminar 08/01/14 심규현 (spotlight). 1 of 6 Web Application  A web application is an application that is accessed via web over a network such.
1.Switch on the computer and wait for loading. 2.Select the Windows 7 OS at the end of the list. 3.Click on the link ‘Administrator’ 4.Enter the administrator.
Installing a Moodle Test Site The painless and easy way.
Building Your Own Website Using:. Install & configure LAMP. Download WordPress and run it as a local website on your Raspberry Pi. Configure WordPress.
Chapter 7: Using Network Clients The Complete Guide To Linux System Administration.
1.Switch on the computer and wait for loading. 2.Select the Windows 7 OS at the end of the list. 3.Click on the link ‘Administrator’ 4.Enter the administrator.
PuTTY Introduction to Web Programming Kirkwood Continuing Education by Fred McClurg © Copyright 2016, All Rights Reserved ssh client.
Wordpress. What is Wordpress? Wordpress is a content management system. It is free and easy to use. It allows you to build dynamic websites It is built.
H OW TO INSTALL W ORDPRESS MANUALLY Enukesoftware.com.
Linux Basics Part 2. VIM Editor vi improved Installed on most Linux machines Can be a bit confusing at first... o Cheat sheets FTW Other popular editors:
Installing iHRIS Install iHRIS Manage on an Ubuntu System
CONTENT MANAGEMENT SYSTEM CSIR-NISCAIR, New Delhi
Chapter 9 Router Configuration (Ospf, Rip) Webmin, usermin Team viewer
Install WordPress with Xampp
Assignment Preliminaries
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
Title: Tech Training Certificate: Ace of Initiative Program
Configuration Of A Pull Network.
Presentation transcript:

WordPress and Etherpad with BlueMix and Docker

Our aim is to run on BlueMix containers (now in beta) these two famous services In the BlueMix dashboard, we click create a container, we then follow the steps, paste a SSH public key, and wait for the creation to be confirmed. Then, we connect to the container using the SSH private key (I used putty as a SSh client on windows). Once connected as root, we are ready to work with our container.

WordPress WordPress is a CMS (kind of blog manager) widely used and easy to configure. To run WordPress, we will need Apache, as a web server, MySQL for the database, and php will be the scripting language. Finally, we will install and run WordPress.

Apache Installation Our containers are based on ubuntu 14.04, we will be able to use its packet manager, called apt. The command is : apt-get update && apt-get install apache2 && service apache2 start

MySQL installation apt-get install mysql-server php5-mysql service mysql start mysql_install_db mysql_secure_installation The installation script will run, and questions will be asked through the terminal (which password, which user …?)

Php install (version 5 used) apt-get install php5 libapache2-mod-php5 php5-mycrypt php5-gd libssh2-php We then edit (for example with nano) /etc/apache2/mods- enabled/dir.conf We switch the order of index.html and index.php,

Creation of the database mysql –u root –p CREATE DATABASE wordpress; CREATE user IDENTIFIED BY ‘our_password’; GRANT ALL PRIVILEGES ON wordpress.* TO FLUSH PRIVILEGES; exit

Wordpress download cd ~ wget tar xzvf latest.tar.gz

Wordpress configuration cd./wordpress cp wp-onfig-sample.php wp-config.php nano wp-config.php define('DB_NAME', 'wordpress'); define('DB_USER', 'wordpress_user'); define('DB_PASSWORD', ‘our_password');

Linking apache and wordpress rsync -avP ~/wordpress/ /var/www/html/

First launch We access (or the address given by bluemix)

Etherpad Etherpad is a collaborative tool used to edit text, very similar to a Google Doc We will use etherpad lite, that works with nodejs, and NginX will take care of the network.

Installation of node.js Etherpad requires a given version of node.js (between 0.10 and 0.12). I then chose to download it directly from the node.js website. Wget Tar xzvf node-v tar.gz./configure Make #This is the compilation step, it may take time Make install Node –v checks the version of node installed (0.12 for me).

etherpad lite installation Mkdir etherpad_folder Cd etherpad_folder git clone If dependencies are not up-to-date, there are errors : we must update. We can edit the address: ~/etherpad_folder/etherpad- lite/settings.json to switch from to

Launching through a screen When etherpad is running, there is no way to type other commands. Thus, we will use what is called a screen, that allows to have more tha none terminal window. If it is not already installed: apt-get install screen Then : screen # we have a blank new window ~/dossier_etherpad/etherpad-lite/bin/run.sh #launching We go back to the main terminal by using the shortcut : press Ctrl and a, then d. To go back to the screen, the command is screen - rd

What is the use of nginx? Through wget :9001, we check that etherpad works well, (we get an index.html file, its beginning is available with head index.html). We want to access the l’etherpad through the web, we shall use a proxy.

Installation of nginx We install it through : apt-get install -t wheezy-backports nginx We create te file : /etc/nginx/sites-available/etherpad And copy the configuration (next slide) Then, we create a symbolic link to the active configuration : ln -s /etc/nginx/sites-available/etherpad /etc/nginx/sites-enabled/ Then, we reload the server and (re)start the service. service nginx reload && service nginx (re)start

NginX configuration (you can simply copy/paste it with a few modifications) server { listen 80; // default web http port, sometimes may be 8080 server_ ; //replace it with YOUR public IP address, people will access the server through it access_log /var/log/nginx/etherpad.access.log; error_log /var/log/nginx/etherpad.error.log; location / { proxy_pass //exchanges data with the etherpad proxy_set_header Host $host; proxy_buffering off; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; } map $http_upgrade $connection_upgrade { default upgrade; '' close; }

We may now access etherpad through a web browser, and create an active sheet. If there is a problem with the nginx configuration, we get a http 502 bad gateway error.