Results 1 to 5 of 5

Thread: apache help

  1. #1
    Junior Member
    Join Date
    Dec 2005
    Location
    northwestern Connecticut, USA
    Posts
    4

    apache help

    I want to add a tiny script "apachectl start" so my apache server is up and running on reboot, instead of having to enter the comand manually. Would someone please direct me where to add such a script? One of the rc#.d files? Elsewhere?

    Thanks in advance.

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041

    Re: apache help

    --I blv you can put it in " /etc/init.d/bootmisc.sh "

    Quote Originally Posted by alienjeff
    I want to add a tiny script "apachectl start" so my apache server is up and running on reboot, instead of having to enter the comand manually. Would someone please direct me where to add such a script? One of the rc#.d files? Elsewhere?

    Thanks in advance.

  3. #3
    Junior Member
    Join Date
    Dec 2005
    Location
    northwestern Connecticut, USA
    Posts
    4
    Nope. No dice. Tried it straight "apachectl start" and "/usr/sbin/apache start" and no go.

    What I want to accomplish is having that command run should I be away from the computer and there being an unexpected reboot. I want the server to come back up without human intervention.

    Thanks for the try, though. Back to the Debian online dox. Sigh.

    EDIT MODE UPDATE!

    Got it working. Here's what I did (from terminal with 'su' privies):

    cd /etc/init.d
    cp apache /etc/rc5.d
    cd /etc/rc5.d
    cp apache S90apache
    rm apache

    Did a reboot, lo and behold: apache loaded between sshd and kdm sequence. Victory! Finally.

    Funny how such small victories can fire up a n00b like me. heh.

  4. #4
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041
    Easier to do a symlink:

    ' cd /etc/rc5.d '
    ' ln /etc/init.d/apache S90apache -sfn '

    --That way you don't have to worry about duplicate scripts, and the apache file will always have the latest mods from the package maintainer.

    Quote Originally Posted by alienjeff
    Nope. No dice. Tried it straight "apachectl start" and "/usr/sbin/apache start" and no go.

    What I want to accomplish is having that command run should I be away from the computer and there being an unexpected reboot. I want the server to come back up without human intervention.

    Thanks for the try, though. Back to the Debian online dox. Sigh.

    EDIT MODE UPDATE!

    Got it working. Here's what I did (from terminal with 'su' privies):

    cd /etc/init.d
    cp apache /etc/rc5.d
    cd /etc/rc5.d
    cp apache S90apache
    rm apache

    Did a reboot, lo and behold: apache loaded between sshd and kdm sequence. Victory! Finally.

    Funny how such small victories can fire up a n00b like me. heh.

  5. #5
    Junior Member
    Join Date
    Dec 2005
    Location
    northwestern Connecticut, USA
    Posts
    4
    Thanks, Dave! I did the commands and rebooted. All works well. Appreciate the help! -Jeff

Similar Threads

  1. How to start Apache and my sql?
    By morbidpalooza in forum Networking
    Replies: 0
    Last Post: 01-11-2006, 06:54 PM
  2. apache and mysql
    By dr_rude in forum General Support
    Replies: 2
    Last Post: 10-11-2004, 02:37 AM
  3. apache 1.3 --> 2.0
    By jpiranha in forum Networking
    Replies: 2
    Last Post: 10-04-2004, 01:57 AM
  4. apache 2.0
    By jpiranha in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 09-28-2004, 11:49 PM
  5. apache+php+postgresql
    By Evilgabo in forum General Support
    Replies: 3
    Last Post: 05-14-2004, 02:09 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
  •  


Yealink T48S VoIP/SIP Phone, 2 x Gigabit Ports PoE 7

Yealink T48S VoIP/SIP Phone, 2 x Gigabit Ports PoE 7" Color SIP-T48S | TESTED

$34.95



Cisco 8861 Gigabit IP Phone Phone 5-line business-class VoIP Wifi Bluetooth picture

Cisco 8861 Gigabit IP Phone Phone 5-line business-class VoIP Wifi Bluetooth

$39.99



Yealink SIP-T58W Bluetooth Cordless Handset IP Phone 7in Touch WiFi - Used picture

Yealink SIP-T58W Bluetooth Cordless Handset IP Phone 7in Touch WiFi - Used

$329.00



Ubiquiti UniFi VoIP UVP picture

Ubiquiti UniFi VoIP UVP

$85.00



Grandstream WP810 Portable Cordless Wi-Fi IP Phone picture

Grandstream WP810 Portable Cordless Wi-Fi IP Phone

$49.28



UBIQUITI UVP-TOUCH VoIP Desktop Touchscreen Smart Phone picture

UBIQUITI UVP-TOUCH VoIP Desktop Touchscreen Smart Phone

$55.00



Yealink SIP-T33G IP Phone 4-LineSpeakerphone VoIP Desk Phone Black w/ Power Sply picture

Yealink SIP-T33G IP Phone 4-LineSpeakerphone VoIP Desk Phone Black w/ Power Sply

$25.00



Cisco/Linksys SPA2102 VoIP Phone Adapter Router 2FXS (Unlocked) picture

Cisco/Linksys SPA2102 VoIP Phone Adapter Router 2FXS (Unlocked)

$17.99



Poly CCX 400 Desktop Business Media Phone VoIP 2200-49700-019 picture

Poly CCX 400 Desktop Business Media Phone VoIP 2200-49700-019

$49.99



Yealink SIP-T58W Smart Business IP Phone 7in Touchscreen WiFi PoE - Used picture

Yealink SIP-T58W Smart Business IP Phone 7in Touchscreen WiFi PoE - Used

$259.00