## 01. Create compute instance * Region ``` mumbai ``` * Compartment ``` your own compartment ``` * Image ``` Oracle Linux 8 ``` * Shape ``` VM.Standard.E2.1 ``` * VCN ``` your own vcn ``` * Public Ip ``` yes, ``` * Private Ip ``` set any private ip by manualy ``` * SSH Key ``` generate a new ssh key with passphrase ``` * C Drive ``` 100GB ``` * Document for help * https://docs.oracle.com/en/cloud/cloud-at-customer/occ-get-started/create-oracle-linux-instance.html ## 02. Install Software * update the os ``` bash sudo dnf update ``` * Install Apache Server ``` bash sudo dnf install httpd ``` * Enable Apache Service ``` bash sudo systemctl enable --now httpd.service ``` * check if the service active and running ``` bash sudo systemctl status httpd ``` * Enable firewall for http traffic ``` bash sudo firewall-cmd --add-service=http --permanent sudo firewall-cmd --reload ``` * Document for help * https://docs.oracle.com/en/learn/apache-install/index.html#more-learning-resources ## 03. Enable http traffic using Oracle Security List * Document for help * https://docs.oracle.com/en-us/iaas/Content/Network/Concepts/securitylists.htm ## 04. Check if the web server working or not by using public ip ## 05. Create a custom image using above vm * Name ``` web_custom_image ``` * Document for help ``` https://docs.oracle.com/en-us/iaas/Content/Compute/Tasks/managingcustomimages.htm ``` ## 06. Create a new instance by using your custom image * Use the same configuration as source instance * Document for help ``` https://docs.oracle.com/en/learn/lab_custom_image/index.html#introduction ``` * Check if the web server working or not in the new instance. ## Note * Please share the ssh key and passphrase with me