Giter Club home page Giter Club logo

ekywebsite's Introduction

Description: This script automates the installation and setup of the Apache HTTP Server (httpd) on a CentOS-based system. It also downloads a specific website from a GitHub repository and deploys it to the server's web root directory.

Prerequisites A CentOS-based system (e.g., CentOS 7, CentOS 8) Internet connectivity Installation Follow these steps to use the script:

Clone or download the repository to your local machine. Open a terminal or command prompt. Navigate to the directory where the script is located. Usage Open the script file using a text editor. Replace the placeholder URL (https://github.com/Ekene205/ekywebsite/archive/refs/heads/main.zip) with the actual URL of your website's ZIP file on GitHub. Save the changes. To run the script, execute the following command:

bash Copy code ./script.sh The script will perform the following actions:

Update the system packages by executing yum update -y. Install necessary dependencies by executing yum install -y. Install Apache HTTP Server (httpd) by executing yum install -y httpd. Change the directory to /var/www/html by executing cd /var/www/html. Download the website ZIP file from the specified GitHub repository by executing wget https://github.com/Ekene205/ekywebsite/archive/refs/heads/main.zip. Extract the contents of the ZIP file by executing unzip main.zip. Copy the contents of the extracted folder to the web root directory by executing cp -r ekywebsite-main/* /var/www/html/. Remove the temporary files and folders by executing rm -rf ekywebsite-main main.zip. Enable the httpd service to start on boot by executing systemctl enable httpd. Start the httpd service immediately by executing systemctl start httpd. Please note that the script assumes that the system has the necessary permissions and prerequisites to execute the provided commands. Make sure you have sufficient privileges before running the script.

Contributing Contributions are welcome! If you find any issues with the script or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.

ekywebsite's People

Contributors

ekene205 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.