How to Install Apache on a Dedicated Server

August 18, 2025 / Dedicated Server Hosting

If you want to install Apache on a dedicated server, this step-by-step guide will help. Apache HTTP Server is one of the most popular open-source web servers, and setting it up on your Linux dedicated server is simple when you follow the commands below.

Note: The example uses Apache 2.2.8, which is outdated. For production, always install the latest stable version from Apache.org

Steps to Install Apache on a Dedicated Server:

  1. Navigate to the source directory:
    cd /usr/local/src
  2. Download Apache:
    wget http://mirrors.24-7-solutions.net/pub/apache/httpd/httpd-2.2.8.tar.gz
  3. Extract the archive:
    tar -xzvf httpd-2.2.8.tar.gz
    cd httpd-2.2.8.tar.gz
  4. Configure Apache:
    ./configure –prefix=/usr/local/apache
  5. Compile the source:
    make /compile
  6. Install Apache:
    make install /install
  7. Copy the control script:
    cp /usr/local/apache/bin/apachectl /etc/initr.d/
  8. Manage the Apache service:
    service httpd stop
    service httpd start
  9. Verify installation:
    httpd –v

With these steps, Apache will be successfully installed and running on your dedicated server. For best results, keep your installation updated with the latest stable release.

Learn more tutorials about how to fix SSL Revocation Error in cPanel/Apache.