Find the answer to your Linux question:
Results 1 to 5 of 5
Hello, I'm very new at Linux. I installed an apache on a Suse desktop edition 10. I'm able to get it working, but always have to start the server manual. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2008
    Posts
    3

    SUSE 10 - Apache


    Hello,
    I'm very new at Linux.
    I installed an apache on a Suse desktop edition 10. I'm able to get it working, but always have to start the server manual. I allways have to type "su root apachectl start" and then everything works fine.
    But I would like it to start when the server boots up. So I would love to install it as a service. I used "chkconfig --add apachectl" and "chkconfig --add httpd" but always receive an unknown service error.
    Can somebody tell me how I have to install the apache as a service so it boots up automatically?
    Thanks in advance !!!

  2. #2
    Just Joined! werner's Avatar
    Join Date
    Apr 2008
    Posts
    27
    You could put the command to start the service in /etc/rc.local. Did you install apache from source or using the package manager?

  3. #3
    Just Joined!
    Join Date
    Dec 2008
    Posts
    3
    I installed it from source. It's not included in the standard Suse desktop edition. So had to download the package and install it.

    Can't find the /etc/rc.local :-s

  4. #4
    Just Joined! werner's Avatar
    Join Date
    Apr 2008
    Posts
    27
    Check for it in /etc/rc.d/rc.local. I use Debian and I think Suse puts the rc.local in a different spot.

  5. #5
    Just Joined!
    Join Date
    Dec 2008
    Posts
    3
    OK thanks a lot for the fast support !!!
    Found it in the /etc/rc.d directory. Added a script (only one line - . /usr/local/apache2/bin/apachectl start) and then installed it as a service with the chkconfig command. Works fine!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •