Getting Started

    This article describes how to get started using the Windows Azure images developed by Bitnami. We will use the Bitnami WordPress image for the examples below.

    Bitnami Launchpad for Windows Azure

    The Launchpad for Windows Azure is a web-based interface for launching Azure images with ease. When you visit the Launchpad, you will have access to the entire Bitnami Library.

    launchpad-home.png

     

    Mouse over a image to reveal two options: Launch in Account and Free 1 hour Demo. You do not need an Azure account to launch a demo, however you will need to sign up for Windows Azure to run a production server.

     

     

    Enter Bitnami admin password by clicking the sign in link in the top right. Next, you will create a Management Certificate in order to give Bitnami permission to launch applications in your Azure account. Just sign in to Azure.

    service_Form.png

    A customized pub file will automatically download to your computer, which you can drag from your desktop into the console. Now just click to create a service. Once you do, you'll be able to set your server size, select a region and create a virtual machine

     

    select-region.png

     

     

    Add Bitnami Image

    All Bitnami images are also listed in the Azure Community Portal VM Depot and in the Windows Azure web console

     

    You can manage all your Windows Azure resources via the WIndows Azure web console. To do so, go to https://manage.windowsazure.com and sign in with your Windows Azure login and password.

    First, go to the "Virtual Machines" section and then "Images" tab" and click "Browse VMDepot" at the bottom of the page.

    azure-console-images-vmdepot-1.png

    Select the Bitnami image which you want to add to your Windows Azure Account. We choose WordPress in this tutorial. Each Windows Azure Image powered by Bitnami has a detailed description of the included application. The listing also provides the default application login and password. Click "More" to show the image description.


    Click OK. Now your new image (in our case "WordPress-3-5-0-Ubuntu-12-10") will show up in the Images section. Select it and click the "Register" button at the bottom. In the new pop-up window you will be able to choose the name for your image. Then click OK.

    Launch your machine

    Once the new image is added, click New in the left bottom corner. Select "Virtual Machine" and then "From Gallery" option. Go to "My Images" in the new pop-up window and select your new image:

    azure-console-images-vmdepot-create-server-0.png

     

    Enter your machine name, login, password, instance type and DNS name in the machine configuration wizard.

    azure-console-images-vmdepot-create-server-1.png

    azure-console-images-vmdepot-create-server-2.png

    Once the new machine wizard is completed, click "Virtual Machines" in the left menu, and select your new server. Wait till your machine is running.

    Open network ports

    This dashboard gives you an overview of all server attributes, possible operations and also allows you to modify your instance configuration.

    We can check which network ports are open in the "Endpoints" section.

     

    You need to add port 80 (HTTPS) here. Click "Add Endpoint" at the bottom of the page and fill in the form below:

    azure-machine-add-new-endpoint.png

     

    Please note that it may take some time before the new port is available.


    Access your application

    Once your machine is running and port 80 (HTTP) is opened, you can enter its domain name in your web browser. In our example, it is mywordpress.cloudapp.net. You can find the domain in the main dashboard,

    Click "Access my application" to get access to your WordPress application.


    Please note that in most cases, the default application login and password are:

    login: user

    password: bitnami

    You can find the default login and password in the Windows Azure VMDepot portal, in the Azure image description.

    WARNING: Please login to your application immediately after launching your server and change the default password.

     

    Connect to your machine

    You have full control over your machine and you can connect to it with any SSH/SFTP/SCP client. The system account login and password were chosen with the server creation command. Learn more about how to connect to your server. Here is an example of SSH session for our demo machine below:

    ssh wpuser@mywordpress.cloudapp.net
    wpuser@mywordpress.cloudapp.net's password:
    
    The programs included with the Ubuntu system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.
    
    Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
    applicable law.
    
    Welcome to Ubuntu 12.10 (GNU/Linux 3.5.0-21-generic x86_64)
           ___ _ _   _  _            _ 
          | _ |_) |_| \| |__ _ _ __ (_)
          | _ \ |  _| .` / _` | '  \| |
          |___/_|\__|_|\_\__,_|_|_|_|_|
    
      *** Welcome to the Bitnami WordPress 3.5-0 ***
      *** Bitnami Wiki:   http://wiki.bitnami.com/ ***
      *** Bitnami Forums: http://answers.bitnami.com/ ***
    wpuser@my-wordpress:~$
    

     

    Basic operations

    All of the Bitnami base stack components, such as Apache, MySQL, PHP, etc., are located in the /opt/bitnami directory. 

    Configuration files

    The most important configuration files are located in the following locations:

    Apache web server:

    /opt/bitnami/apache2/conf/httpd.conf

    Apache web server application secific configuration file

    /opt/bitnami/apps/<application-name>conf/<application-name>.conf

    example: /opt/bitnami/apps/wordpress/conf/wordpress.conf

    PHP configuration file

    /opt/bitnami/php/etc/php.ini

    Log files

    • /opt/bitnami/apache2/log/error.log
    • /opt/bitnami/apache2/log/access.log
    • /opt/bitnami/mysql/data/mysqld.log

    Managing Services

    The Bitnami Stack is managed with the ctlscript.sh tool. You can use it to check the state of your services (Apache, MySQL, etc.), start, stop or restart them.

    wpuser@my-wordpress:~$ sudo /opt/bitnami/ctlscript.sh status 
    apache already running
    mysql already running
    wpuser@my-wordpress:~$ sudo /opt/bitnami/ctlscript.sh restart
    Syntax OK
    /opt/bitnami/apache2/scripts/ctl.sh : httpd stopped
    /opt/bitnami/mysql/scripts/ctl.sh : mysql stopped
    130114 16:01:05 mysqld_safe Logging to '/opt/bitnami/mysql/data/mysqld.log'.
    130114 16:01:06 mysqld_safe Starting mysqld.bin daemon with databases from /opt/bitnami/mysql/data
    /opt/bitnami/mysql/scripts/ctl.sh : mysql  started at port 3306
    Syntax OK
    /opt/bitnami/apache2/scripts/ctl.sh : httpd started at port 80
    
    Tag page (Edit tags)
    • No tags
    Pages that link here
    Page statistics
    54413 view(s), 19 edit(s) and 12108 character(s)

    Comments

    You must login to post a comment.

    Attach file

    Attachments

    FileSizeDateAttached by 
     azure-console-dashboard-server-1.png
    No description
    53.04 kB17:41, 14 Jan 2013DanooActions
     azure-console-images-launch-short.png
    azure launch
    22.36 kB14:59, 24 Jan 2013AdminActions
     azure-console-images-launch.png
    azure launch
    29.48 kB14:57, 24 Jan 2013AdminActions
     azure-console-images-vmdepot-1.png
    No description
    85.13 kB15:20, 23 Jan 2013DanooActions
     azure-console-images-vmdepot-2.png
    No description
    63.73 kB15:20, 23 Jan 2013DanooActions
     azure-console-images-vmdepot-create-server-0.png
    No description
    47.56 kB15:21, 23 Jan 2013DanooActions
     azure-console-images-vmdepot-create-server-1.png
    No description
    51.34 kB15:21, 23 Jan 2013DanooActions
     azure-console-images-vmdepot-create-server-2.png
    No description
    49.75 kB15:21, 23 Jan 2013DanooActions
     azure-console-images-vmdepot-create-server-5.png
    No description
    49.18 kB15:26, 23 Jan 2013DanooActions
     azure-console-images-vmdepot-create-server-6.png
    No description
    6.86 kB15:25, 23 Jan 2013DanooActions
     azure-console-images-vmdepot-create-server-7.png
    No description
    8.53 kB15:25, 23 Jan 2013DanooActions
     azure-console-images-vmdepot-register-image-1.png
    No description
    13.43 kB15:22, 23 Jan 2013DanooActions
     azure-console-sample-app-init-page.png
    No description
    61.51 kB17:47, 14 Jan 2013DanooActions
     azure-dashboard-attach-disk-1.png
    No description
    21.13 kB18:04, 14 Jan 2013DanooActions
     azure-dashboard-attach-disk-2.png
    No description
    3.86 kB18:04, 14 Jan 2013DanooActions
     azure-dashboard-endpoints-1.png
    No description
    12.87 kB17:41, 14 Jan 2013DanooActions
     azure-dashboard-endpoints-2.png
    No description
    13.08 kB17:41, 14 Jan 2013DanooActions
     azure-dashboard-endpoints-3.png
    No description
    12.02 kB17:41, 14 Jan 2013DanooActions
     launchapp.png
    No description
    10.41 kB17:50, 7 Apr 2014jonActions
     launchpad-home.png
    No description
    182.5 kB17:50, 7 Apr 2014jonActions
     select-region.png
    No description
    102.31 kB17:50, 7 Apr 2014jonActions
     service_Form.png
    No description
    145.67 kB18:23, 7 Apr 2014jonActions
     vmdepot-listing-1.png
    No description
    48.15 kB17:21, 14 Jan 2013DanooActions
     vmdepot-worpress-1.png
    No description
    52.18 kB17:21, 14 Jan 2013DanooActions
     vmdepot-worpress-deployment-script-1.png
    No description
    41.13 kB17:21, 14 Jan 2013DanooActions