LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 07-14-2004, 05:17 PM   #1
launchcode
LQ Newbie
 
Registered: Jul 2004
Location: UK
Distribution: Red Hat 9
Posts: 2

Rep: Reputation: 0
Question How do you change what the /usr/sbin/service program runs?


I have a RedHat 9 server, it's to be used for web stuff only - so I don't have X installed on it. I have successfully compiled and installed the latest versions of Apache and PHP - but the /usr/sbin/service command which I was using to start/stop the httpd service is pointing to the old version of Apache.

What script do I need to change to make it point to the correct (new) version of Apache?

Thanks.

Rich
 
Old 07-14-2004, 06:52 PM   #2
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 451

Rep: Reputation: 32
Version 2+ of apache is called httpd on some distros. The old version is called apache.
service httpd start
 
Old 07-14-2004, 06:58 PM   #3
launchcode
LQ Newbie
 
Registered: Jul 2004
Location: UK
Distribution: Red Hat 9
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the reply, but that wasn't really what I needed help with

I know how to use the service command, I use it all the time - what I wasn't sure of was how to make it work with a different installation of Apache. I use PHP so I use Apache 1.3, not 2 as it isn't as stable. I found out how to do it in the end - I just needed to modify the scripts in the rc.d directory and comment out a function that checked to see if the httpd.conf was a 1.3 version or not (which of course it would be!). Just pointed the paths to my new apachectl and all is well now.

Cheers,

Rich
 
Old 07-16-2004, 01:18 PM   #4
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 451

Rep: Reputation: 32
If you have both apache 1.3 and 2.X installed, you would have both apache and httpd showing in /etc/rc/d/init.d

You could uninstall the one you do not want or mark the script not executable.
 
  


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
Starting httpd: /usr/sbin/httpd: symbol lookup error: /usr/local/lib/libaprutil-0.so. bijuhpd Linux - Newbie 1 10-30-2005 05:07 PM
/sbin/service is empty every weekend and changed to service.1 LineS Linux - General 0 05-24-2004 02:08 AM
/usr/sbin and /sbin world read/executable... why? lazlow69 Slackware 3 04-29-2004 05:06 PM
As root, not seeing /sbin and /usr/sbin in path weghman Linux - Newbie 3 04-25-2004 01:06 PM
/sbin vs /usr/sbin !?!?!? different? sirpelidor Red Hat 1 10-24-2003 03:33 AM


All times are GMT -5. The time now is 08:40 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration