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.

    $ ./stratos.sh [email protected] password


  2. Subscribe to the PHP Cartridge

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

    Code Description

    SyntaxDescription
    php
    PHP Cartridge
    myweb
    Alias name for the PHP application.
    *git-repo-url
    URL of the GIT repository.
    Example: https://github.com/lakwarus/wordpress.git
     *usernameUsername for provided GIT account.
    *password
    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 https://github.com/lakwarus/wordpress.git.

Upload WordPress

 

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

    $ git clone http://git.stratos.com/telecom.org/myweb.git


  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 http://wordpress.org/latest.tar.gz

 

$ 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

      

     

     
    SyntaxDescription
    mysql
     
    MySQL Cartridge.
    mywebdb
     
    Alias for MySQL database Cartridge
     

     

      
  2. Request for MySQL database Cartridge information. 

     

    stratos> info mywebdb

    Output

    Cartridge Info
    -----------------
    Cartridge: mysql
    Alias: mywebdb
    Host: 192.168.92.67
    Password: cilxskqh
    Admin URL: https://mywebdb.mysql.stratos.com
    Status: ACTIVE
    Active Instances: 1


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

    ELB IP Address    mywebdb.mysql.stratos.com


  4. Go to https://mywebdb.mysql.stratos.com
  5. Login using the credentials given in the Cartridge Info output. The Username is root
  • No labels