Translations:Creating a web server on a cloud/9/en

From Alliance Doc
Jump to navigation Jump to search
  1. Create a persistent virtual machine (see Booting from a volume) running Ubuntu Linux by following the Cloud Quick Start instructions.
  2. Open port 80 to allow HTTP requests into your VM by following these instructions but selecting HTTP from the drop-down box instead of SSH.
  3. While logged into your VM:
    1. Update your apt-get repositories with the command
      Question.png
      [name@server ~]$ sudo apt-get update
      
    2. Upgrade Ubuntu to the latest version with the command
      Question.png
      [name@server ~]$ sudo apt-get upgrade
      
      Upgrading to the latest version of Ubuntu ensures your VM has the latest security patches.
    3. Install the Apache web server with the command
      Question.png
      [name@server ~]$ sudo apt-get install apache2
      
  4. Apache2 test page (Click for larger image)
    Go to the newly created temporary Apache web page by entering the floating IP address of your VM into your browser's address bar. This is the same IP address you use to connect to your VM with SSH. You should see something similar to the Apache2 test page shown to the right.
  5. Start modifying the content of the files in /var/www/html to create your website, specifically the index.html file, which is the entry point for your newly created website.