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 2 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

Upload 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.



$ cd myweb


To list the folder


$ ls


 simplesamlphp  sql  www


copy wordpress/* files into www folder. To download WordPress go to


$ git add www/*


$ git commit -a -m “initial commit”


$ git push

If git push take long time with the following output


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

 do a ctrl+C to finish it(this is a known issue)

Setting up a database

  1. Subscribe to the MySQL database cartridge. 


    stratos>subscribe mysql mywebdb

    Code Description



    MySQL Cartridge.
    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
  • No labels