Skip to content

atulkamble/linux-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

git clone https://github.com/atulkamble/linux-website.git
sudo mv linux-website /var/www/html

RHEL & Ubuntu — Website Hosting Project

sudo yum update -y
sudo yum install httpd -y
sudo systemctl start httpd
sudo systemctl enable httpd
sudo systemctl status httpd
cd /var/www/html || exit
sudo chmod 755 /var/www/html
echo "<h1>Website Hosted Successfully on RHEL/Amazon Linux</h1>" | sudo tee index.html
sudo systemctl restart httpd
curl http://localhost

Ubuntu / Debian — Full Website Hosting Script

sudo apt update -y
sudo apt install apache2 -y
sudo systemctl start apache2
sudo systemctl enable apache2
sudo systemctl status apache2
sudo ufw allow 'Apache'
cd /var/www/html || exit
sudo rm -f index.html
sudo chmod 755 /var/www/html
echo "<h1>Website Hosted Successfully on Ubuntu</h1>" | sudo tee index.html
sudo systemctl restart apache2
curl http://localhost

Verify Website

Open browser:

http://<server-public-ip>

Example:

http://13.233.120.10

Expected Output:

<h1>Website Hosted Successfully</h1>

About

14-05-2026 | Linux Apache Server Website Project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages