In this section, you will install the Apache server on a workload VSI.
- By default, the workload VSI (Virtual Server Instances) are locked down from the management VPC. You will need to allow access through the Access control list. In the Access control list, click the ACL labeled <initials>-workload-acl.
- In the Access control list, click the ACL labeled <initial>-management-acl.
- Access the workload VSI by doing the following:
- Navigate to Virtual server instances for VPC. Take note of the private IP ("Reserved IP") for the VSI labeled initials-workload-server-1 (10.40.10.4 in this example).
- From your machine, copy the private key labeled lab_key to the bastion host
scp -i lab-key lab-key root@<Floating IP address of bastion host>:/root
- SSH to the bastion host
ssh -i ./lab-key root@<Floating IP of Virtual server instance>
- Change permissions of the private key
chmod 600 lab-key
- SSH to the workload VSI
ssh -i ./lab-key root@<Private IP address of the workload VSI>
- Navigate to Virtual server instances for VPC. Take note of the private IP ("Reserved IP") for the VSI labeled initials-workload-server-1 (10.40.10.4 in this example).
- Install the Apache web server by issuing the following commands:
apt-get update apt-get install apache2 --yes
- (Optional) You may repeat the steps 3 and 4 for the workload VSIs -workload-server-2 and -workload-server-3