Hosting website from centos

yubarajsingh

yubaraj singh

Posted on March 13, 2022

Hosting website from centos
  • Install http using command
    sudo yum install httpd

  • check status of server
    systemctl status httpd

  • start the httpd service
    sudo systemctl enable httpd
    sudo systemctl start httpd

the go the /var/www/html/
cd /var/www/html

create new index.html
vi index.html

write html code here and save the code

now your site is hosted in your ip or localhost.

💖 💪 🙅 🚩
yubarajsingh
yubaraj singh

Posted on March 13, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

What was your win this week?
weeklyretro What was your win this week?

November 29, 2024

Where GitOps Meets ClickOps
devops Where GitOps Meets ClickOps

November 29, 2024