Publish your website from 0 in 20 minutes on VPS Oracle Systems

Systems

In this tutorial we are going to see how to publish a web page (HTML/CSS/JavaScript) on a VPS server and using the System Ubuntu Server operating, from the Oracle platform (OCI Oracle Cloud Infrastructure) in just 20 minutes. From the acquisition of the VPS server in OCI to the publication of the web page on the server. It is implicit that you already have your website. Well, in the tutorial we created a simple one.

What software do we need to carry out this tutorial?

Since we are going to use Ubuntu Server (Linux System) we will need these programs compatible with Windows.

 Steps to follow

 OCI VPS Server (Instance)

1

Acquisition of VPS Server (Instance) in Oracle (OCI Oracle Cloud Infrastructure)
We will acquire a VPS server (Instance) and configure the input ports 80/443 (Http/Https) We will configure Putty a unique key for access to the server. This way it will be totally safe.

 Server Access

2

Server access
Using the program Putty we will access the server. Once inside we update it and We removed the IPTables which we all know don't play well on the Oracle platform.

 Apache

3

Apache Web Server
We install and configure the Apache web server.

 CloudFlare

4

We point the IP to the domain at CloudFlare
Here we must point the IP to the domain "java-programming.juanantonioripoll.es" on the platform CloudFlare

 Let's Encrypt

5

Let's Encrypt Digital Security Certificate
We install, configure and obtain the Let's Encrypt certificate for the domain "java-programming.juanantonioripoll.es"

 PHP 8.2

6

Installation and configuration of PHP 8.2
We install the version of PHP 8.2

 Web Page Publication

7

Publishing the web page on the server
Using the program FileZilla we are going to publish our web page on the server. First we will grant permissions to the user on the server. We test the website.

 Commands

Follow the steps from left to right, correlative and don't get lost. In just 20 minutes, you have a web page published on a VPS server Oracle (OCI Oracle Cloud Infrastructure) on Ubuntu Server. You just have to replace the domain "java-programming.juanantonioripoll.es" with yours.

1
  • sudo apt-get update
  • sudo apt-get upgrade
2
  • sudo systemctl enable ufw
  • sudo ufw allow 22
  • sudo ufw enable
  • sudo apt remove netfilter-persistent
  • sudo reboot
3
  • sudo apt install apache2
  • sudo ufw allow 80/tcp
  • sudo ufw allow 443/tcp
  • sudo a2enmod ssl
  • sudo systemctl restart apache2
4
  • sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/apache-selfsigned.key -out /etc/ssl/certs/apache-selfsigned.crt
  • Complete
    Country Name (2 letter code) [XX]:ES
    State or Province Name (full name) []:ALI
    Locality Name (eg, city) [Default City]:MU
    Organization Name (eg, company) [Default Company Ltd]:Juan A. Ripoll
    Organizational Unit Name (eg, section) []:IT
    Common Name (eg, your name or your server's hostname) []:java-programming.juanantonioripoll.es
    Email Address []:juanantonioripoll@hotmail.es
5
  • sudo nano /etc/apache2/sites-available/java-programming.juanantonioripoll.es.conf
  • Download the configuration file
  • Remember: Crtl+Y (Save) Enter (Exit)
  • sudo mkdir /var/www/java-programming.juanantonioripoll.es
  • sudo nano /var/www/java-programming.juanantonioripoll.es/index.html
  • Download simple web page
  • Remember: Crtl+Y (Save) Enter (Exit)
  • sudo a2ensite java-programming.juanantonioripoll.es.conf
  • sudo apache2ctl configtest
  • sudo systemctl reload apache2
  • *If errors occur when reloading Apache, check the configuration file
  • sudo nano /etc/apache2/sites-available/java-programming.juanantonioripoll.es.conf
6
  • sudo apt install letsencrypt
  • sudo systemctl status certbot.timer
  • sudo systemctl stop apache2
  • Point the domain to the IP assigned to the server.
7
  • sudo certbot certonly --standalone --agree-tos --preferred-challenges http -d java-programming.juanantonioripoll.es
  • apt install python3-certbot-apache
  • sudo systemctl start apache2
  • sudo certbot --apache --agree-tos --preferred-challenges http -d java-programming.juanantonioripoll.es
  • Choose the most required option: 2
8
  • sudo apt install software-properties-common ca-certificates lsb-release apt-transport-https
  • sudo LC_ALL=C.UTF-8 sudo add-apt-repository ppa:ondrej/php
  • sudo apt update
  • sudo apt install php8.2
9
  • Gives permission to the user
  • sudo chown -R -v ubuntu /var/www
  • Ready! You can now publish with FileZilla

 Programming Courses

 C# Programming Course

Free
Curso de programacion C# Sharp
  • 12 C# Lessons with their exercises
  • 224 C# Exercises with the solution
  • 224 Very useful C# Sample Codes
  • Completely Free and without registration
  • Suitable for beginners and advanced
  • Suitable for everyone
Go to C# Course  

 Java Programming Course

Free
Java Programming Course - Free
  • 12 Java Lesson with their exercises
  • 224 Java Exercises with the solution
  • 224 Very useful Java Sample Codes
  • Completely Free and without registration
  • Suitable for beginners and advanced
  • Suitable for everyone
Go to Java Course  

 VB.Net Programming Course

Free
Visual Basic (VB.Net) Programming Course - Free
  • 12 VB.Net Lessons with their exercises
  • 224 VB.Net Exercises with the solution
  • 224 Visual Basic Sample Codes
  • Completely Free and without registration
  • Suitable for beginners and advanced
  • Suitable for everyone
Go to VB.Net Course  
Juan A. Ripoll - Systems Tutorials and Programming Courses © 2024  All rights reserved.  Legal Conditions.