LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 08-06-2009, 12:30 PM   #1
lukesc
Member
 
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, 12:41 PM   #2
Mistoffeles
Member
 
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, 01:03 PM   #3
chitambira
Member
 
Registered: Oct 2008
Location: Fife
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 49
or copy it from here:
http://www.zrinity.com/developers/apache/apache2src.cfm or
http://www.faqs.org/docs/securing/chap29sec247.html
and edit accordingly
 
Old 08-06-2009, 01:57 PM   #4
lukesc
Member
 
Registered: Oct 2007
Posts: 31

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


Reply

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


All times are GMT -5. The time now is 02:19 AM.

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