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 06-06-2007, 08:19 PM   #1
leftPeg
LQ Newbie
 
Registered: Jan 2006
Posts: 19

Rep: Reputation: 0
installed apache from source, didn't remove rpm, updated rpm causes problems


Hello,
Yesterday, I was trying to work out why a web application we developed had stopped working on a client's RHEL4 box. As well as our app being broken, apache wouldn't start up on reboot as it had done previously.

The problem was that a recent httpd rpm update had corrupted the system.
running /usr/local/apache2/bin/apachectl start
allowed apache to start. Our app started ok aswell but some of its functionality is still not working.
It looked like the httpd init script in /etc/init.d/ had references to
/usr/sbin/apachectl and /usr/sbin/httpd, so I changed them to point to
/usr/local/apache2/bin/apachectl and /usr/local/apache2/bin/httpd. Now apache is starting on reboot, but some of the apps functionality is still broken. (Its a java app, running on tomcat. Does anyone have any clue as to what might have been corrupted after an update that would cause problems?)

The person who installed the apache on the server didn't remove the httpd rpm before doing so.

Whenever I've installed apache in the past, I've always removed the pre-installed httpd rpm and its dependencies without really knowing why except that I imagined that conflicts could happen. Could someone explain the how and why conflicts do potentially occur?

Also, after an automatic update, is a there a quick way of seeing which files have been modified as a result of the update, other than using 'find' to locate files that have been modified within a certain timeframe?

Thanks.
 
Old 06-06-2007, 08:23 PM   #2
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
see if you have a file "/etc/init.d/apachectl.rpmsave". If you do, that should be your old apachectl for your compiled version.

also, to get a list of the files installed with a particular rpm (I'll use apache for the example) type:

Code:
rpm -q --fileprovide httpd

Last edited by forrestt; 06-06-2007 at 08:27 PM.
 
Old 06-06-2007, 08:45 PM   #3
leftPeg
LQ Newbie
 
Registered: Jan 2006
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks.
Unfortunately I don't have access to the server today.
Also, I ended up removing the httpd package and its dependencies to see if that would help, and I noticed that /etc/httpd/conf/httpd.conf .rpmsave was created, so I imagine that any other .rpmsave files that are knocking about are a result of the package removal, rather than the package update. Am I right in thinking that?
 
Old 06-06-2007, 08:51 PM   #4
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
No, they are from the update of the package, and they won't be removed or moved back on an rpm -e. You should be able to just move them back in place manually.
 
Old 06-06-2007, 09:12 PM   #5
leftPeg
LQ Newbie
 
Registered: Jan 2006
Posts: 19

Original Poster
Rep: Reputation: 0
Ok, good stuff. I'll have a look when I get the chance.

Incidentally, why when installing a LAMP type server are you generally told to remove the preinstalled packages and then compile from source? What's 'wrong' with the preinstalled packages?
 
Old 06-06-2007, 09:20 PM   #6
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
I don't know. I've always used the preinstalled packages unless there is a specific thing I need to run. Perhaps the preinstalled packages don't support something you want or RHEL4 is apache 1.3.x and you need something in 2.0.x?
 
  


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
How to remove non-rpm installed packages ??? thinknologist Ubuntu 3 04-13-2007 12:55 AM
yum remove rpm --> how to reinstall rpm npubudu Linux - Software 5 01-25-2007 08:08 AM
Can't remove opera...rpm says not installed hlpboplz Linux - Newbie 3 05-27-2005 05:34 AM
Installing from source -- dependencies installed via RPM kimchee411 Linux - Newbie 2 10-19-2004 02:40 AM
RPM hell, how to remove source rpms? baudchaser Linux - Newbie 3 02-13-2004 10:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:54 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
Open Source Consulting | Domain Registration