$ sudo dnf install httpd
2. Edit Config file
Gunakan nano atau vim
open: /etc/httpd/conf/httpd.conf.
$ nano /etc/httpd/conf/httpd.conf
3. Isi Dokumen dengan text berikut:
DocumentRoot /var/www/html
Listen 80
4. Manage the service jalankan:
$ systemctl status httpd
$ systemctl stop httpd
$ systemctl start httpd
5. Enable now Httpd Service
$ sudo systemctl enable --now httpd
6. Testing danlocalhost:80
coba buka di browser untuk url dibawah
localhost:80
7. Membuat Content
Buatlah file index.html di directory var/www/html
<html> <head> <title>Welcome to my test site!</title> </head> <body> This site is for testing purposes only </body> </html>
0 komentar untuk Cara Setup Httpd Apache Server to Running on Localhost Port 8080