This documentation is for WSO2 Stratos 2.0.0. View the latest Apache Stratos documentation.
Wordpress Guide - Stratos 2.0.0 - WSO2 Documentation
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

This page is under construction.

The following information in the WordPress guide explains how you can access Stratos 2.0 using the CLI.

Logging into Stratos2.0

  1. Login to Stratos 2.0 using CLI.

    $ ./ [email protected] password

  2. Subscribe to the PHP Cartridge

    stratos>subscribe php myweb -repoURL *git-repo-url -repoUserName *username -repoPassword *password

    Code Description

    PHP Cartridge
    Alias name for the PHP application.
    URL of the GIT repository.
     *usernameUsername for provided GIT account.
    Password for provided GIT account.


The provided PHP Cartridge is configured to except the following folder structure.

simplesamlphp  sql  www

Where www folder contain wordpress php files. For samples please go to

Uploading WordPress

  1. Checkout the tenant repo into a folder of your choice.

    $ git clone

  2. Enter the username and password of the tenant, when the credentials are requested.
  3. Change the current working directory to myweb 

    $ cd myweb
  4. List the folder. 

    $ ls


    simplesamlphp  sql  www
  5. Copy wordpress/* files into the www folder. 
    If you do not have the WordPress files initially go to 

    $ git add www/*


  6. Record a snapshot of your history. 

    $ git commit -a -m “initial commit”

     Code Description


    The option to automatically stage all tracked, modified files before the commit.

    -mThe option to provide the commit message on the command line.
    “initial commit”
    The actual commit message.


  7. Share the changes made. 

    $ git push

    If the outcome is as follows and GIT push takes a long time, 

    remote: 100   357	0 	0  100   357  	0  	6  0:00:59  0:00:52  0:00:07

    Enter Ctrl+C to finish the process as this is a known issue. 

Setting up a database

  1. Subscribe to the MySQL database cartridge. 

    stratos>subscribe mysql mywebdb

     Code Description

    mysql MySQL Cartridge.
    mywebdb Alias for MySQL database Cartridge


  2. Request for MySQL database Cartridge information. 

    stratos> info mywebdb


    Cartridge Info
    Cartridge: mysql
    Alias: mywebdb
    Password: cilxskqh
    Admin URL:
    Status: ACTIVE
    Active Instances: 1

  3. Add an entry in the /etc/hosts file for to be able to access the URL shown in the output of the command.

    ELB IP Address

  4. Go to
  5. Login using the credentials given in the Cartridge Info output. The username is root.

Creating a Database

  1. On the phpmyadmin menu, click Databases.
  2. Enter the DB name in the Create new database text-box.
    For example, mywebdb
  3. Add an entry in the /etc/hosts file for to be able to access the URL shown in the output of the command.

  4. Go to
    This request is sent to the WSO2 elastic load balancer. The user can access their application running on the PHP Cartridge through the load balancer. 

Running the Installer

  1. Enter the details that you get when executing info mywebdb command.

    Database Name : mywebdb 
    User Name : root
    Password : cilxskqh     
    Database Host :
  2. Click Submit.
    Now the website is ready for use.
  3. Continue installing WordPress.

    The login page will appear after successful installation of WordPress.

  • No labels