Install Apache di Ubuntu Server 22.04
$ sudo ufw allow 
  'Apache Full' Rule added 
  Rule added (v6)

Lalu cek perubahan status Firewall :

$ sudo ufw status
Status: Active
To                Action          From
--                ------          ----
8080/tcp          ALLOW           Anywhere
Apache Full       ALLOW           Anywhere
8080/tcp (6)      ALLOW           Anywhere
Apache Full (6)   ALLOW           Anywhere

Dari sini dapat dilihat bahwa Apache Full sudah aktif dengan status ALLOW . Jadi Apache dengan port 80 dapat diakses dari luar web server.

Lanjut dengan cek status Apache  apakah sudah berjalan dengan baik atau belum , jalankan perintah :

 

$ sudo systemctl status apache2
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor prese>
Active: active (running) since Tue 2022-04-26 15:33:21 UTC; 43s ago
Docs: https://httpd.apache.org/docs/2.4/
Main PID: 5089 (apache2)
Tasks: 55 (limit: 1119)
Memory: 4.8M
CPU: 33ms
CGroup: /system.slice/apache2.service
├─5089 /usr/sbin/apache2 -k start
├─5091 /usr/sbin/apache2 -k start
└─5092 /usr/sbin/apache2 -k start

Jika hasilnya seperti diatas maka Apache sudah berjalan dengan baik. Lalu kemudian akses melalui browser IP dari localhost atau Cloud server anda misalkan :

http://ip_server_anda

Maka akan tampil seperti ini :

Dari ini web server Apache anda sudah jalan dan selajutnya anda bisa membuat atau menaruh file-file website di web server tersebut. Secara default letak direktori file-file Apache terletak di /var/www/html

 

Ada beberapa perintah untuk menjalankan web server Apache terkait proses manajemennya, dengan perintah systemctl antara lain :

Sayuti.com

Percetakan & Digital Printing