This documentation is for WSO2 Stratos 2.0.0. View the latest Apache Stratos documentation.
Page Comparison - Wordpress Guide (v.25 vs v.26) - Stratos 2.0.0 - WSO2 Documentation

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

    Code Block
    $ git clone https://github.com/lakwarus/wordpress.git


  2. When prompted , enter the tenant username and password .
  3. Change the current working directory to wordpress 

    Code Block
    $ cd wordpress
  4. List the folder.  

    Code Block
    $ ls

    Output

    Code Block
    simplesamlphp  sql  www
  5. Copy wordpress/* files into the www folder. 
    If you do not have the WordPress files initially go to  http://wordpress.org/latest.tar.gz  

    Code Block
    $ git add www/*

     

  6. Commit to local repository.  

    Code Block
    $ git commit -a -m “initial commit”

     Command Argument Description

    SyntaxDescription
    -a

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

    -mThe option to provide the commit message on the command line.

     

  7. Push the changes to the remote repository.  

    Code Block
    $ git push

 

Setting up a database

  1. Subscribe to the MySQL database cartridge.  

    Code Block
    stratos>subscribe mysql mywebdb

     Command Argument Description

    SyntaxDescription
    mysql MySQL Cartridge.
    mywebdb Alias for MySQL database Cartridge

    Output


  2. Request for MySQL database Cartridge information.  

    Code Block
    stratos> info mywebdb

    Output


  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 above command.

    Code Block
    <ELB IP>    mywebdb.mysql.s2demo.wso2.com


  4. Go to https://mywebdb.mysql.s2demo.wso2.com:8243
  5. Login using the credentials given in the Cartridge Info output. The username is root.
     

...