hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Hosting Security and Technology Tutorials : HOW-TO: Install/Upgrade Apache 2.0
Reply

Hosting Security and Technology Tutorials Tutorials related to server security or the like.
Forum Jump

HOW-TO: Install/Upgrade Apache 2.0

Reply Post New Thread In Hosting Security and Technology Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 01-17-2004, 08:42 AM
AexiSolutions AexiSolutions is offline
Temporarily Suspended
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 108

Request: Install/Upgrade Apache 2.0


----------------------------------------
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 blue are commands that should be run from the root shell

FRESH INSTALL

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/dist/httpd/httpd-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

------------------------------------------------------------------------------------

UPGRADE

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/dist/httpd/httpd-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.


Last edited by AexiSolutions; 01-17-2004 at 09:12 AM.
Reply With Quote


Sponsored Links
  #2  
Old 01-17-2004, 11:41 AM
XYPHEN XYPHEN is offline
Disabled
 
Join Date: Nov 2002
Location: ON, Canada
Posts: 288
Is this supported with RedHat Linux Enterprise? and cPanel 8.x?

Reply With Quote
  #3  
Old 01-17-2004, 12:26 PM
AexiSolutions AexiSolutions is offline
Temporarily Suspended
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 108
Yes, But make sure you usen the upgrade method when using cPanel, as you already have apache installed and could loose your httpd.conf

<edit>signature removed</edit>


Last edited by choon; 02-17-2004 at 03:39 PM.
Reply With Quote
Sponsored Links
  #4  
Old 01-20-2004, 05:02 PM
kckclass kckclass is offline
Web Hosting Evangelist
 
Join Date: Jan 2004
Location: San Francisco
Posts: 479
virtual hosting done fast and simple is still a mystery

two weeks later I am still unable to get virtual hosting working. am I brain dead?

WHEN I get this to work THEN I will write the fattest doc of all time on this subject since the apache docs are inadequate based on what I've read and experienced thus far.


Stay tuned and in the meantime, anyone want to take a shot at this problem?

Reply With Quote
  #5  
Old 01-21-2004, 04:21 AM
AexiSolutions AexiSolutions is offline
Temporarily Suspended
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 108
I dont see how this how-to is innacurate seeing how it has worked for a good few hundred people. If you want to start another thread then go ahead, but dont advertise your own how-to in mine!.

<edit>signature removed</edit>


Last edited by choon; 02-17-2004 at 03:39 PM.
Reply With Quote
  #6  
Old 03-13-2004, 06:07 PM
ClearlyTech ClearlyTech is offline
New Member
 
Join Date: Mar 2004
Posts: 0
Can't find config.nice file for Apache

I am running Plesk 7.0 with RedHat.

I can not find the .nice file anywhere.

Any ideas?


Regards,


ClearlyTech

Reply With Quote
  #7  
Old 03-28-2004, 06:37 AM
AexiSolutions AexiSolutions is offline
Temporarily Suspended
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 108
Make a copy of your httpd.conf file, and move it somewhere. Run the fresh installation over the top of your apache installation.

Then copy the httpd.conf back, never tried this on plesk. So im not sure whether you should be upgrading or not.

<edit>signature removed</edit>


Last edited by choon; 03-29-2004 at 07:36 PM.
Reply With Quote
  #8  
Old 04-07-2004, 07:24 PM
wheimeng wheimeng is offline
Web Hosting Master
 
Join Date: Feb 2003
Location: Kuala Lumpur, Malaysia
Posts: 4,970
How well does it perform compared to 1.3.x series?

Reply With Quote
  #9  
Old 04-08-2004, 01:18 AM
justbenice justbenice is offline
Web Hosting Guru
 
Join Date: Feb 2004
Posts: 322
After fresh install apache 2 my cpanel box still show as apache 1.3.29 . It looklike apache 2 doesnt working .

Reply With Quote
  #10  
Old 04-10-2004, 02:44 PM
hostbox hostbox is offline
Web Hosting Master
 
Join Date: May 2003
Posts: 2,428
The download link doesn't work.

Reply With Quote
  #11  
Old 04-10-2004, 02:46 PM
AexiSolutions AexiSolutions is offline
Temporarily Suspended
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 108
It wont, this is a very old how-to. Were on 2.0.48 or something now

<edit>signature removed</edit>


Last edited by choon; 04-12-2004 at 08:41 AM.
Reply With Quote
  #12  
Old 04-10-2004, 08:54 PM
hostbox hostbox is offline
Web Hosting Master
 
Join Date: May 2003
Posts: 2,428
Quote:
Originally posted by AexiSolutions
It wont, this is a very old how-to. Were on 2.0.48 or something now
Do you have a link to the newest? btw; does Cpanel update it?

<edit>signature removed</edit>


Last edited by choon; 04-12-2004 at 08:41 AM.
Reply With Quote
  #13  
Old 04-11-2004, 05:54 AM
AexiSolutions AexiSolutions is offline
Temporarily Suspended
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 108
Francisco, If your looking for a cPanel version.

You can find a buildapache 2 in layer1.cpanel.net, but be warned this is extremely "beta & alpha" work.

<edit>signature removed</edit>


Last edited by choon; 04-12-2004 at 08:41 AM.
Reply With Quote
  #14  
Old 09-26-2004, 09:13 PM
profpatsy profpatsy is offline
New Member
 
Join Date: Sep 2004
Posts: 0
I am upgrading from apache 2.0.40, RedHat 9, and Plesk 7.

my version of apache is not located at: /usr/local/apache
it is instead found at: /etc/httpd

What changes to the listed steps should I make when upgrading?

Thank you,

Reply With Quote
  #15  
Old 02-16-2005, 05:19 PM
flashwebhost flashwebhost is offline
Web Hosting Master
 
Join Date: Jan 2002
Posts: 1,346
if you are upgrading, you don't have to run ./configure ?

Will ./config.nice work like ./configure with previous default config values ?

profpatsy: i think if u install from rpm, it will get installed on /etc/httpd by default. I also got my apache installed on /etc/httpd on a fedora box, but i removed and installed apache manually, i think httpd.conf is the only important thing when u are upgrading.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Researchers Urge System Admins to Check for New Apache Web Server Backdoor Malware Web Hosting News 2013-05-01 11:35:53
nginx Sees Largest Market Share Growth in Netcraft March Server Survey Web Hosting News 2012-03-05 14:05:29
Apache Web Server Adds Cloud Capabilities with First Major Update in 5 Years Web Hosting News 2012-02-21 16:05:02
The Apache Software Foundation Launches Hadoop v1.0 Web Hosting News 2012-01-05 18:29:16
Oracle is the Latest Vendor to Apply Patch for Apache Killer Flaw Web Hosting News 2011-09-19 14:43:58


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?