This is the repo for the College Project of Linux
This project demonstrates the setup of a personal web server using Apache on Red Hat Enterprise Linux. It covers the installation, configuration, and deployment of a custom HTML webpage.
- Download the Red Hat Enterprise Linux Developer Edition.
- Install VMware Workstation or VMware Player.
- Create a new virtual machine and allocate appropriate resources.
- Follow the steps to install Red Hat Linux.
Once Red Hat Linux is installed, update the system to the latest packages using:
sudo dnf updateInstall Apache using the following command:
sudo dnf install httpdStart and enable Apache service:
sudo systemctl start httpd
sudo systemctl enable httpdAllow HTTP traffic by configuring the firewall:
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --reload- Navigate to
/var/www/html/. - Create a custom HTML webpage and save it as
index.html:
sudo nano /var/www/html/index.html- Ensure the file has the correct permissions:
sudo chown apache:apache /var/www/html/index.htmlYou can access the webpage by navigating to the server’s IP address in a browser:
http://<your-server-ip>
The Apache web server successfully hosts the custom webpage, accessible via the IP address of the server.
index.html: The custom webpage deployed on the web server.setup_guide.md: Step-by-step guide to setting up the web server.screenshots/: A folder containing images of the setup process.setup_webserver.sh: A Script that automates the process of server creation.
This project successfully demonstrates how to set up a personal web server using Apache on Red Hat Linux. The server is configured to serve static content, and basic web server management is covered.