+ Reply to Thread
Results 1 to 4 of 4

Thread: Apache 2 Install and Upgrade Guide

  1. #1
    Hosting Guru sunny_ag is on a distinguished road
    Join Date
    Jul 2006
    Location
    where the world starts
    Posts
    50

    Apache 2 Install and Upgrade Guide

    Apache 2 upgrade - Apache 2 installation

    Note: This how-to has worked fine on plesk and cpanel servers and numerous tests. I cannot guarentee it will work on yours and cannot take responsibility for the outcome. I do not recommend running this how-to on an ensim server.

    Note: Text in green are commands that should be run from the root shell

    FRESH INSTALL - Apache 2 installation

    This part of the how-to is for a clean install only, for upgrades please scroll down.
    Make a copy of your current httpd.conf incase you need to roll-back

    cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf_back

    Download The Apache Tar.Gz File
    wget http://www.tux.org/pub/net/apache/d...d-2.0.47.tar.gz

    Extract The File To Your Server
    tar -xz -f httpd*

    Move Into The Extracted Folder
    cd httpd*

    Run The Configuration File, (The bits following ./configure were custom wrote by me, you may customise these how you wish)
    ./configure --prefix=/usr/local/apache --with-php --with-mysql --with-susexec --enable-mods-shared=all --disable-info

    Run The Make File
    make

    Run The Install Make File
    make install

    Apache 2.0 is now installed on your system
    The four lines below are certain security measures that can be taken to hide the identity of apache. *These are optional*

    Edit The http.conf File
    pico -w /usr/local/apache/conf/httpd.conf

    Disable Apache Signatures (Security)
    Locate ServerSignature and change to off

    Add the line below, after ServerSignature off
    ServerTokens ProductOnly

    Save httpd.conf
    CTRL + X then "Y" then "enter" without the "'s

    Start Your New Apache
    /usr/local/apache/bin/apachectl start

    Your sites should now be working.
    Please scroll down to the bottom of the page, after performing the commands above


    Apache 2 Upgrade - Upgrading Apache
    Make a copy of your current httpd.conf incase you need to roll-back
    cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf_back

    Download The Apache Tar.Gz File
    wget http://www.tux.org/pub/net/apache/d...d-2.0.47.tar.gz

    Extract The File To Your Server
    tar -xz -f httpd*

    Move Into The Extracted Folder
    cd httpd*

    Run The Configuration File
    ./config.nice

    Run The Make File
    make

    Run The Install Make File
    make install

    Start Apache
    /usr/local/apache/bin/apachectl restart

    All done, you should now have a successfully upgraded/installed apache configuration.

  2. #2
    HWHT Starter Dino1394 is on a distinguished road
    Join Date
    Sep 2007
    Location
    up urs
    Posts
    3
    This is Some good info

    Nice

  3. #3
    HWHT Starter woodchat is on a distinguished road
    Join Date
    Jul 2008
    Location
    india
    Posts
    10
    Thanks for guiding .I very useful for me though it is dismoded now

  4. #4
    HWHT Addict theguru is on a distinguished road
    Join Date
    Aug 2008
    Location
    Guru-ville
    Posts
    33
    Thanks for the info, wish it were a bit more up to date though.

+ Reply to Thread

Similar Threads

  1. Any guide for the Apache security??
    By best-p4u in forum Linux/*nix Servers Apache
    Replies: 6
    Last Post: 06-19-2020, 06:18 AM
  2. When should I upgrade to vps or dedicated?
    By mh_shakeel in forum Web Hosting Forum
    Replies: 5
    Last Post: 01-31-2015, 01:50 PM
  3. How To Install CPANEL on your VPS
    By incript_services in forum VPS Tutorials
    Replies: 15
    Last Post: 06-17-2008, 06:49 AM
  4. Do I need to upgrade my PC?
    By Brndnjng in forum Hosting Chit Chat Lounge
    Replies: 7
    Last Post: 01-22-2006, 12:54 PM
  5. cannot install ANY software on VPS
    By frodiggs in forum Web Hosting Forum
    Replies: 0
    Last Post: 01-09-2006, 01:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts