SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Enthusiast alf's Avatar
    Join Date
    Aug 2000
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,
    I am new to Apache, can anyone tell me how to autostart apache when my server boot up? Thanks

  2. #2
    SitePoint Wizard
    Join Date
    Sep 1999
    Posts
    1,390
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could put the shortcut to start it in the C:\windows\start menu\programs\startup folder. Just create a shortcut and place it in that folder, that should do the trick.

  3. #3
    SitePoint Enthusiast alf's Avatar
    Join Date
    Aug 2000
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am sorry, I forget to tell that I am using RedHat Linux 6.0

  4. #4
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You should be able to configure the .profile of Root or whatever your Superuser is to run Apache on bootup. Look in your linux documentation for information on the Profile and running shell scripts.
    Wayne Luke
    ------------


  5. #5
    ********* *********** Jason Donald's Avatar
    Join Date
    Jun 2000
    Location
    Melbourne, Victoria, Australia
    Posts
    182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Or throw it into your friendly /etc/rc.d/rc.local file which gets run after everything else has init'd.

  6. #6
    SitePoint Enthusiast alf's Avatar
    Join Date
    Aug 2000
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I had tried to copy it into the /etc/rc.d/init.d directory but it didn't work

  7. #7
    ********* *********** Jason Donald's Avatar
    Join Date
    Jun 2000
    Location
    Melbourne, Victoria, Australia
    Posts
    182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    rc.local is a file, add something like:

    /my/path/to/apache/bin/apachectl start

    At the bottom of the file.

    So if your apache is installed in :

    /usr/local/apache

    then put

    /usr/local/apache/bin/apachectl start

    in there.

    Check that the command works first by typing it out eg:

    Code:
    /usr/local/apache/bin/apachectl start
    You can also 'stop' and 'restart'. Try '--help' too.


  8. #8
    SitePoint Enthusiast alf's Avatar
    Join Date
    Aug 2000
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, Jason Donald... It works!


Bookmarks

Posting Permissions

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