API Management

Setting up the Web Server

Contents

Requirements

Recommended Webservers

Use the following web server based on the platform being used:

Setting up AMP Server

 Below sections illustrate the installation of web servers in Windows and Linux platforms respectively:

Bitnami Web Stack provides a complete PHP, MySQL and Apache development environment that can be launched in one click.

  1. Perform the following actions based on the operating system as below:

    1. Windows: Double-click the downloaded executable file.

    2. Mac: Double-click the .dmg file to make its content available (name shows up in the Finder sidebar and usually a window opens showing the content as well) or drag the application from the .dmg window into /Applications to install (may need an administrator password).

    3. Linux: Give permissions to the executable file and run the executable in the command line by typing the below commands:

      cd <path-to-folder-where-executable-exists>
      ./<executable-name>.run 
      

      The following wizard appears.

      The wizard below is pertaining to Linux; Windows and Mac wizard would be similar to this.

      Lampsetup1.png
      Figure 1: LAMP Setup wizard

  2. Click Next twice and provide the installation folder and click Next

    Lampsetup2.png
    Figure 2: Setting the installation folder

  3. To access the MySQL database, it requires an account with credentials. Type in the password and click Next.

    The default username is 'root'. 

    Lampsetup3.png
    Figure 3: Setting the MySQL password

  4. Provide an unused port to the Apache Web server and click Next.

    Lampsetup4.png
    Figure 4: Providing the Apache Webserver port number

  5. Provide an unused port to the SSL configuration and click Next.

    Lampsetup5.png
    Figure 5: Providing the SSL Port number

  6. Provide an unused port to the MySQL server and click Next twice.

    Lampsetup6.png
    Figure 6: Providing the MySQL server port number

    Installation starts.

    Lampsetup7.png
    Figure 7: Installation status screen

  7. After the installation is completed, click Finish

  8. To start the apache and web servers, go to the LAMP installation folder and type in the following command in the command line:

    ./manager-linux-x64.run 
    
  9. Go to Manage Servers and click Start All in the bottom to start the servers.

    • Status of the servers can be seen in the Status column in the dialog box.

    • The default configuration for servers can be changed by clicking the Configure button against the server.

    Lampsetup8.png
    Figure 8: Starting the servers

Creating a database in the database server

  1. Open the LAMPP database portal by using the URL in the following format:

    http://<IPAddress>:<PortNumber>/phpmyadmin/
    
  2. Provide the default Username "root" and the password created in the previous steps, and click Go.

    phpmyadmin.png


    Figure 9: Logging on to the PHP database

  3. Click the Databases tab, provide a database name in the Create database field and click Create.

    Figure 6 Creating a Developer Portal Drupal database.png


    Figure 10: Creating a Developer Portal Drupal database

  4. The database that is created appears in the left navigation pane.

    Figure 7 Newly created Developer Portal Drupal database.png


    Figure 11: Newly created Developer Portal Drupal database