First create an Ubuntu image on your cloud. We have already discussed this in our article "Adding OS Images to the Cloud". Here we install it with the name DebTest and to configure web server on it, we need to install the LAMP stack which is a group of open source software used to get web servers up and running. The acronym stands for Linux, Apache, MySQL, and PHP. Since the virtual Machine is already running Ubuntu, the Linux part is taken care of. Now we discuss how to install the rest.
First login to Ubuntu virtual machine and get root access by default. The Ubuntu root user is locked so to get access use the following command and after that you will able to login as root.
Step 1-Install Apache
Apache is a free and open source software which runs mostly all Linux web servers. To install apache type in these commands :
To check whether Apache is up, direct your browser to your Ubuntu server IP. To check server IP, type ifconfig eth0.
Step 2-Install MySQL 5
To install MySQL, type the following command and you will be asked to provide a password for the MySQL root user - this password is valid for the user root@localhost as well as firstname.lastname@example.org.