Installing HTTP Server in Compute Classic

Tweet about this on TwitterShare on Facebook4Share on LinkedIn2Share on Google+0

In the last blog post, we created a new instance of Compute Classic in the Oracle Cloud. Now it’s time to use it, and for that we will install the HTTP Server in the same way that you do on your local servers.

Sign in to your account.
In the Compute Classic section, click the Menu button and then click the “Open Service Console” button.

First of all, we need to enable SSH and HTTP access to your instance.
Click the Network menu.

In the Security Rules, click the “Create Security Rule” button.
In the Create Security Rule window, fill out the form and click the Create button.

  • Name = ssh
  • Status = Enabled
  • Security Application = ssh
  • Source = Security IP List > public-internet
  • Destination = Security List > default

Create other Security Rule.

  • Name = http
  • Status = Enabled
  • Security Application = http
  • Source = Security IP List > public-internet
  • Destination = Security List > default

You now have all the security rules you need, but if you need to create more rules, go ahead!

In the next step, I will install the HTTP Server using a terminal emulator called MobaXterm, but you can use Putty or another one.
Open your terminal emulator and configure a new SSH session to access your instance.

  • Remote host = [your_public_ip]
  • Username = opc
  • Port = 22
  • Private key = [your_private_key]

Start a new SSH session, switch to root user and install the HTTP Server.

# sudo su -

# yum -y install httpd

Turn on the HTTP server and make sure it starts automatically on reboot.

# service httpd start

# chkconfig httpd on

Done! Now, try to access using your public IP.

Create a new HTML page and try again.

# echo 'Hello World!' > /var/www/html/index.html

Have a good time!

Tweet about this on TwitterShare on Facebook4Share on LinkedIn2Share on Google+0

Author: Waslley Souza

Consultor Oracle com foco em tecnologias Oracle Fusion Middleware e SOA. Certificado Oracle WebCenter Portal, Oracle ADF e Java.

Leave a Reply

Your email address will not be published. Required fields are marked *