Results 1 to 7 of 7

Thread: How to make apache 1.3 automatically start at boot?

  1. #1
    Junior Member registered user
    Join Date
    Aug 2004
    Posts
    13

    How to make apache 1.3 automatically start at boot?

    hey all..

    sorry if this question has been repeated over and over, but how do i get my apache server on knoppix 3.6 to start automatically when i boot up my machine?

    i know knoppix comes with it pre-installed, but i uninstalled it using apt get remove apache as a book i had told me to reinstall it myself.. hmm bad idea? so i went to use apt get install apache and it said its not tehre... so i downloaded the source file and compiled it/installed it again

    and now its running.. but i have to start it manually.. how do i make apache just start when i boot up? im guessing it would have to do with some kind of init or rc.d file or something?

  2. #2
    Junior Member registered user
    Join Date
    Aug 2004
    Posts
    15
    You have several options, but the one I recommend is putting an S* link (start file) in the

    /etc/rc#.d/

    directory. The # is for the run level that you have your system start from in inittab.

    The S* file, mean S55apache (for example). The number after the S is the order where you want the apache server to start. You will need to place it after networking.

    You can create a script to start it, or probably get away with a softlink to the executable with the start option.

    Good luck.

    Metzelplik

  3. #3
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    555
    The above can easily be accomplished with "sudo update-rc.d apache defaults". KDE also has a graphical tool '"SysV init" or somesuch) which allows you to control which services are started at bootup.

  4. #4
    Junior Member registered user
    Join Date
    Sep 2004
    Location
    Canuckistan
    Posts
    20
    i used tge "sudo update-rc.d apache defaults" method outlined below to get my apache 1.3 to boot (on knoppix 3.4), but i get an error at boot saying that DocumentRoot must be a directory. The document root is currently set to "/mnt/hdb1/serveroot," which is a valid directory on, as one might deduce, another disk. how do i fix this?

  5. #5
    Senior Member registered user
    Join Date
    Jun 2004
    Posts
    788
    jpiranha
    You need to mount /dev/hdb1 first before you run apache.
    You might want to enable automount for your system.

  6. #6
    Junior Member registered user
    Join Date
    Sep 2004
    Location
    Canuckistan
    Posts
    20
    Hi all,

    I've got apache to start at boot, with automount set up as well, but when apache tries to load, i get the following error:

    [warn] module ssl_module is already loaded, skipping

    ...and then it dies. I also get the same error message if i try to start apache via Konsole. Any ideas? Is there something I can do in some other boot file to get ssl_module NOT to load? Or maybe this error was fixed in apache 2.0?

  7. #7
    Senior Member registered user
    Join Date
    Jun 2004
    Posts
    788
    Check in /var/log/apache/error.log
    What did it says?

Similar Threads

  1. How to make Lisa daemon run automatically?
    By IsaacKuo in forum Hdd Install / Debian / Apt
    Replies: 7
    Last Post: 02-24-2005, 05:43 AM
  2. x-server does not start automatically
    By Mr.45er in forum General Support
    Replies: 2
    Last Post: 10-06-2004, 01:21 AM
  3. how to make sshd start automatically at boot time?
    By lothario in forum Hdd Install / Debian / Apt
    Replies: 8
    Last Post: 08-18-2004, 09:14 PM
  4. start sshd automatically
    By paradox87 in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 06-16-2004, 11:38 PM
  5. start scripts automatically
    By hokiegal99 in forum General Support
    Replies: 1
    Last Post: 12-11-2003, 01:23 AM

Posting Permissions

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


1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE picture

1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE

$297.00



HPE ProLiant MicroServer Gen8 Intel Xeon E3-1265L 16GB ECC PCIe x16 4x1TB HDD picture

HPE ProLiant MicroServer Gen8 Intel Xeon E3-1265L 16GB ECC PCIe x16 4x1TB HDD

$249.99



HP ProLiant Xeon E3-1220L V2 MicroServer Gen8 2.30 GHz 16 GB RAM NO DRIVES picture

HP ProLiant Xeon E3-1220L V2 MicroServer Gen8 2.30 GHz 16 GB RAM NO DRIVES

$199.99



HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Xeon picture

HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Xeon

$846.19



HP ProLiant HSTNS-5151 Micro Server 8GB RAM No Drives/Key/Caddies *READ* picture

HP ProLiant HSTNS-5151 Micro Server 8GB RAM No Drives/Key/Caddies *READ*

$94.99



SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount picture

SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount

$202.49



Supermicro 5018A-FTN4 Rack Server - Black picture

Supermicro 5018A-FTN4 Rack Server - Black

$125.00



HP ProLiant Microserver Micro Server HSTNS-5151 untested NO DRIVE CADDIES picture

HP ProLiant Microserver Micro Server HSTNS-5151 untested NO DRIVE CADDIES

$60.75



SUPERMICRO CSE-512 AMD Opteron Processor 6128, 32GB DDR3 RAM NO HDD picture

SUPERMICRO CSE-512 AMD Opteron Processor 6128, 32GB DDR3 RAM NO HDD

$90.00



1U 20

1U 20" Short Depth Server Firewall PFSense X11SSH-F Xeon 3.5Ghz 32GB RAM NVME

$247.00