Root Check Published: Aug 25, 2004
  • Rating

    5/5

This Apache tutorial will guide you through upgrading or installing Apache 2x web server which ads all kinds of great new features from Apache 1.3x and security enhancements.

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.

  • Rating

    5/5

Related Articles

Comments (12)

  • Gravatar - domper
    domper 22:43, August 28, 2004
    Can I install rootcheck if I have directadmin as web control panel on my server?.
  • Gravatar - WHG - Steve
    WHG - Steve 21:39, August 29, 2004
    Yes, the type of control panel shouldn't matter.
  • Gravatar - vijay kumar
    vijay kumar 12:41, September 19, 2004
    very nice tutorial thanks i tried and found it very useful
  • Gravatar - ParisDNS
    ParisDNS 10:30, May 18, 2005
    Got error when rnning ./rootcheck.pl :<br />
    <br />
    Can't locate IO/Interface.pm in @INC (@INC contains: /usr/lib/perl5/5.8.6/i686-linux /usr/lib/perl5/5.8.6 /usr/lib/perl5/site_perl/5.8.6/i686-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at mods/checkif.pm line 22.<br />
    BEGIN failed--compilation aborted at mods/checkif.pm line 22.<br />
    Compilation failed in require at ./rootcheck.pl line 60.
  • Gravatar - Hesham
    Hesham 22:07, November 20, 2005
    The provided URL is not working!
  • Gravatar - sinangunay
    sinangunay 09:03, December 17, 2005
    Because new version is avaliable, and changed the usage of script.<br />
    please try, http://ossec.underlinux.com.br/rootcheck/<br />
  • Gravatar - codeunix
    codeunix 18:22, July 14, 2006
    the new url link is:<br />
    wget http://www.ossec.net/rootcheck/files/rootcheck-0.7.tar.gz
  • Gravatar - cyberspace
    cyberspace 08:20, November 6, 2006
    ParisDNS, you need to install the perl module called IO::Interface
  • Gravatar - Brendan RTG
    Brendan RTG 07:26, January 9, 2007
    root@jade [/downloads]# tar -xvzf rootcheck-0.4.tar.gz<br />
    <br />
    gzip: stdin: not in gzip format<br />
    tar: Child returned status 1<br />
    tar: Error exit delayed from previous errors<br />
    root@jade [/downloads]#<br />
  • Gravatar - Rudi
    Rudi 11:36, February 1, 2007
    Does anyone run the check via cron? And if so, how often?
  • Gravatar - Rich
    Rich 15:04, July 31, 2009
    404 error<br />
    wget http://www.ossec.net/rootcheck/files/rootcheck-0.4.tar.gz<br />
    Is not found ?<br />
    <br />
    Thanks<br />
  • Gravatar - Jim
    Jim 16:26, September 3, 2009
    Updated shell commands:<br />
    <br />
    Installing and Running Rootcheck from Shell:<br />
    <br />
    wget http://www.ossec.net/rootcheck/files/rootcheck-2.0.tar.gz <br />
    # tar -zxvf rootcheck-2.0.tar.gz<br />
    # cd rootcheck-2.0<br />
    # make all<br />
    # ./ossec-rootcheck

Add Your Thoughts

WebHostGear.com is a hosting directory, not a web host.

Copyright © 1998-2016 WebHostGear.com