Skip navigation
This discussion is archived

Automatically start web server

1094 Views 8 Replies Latest reply: Apr 7, 2006 10:00 AM by MacWorks RSS
Justinian Hatfield Calculating status...
Currently Being Moderated
Mar 27, 2006 10:03 AM
Hi,
I'm running an intranet on OS X server 10.3 on a G5 tower. Each time the server restarts, I have to manually start the Web Server. Can I set the Web Server up to automatically restart after the machine restarts? All the other services start automatically, just not the web server.
Thanks,
Justinian
20 iMac G5, Mac OS X (10.4.4)
  • Wesley Furgiuele Level 3 Level 3 (665 points)
    Currently Being Moderated
    Mar 27, 2006 10:34 AM (in response to Justinian Hatfield)
    What are the contents of /etc/hostconfig? Do you have WEBSERVER=-YES-?

    If so, what does the error log (/var/log/httpd/error_log, typically) say after a reboot, before you try to start the web server manually?
    Xserve Dual 2.3 GHz / PowerMac Dual 2 GHz, Mac OS X (10.4.5)
  • sonofcolin Calculating status...
    Currently Being Moderated
    Mar 27, 2006 12:18 PM (in response to Justinian Hatfield)
    sudo pico /etc/hostconfig

    You need to isse the sudo command, otherwise you can not edit.

    Never use TextEdit to alter system files! If you must use a text editor, try BBedit or TexWrangler to name a few.
    Mac OS X (10.4.5)
  • Wesley Furgiuele Level 3 Level 3 (665 points)
    Currently Being Moderated
    Mar 27, 2006 12:28 PM (in response to Justinian Hatfield)
    As mentioned above, I suggest using TextWrangler. You can install some command line tools that allow you to type:
    username$ edit /etc/hostconfig
    on the command line and have it open automatically for you with TextWrangler, and it is good at preserving the state of the file (unlike TextEdit, which could accidentally append an extension or you could switch it to RTF).

    I'm not sure why the hostconfig file doesn't get updated -- I've had that experience in the past as well.
    Xserve Dual 2.3 GHz / PowerMac Dual 2 GHz, Mac OS X (10.4.5)
  • Camelot Level 8 Level 8 (45,670 points)
    Currently Being Moderated
    Mar 27, 2006 11:13 PM (in response to Justinian Hatfield)
    It's more likely to be because TextWrangler isn't installed on the server, rather than just because it's a server.

    TextWrangler is a third party application that is not shipped with Mac OS X.
    Mac OS X (10.4.5)
  • MacWorks Level 2 Level 2 (340 points)
    Currently Being Moderated
    Apr 7, 2006 10:00 AM (in response to Wesley Furgiuele)
    I've got almost the same problem with a 10.4.6 server -- web server does not start automatically upon restart. The hostconfig has WEBSERVER set to -YES-, but it's still not starting automatically.

    Any suggestions?
    xServer G5 sinle 2.0 Ghz, 2GB RAM, Mac OS X (10.4.6)

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.