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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-09-2003, 09:07 PM
|
#1
|
LQ Newbie
Registered: Jul 2003
Posts: 21
Rep:
|
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?
|
|
|
07-09-2003, 09:22 PM
|
#2
|
LQ Newbie
Registered: Jul 2003
Distribution: RH 9.0
Posts: 15
Rep:
|
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.
|
|
|
07-09-2003, 10:01 PM
|
#3
|
LQ Newbie
Registered: Jul 2003
Posts: 21
Original Poster
Rep:
|
I did "make" and "make install"
I see scripts for many programs in that directory, but nothing like apache or httpd.
|
|
|
07-10-2003, 01:07 AM
|
#4
|
Member
Registered: Jul 2003
Location: Camarillo, CA
Distribution: Debian
Posts: 48
Rep:
|
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.
|
|
|
07-10-2003, 07:25 AM
|
#5
|
Member
Registered: Jul 2003
Location: Jakartax, ID
Distribution: slack9.1+,9.1,rh9
Posts: 203
Rep:
|
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 ..
|
|
|
07-10-2003, 07:54 AM
|
#6
|
LQ Newbie
Registered: Jul 2003
Posts: 21
Original Poster
Rep:
|
Thank you for the help. I have it running now.
|
|
|
All times are GMT -5. The time now is 05:59 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|