LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-09-2003, 09:07 PM   #1
joshf
LQ Newbie
 
Registered: Jul 2003
Posts: 21

Rep: Reputation: 15
httpd as a service


I installed apache2 from the source files. I want it to start as a service automatically.

When I use chkconfig --add httpd, it gives an error that it cannot find that service.

I have also tried the entire path:
chkconfig --add /etc/local/apache2/bin/httpd but it still gives that error.

My old version of Apache2 (which I deleted in order to upgrade) was installed from an RPM and it was a service.

How can I get this one to work the same way?
 
Old 07-09-2003, 09:22 PM   #2
Mikx
LQ Newbie
 
Registered: Jul 2003
Distribution: RH 9.0
Posts: 15

Rep: Reputation: 0
I'm a newbie here, but i think the startup scripts for services are located in /etc/init.d. I think that doing a 'make install' after building apache would install the startup script for you already.
 
Old 07-09-2003, 10:01 PM   #3
joshf
LQ Newbie
 
Registered: Jul 2003
Posts: 21

Original Poster
Rep: Reputation: 15
I did "make" and "make install"

I see scripts for many programs in that directory, but nothing like apache or httpd.
 
Old 07-10-2003, 01:07 AM   #4
ftenario
Member
 
Registered: Jul 2003
Location: Camarillo, CA
Distribution: Debian
Posts: 48

Rep: Reputation: 15
Copy the startup script to /etc/init.d/ and make a symbolic link to this script from the run level you're running. This is what I did for Apache 1.3 (havent installed apache 2 from source yet). Since you said that you installed it from source, the startup script should be in the installation folder i.e. --prefix=path/to/apache/bin

Hope this helps.
 
Old 07-10-2003, 07:25 AM   #5
linuxJaver
Member
 
Registered: Jul 2003
Location: Jakartax, ID
Distribution: slack9.1+,9.1,rh9
Posts: 203

Rep: Reputation: 30
Just find out where the start-script of apache is isntalled, look in your makefile where the bindir is ..
The start-script is called apachectl, on slackware it resides in /usr/sbin/apachectl on redhat9 it is in /sbin/apachectl. Just type in prompt:
apachectl start , then u have it as service, to stop it type: apachectl stop

That all ..
 
Old 07-10-2003, 07:54 AM   #6
joshf
LQ Newbie
 
Registered: Jul 2003
Posts: 21

Original Poster
Rep: Reputation: 15
Thank you for the help. I have it running now.
 
  


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
service httpd status, results in httpd dead but subsys locked squadja Red Hat 2 09-11-2004 10:31 PM
httpd: unrecognized service ????? dhammika Linux - Software 0 04-28-2004 09:24 PM
starting httpd as service strimp099 Red Hat 10 04-12-2004 07:38 PM
httpd service not starting... F$CK!!! xgtr Slackware 1 08-20-2002 03:13 PM
Using HTTPD Service skopje909 Linux - General 1 11-15-2001 03:32 PM


All times are GMT -5. The time now is 07:28 PM.

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