LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-11-2006, 06:40 AM   #1
anjanesh
Member
 
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 12.04 64-bit
Posts: 230

Rep: Reputation: 30
Replacing new Apache version with the old one


Hi

A PC has RedHat 4.0 EL Edition and has Apache 2.0.52 running. The path of this version is /etc/httpd. The config file is in /etc/httpd/conf/httpd.conf. The htdocs directory is /var/www/html.

I got Apache 2.2.2 and did .configure, make and make install. Now, all this is in /usr/local/apache2 where htdocs, conf, bin etc folders are present

I did service httpd stop. Got into /usr/local/apache2/bin and ran apachectl. Even tried running httpd. Both seem to be executing - since no errors pop up.

But the index.html loaded is the one from /var/www/html and not /usr/local/apache2/htdocs.
I did service http fullstatus and it showed Apache 2.0.52 !

How come its not showing 2.2.2 even after running httpd in /usr/local/apache2/bin ?

I dont want to delete Apache 2.0.52 folder and files but want the service stopped or removed from startup and replace it with the new one located at /usr/local/apache2.

What should I be doing to get this work ?

Thanks
 
Old 07-11-2006, 07:33 AM   #2
zeitounator
Member
 
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262

Rep: Reputation: 30
Quote:
Originally Posted by anjanesh
Got into /usr/local/apache2/bin and ran apachectl. Even tried running httpd. Both seem to be executing - since no errors pop up.
try ./apachectl and ./httpd. The current folder is not in the default path in linux. So if you just type apachectl, it will use the one it finds in the path (type which apachectl to find out which one).
 
Old 07-11-2006, 07:49 AM   #3
anjanesh
Member
 
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 12.04 64-bit
Posts: 230

Original Poster
Rep: Reputation: 30
Oh...right ! How could I've missed this one ! Even though Im not using the linux machine now, Im sure this was the problem. Will let you know how it went once I sit at the linux machine.

Where can I change the default path for apache ?

Thanks
 
Old 07-12-2006, 03:47 AM   #4
zeitounator
Member
 
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262

Rep: Reputation: 30
Quote:
Originally Posted by anjanesh
Where can I change the default path for apache ?
  1. You can add the /usr/local/apache2/bin folder in front of your PATH.
  2. You can symlink apachectl and httpd in /usr/local/bin and make sure this directory is listed first in your PATH
  3. You can (re)install apache2 in a place already in your PATH
  4. You can as well just forget about PATH and have a script in /etc/init.d/ that will launch the correct version where it is currently installed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache version anjanesh Linux - Newbie 13 10-09-2006 03:11 AM
Replacing KDE with newer version elitecodex Mandriva 3 03-02-2005 06:37 AM
Trouble replacing a kernel module with the latest version Khang Linux - General 2 11-02-2004 10:56 AM
how to know apache version? varala_kanth Linux - Newbie 1 06-14-2004 01:03 AM
Replacing PHP with Perl in Apache? miknight Programming 1 12-20-2002 02:32 AM


All times are GMT -5. The time now is 09:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration