Jump to content


Photo

Getting Apache to start automatically (on Linux)?


  • Please log in to reply
1 reply to this topic

#1 wmolina

wmolina
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 28 October 2003 - 01:23 PM

I finally was able to configure Apache on my Red Hat 8.0 box, but now I have a slight problem... I\'m trying to set it to automatically start up, so I don\'t have to type

/usr/local/apache/bin/apachectl start


every time I want to have it run (I\'m using this machine as a development workstation for PHP/MySQL).

httpd doesn\'t appear in the Services menu (GNOME Menu > Server Settings > Services), and when I type a command such as this:

chkconfig --level 345 httpd on


it returns the following error:

error reading information on service httpd:  no such file or directory

Obviously this is because it\'s not installed as a service... is there anyway I can go and install it as one?

#2 GeoffOs

GeoffOs
  • Members
  • PipPip
  • Member
  • 24 posts
  • LocationCheshire, England

Posted 28 October 2003 - 11:05 PM

When i wanted a daemon to start on boot up, i created a script file within the rc.d tree. Have a look here on how to do it:
http://www.redhat.co...wn-process.html
Beyond a critical point within a finite space, freedom diminishes as numbers increase....[br]The human question is not how many can possibly survive within the system, but what kind of existence is possible for those who do survive."[br]-- Frank Herbert - Dune




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users