This project automates the setup of a simple web server using Apache HTTP Server on a RHEL-based Linux distribution. It leverages a Bash script to streamline the installation, configuration, and deployment of a static webpage.
- Automated installation of Apache HTTP Server.
- Configures the firewall to allow HTTP traffic.
- Creates a custom HTML webpage.
- Sets up file permissions and ownership for secure hosting.
- Outputs the server's IP address for quick access.
- A RHEL-based Linux distribution (e.g., RHEL, CentOS, Fedora).
- Root or sudo privileges.
- Internet connection for package installation.
- The Bash script updates the system and installs Apache HTTP Server.
- Configures the firewall to allow HTTP (port 80) traffic.
- Creates a custom HTML page and deploys it on the web server.
- Displays the server's IP address for testing.
- Clone this repository:
git clone https://github.com/<your-username>/Simple-Web-Server-Setup.git cd Simple-Web-Server-Setup
- Make the script executable:
chmod +x setup_web_server.sh
- Run the sript with sudo:
sudo ./setup_web_server.sh
- Access the hosted webpage in a browser