MEMBUAT WEBSITE LINUX

 

MEMBUAT WEBSITE LINUX

1.     Install Web Server (Apache) dengan perintah :

• sudo apt update

• sudo apt install apache2

2.     Masuk ke folder website, perintahnya : cd /var/www/html



 

 

 

 

 


3.    Buat file website, perintahnya : sudo nano index.html

4.     Isi file index > Ctrl+x > y > enter

5.     Atur firewall, perintahnya :

 sudo ufw allow 'Apache'

 sudo ufw enable

6.     Cek apakah Apache berjalan, perintahnya : sudo systemctl status apache2

7.     Pastikan Firewall sudah mengizinkan, pastikan port 80 dibuka, perintahnya :

 sudo ufw allow 80

 sudo ufw reload

Cek status, perintahnya : sudo ufw status

8.     Tes akses dari server sendiri di terminal, perintahnya : curl http://localhost

 

9.     Buka browser lalu ketik : http://10.10.10.110

Web Server telah berhasil jalan 100%

10.  Install PHP dengan perintah : sudo apt install php libapache2-mod-php

Komentar

Postingan populer dari blog ini

tugas mikrotik kelompok

Proxy Server Amel