Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 08-06-2009, 11:30 AM   #1
Registered: Oct 2007
Posts: 31

Rep: Reputation: 16
Getting Apache to work with service

I have a local server setup with CentOS 5.3 (RedHat flavor) and I've compiled both Apache 2.2 and PHP 5.2.10 and have them working together on the server.

Apache does not start on boot, and I have to use apachectl to start/stop/restart it. If I were to use yum to install apache, I would have been able to do "service httpd {command}", but since I compiled it myself, it isn't setup for that.

My question is, how do I setup my custom build of Apache to do this?
Old 08-06-2009, 11:41 AM   #2
Registered: Dec 2007
Location: TGWN
Distribution: Fedora, RHEL, CentOS, Evil Entity
Posts: 36

Rep: Reputation: 15
"Steal" an init script from a standard apache install?
Old 08-06-2009, 12:03 PM   #3
Registered: Oct 2008
Location: Fife
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 50
or copy it from here: or
and edit accordingly
Old 08-06-2009, 12:57 PM   #4
Registered: Oct 2007
Posts: 31

Original Poster
Rep: Reputation: 16
First link worked, thanks


apache, httpd, service

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 Service in Top carlosinfl Linux - Server 3 07-30-2008 02:21 PM
How do you register Apache as a service on RH 9? Thaidog Linux - Software 1 03-18-2006 06:34 AM
Using Apache to relay service Gibsonist Linux - Networking 0 12-08-2005 03:41 AM
Apache Service *BSD 7 02-09-2005 11:36 AM
apache service precioso77 Linux - Software 6 04-21-2003 05:40 PM

All times are GMT -5. The time now is 01:31 AM.

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