Lake Effect is an on-premise cloud computing and storage service provided by CCR for UB researchers. Lake Effect is comparable to Amazon's EC2 services but housed and maintained on campus. Hardware and software options available to researchers are varied and it's designed to allow users to burst to Amazon or other commercial cloud providers if they find they need more capacity. For more information about Lake Effect, please click here.
In this article, we will create a basic website hosted on a virtual server in Lake Effect.
Step One - Logging into Lake Effect or Logging into Lake Effect (Globus)
Step Two - Managing Openstack Credentials
Step Three - Security Groups
Note: Make sure you have added the rules in the security group for SSH and HTTP to access and set up the website.
Step Four - Launching OpenStack Instances
For this example, we are using an instance with flavor c1.m1 and using the image containing the ubuntu 16.04 operating system. To know more about Types of Instances CCR offers have a look at Lake Effect Instance Types.
Step Five - Logging into Openstack Instances
If you are getting error "Permission Denied(Publickey)", have a look at
Changing permission on your SSH private key
Step Six - Setting up Apache Server
To install apache server, type the below command into the terminal
apt-get apache2
Now, start the server with the following command
apache2 -T
To check the status, type the command given below
apache2 status
Now, visit the IP address associated with the instance in the browser.
If you are not sure of the IP-address, type the following command to get the IP address
hostname -I | awk '{print $1}'
If every step was completed correctly it will show a page similar to the image given below
Step Seven - Setting permissions for File Upload
You have to make files writeable in order to upload the files in the directory /var/www/html/.
Type the given below command to make the files readable, writeable and executable.
chmod 755 /var/www/html/
Step Eight - Uploading Files using SCP
To upload a contents of a folder to destination folder (/var/www/html)
scp -i key.pem -r path/of/Folder/* ubuntu@ipaddress:/var/www/html
To upload a single file to destination folder (/var/www/html)
scp -i key.pem path/to/File.ext ubuntu@ipaddress:/var/www/html
In this example, we have uploaded a folder and upon uploading the webpage, it looks like the image given below.
The source code of the website is in attachments.
See Also