Quick Command After Connect to Ubuntu Cloud

  1. sudo apt-get update && sudo apt-get upgrade –y
  2. sudo passwd ubuntu
  3. sudo apt-get install -y apache2

After this edit the apache2.conf at /etc/apache2/
Need to change the group and user to www-data

Then at site-enabled folder, edit 000-default
Change the DocumentContent to /home/ubuntu/htdoc

Finally restart apache with this command

sudo /etc/init.d/apache2 restart