Starting Apache from boot?

Discussion in 'Mac Apps and Mac App Store' started by howesey, Dec 4, 2005.

  1. howesey macrumors 6502a

    Dec 3, 2005
    How can you get Apache to load at boot (even without login would be useful)?

    I have to manually start it through 'System Prefs -> Sharing' after login.

    I have also installed MySQL, where does it live on the computer? I cannot find it anywhere.
  2. belvdr macrumors 601

    Aug 15, 2005
    If you checked Personal Web Sharing in Sys Prefs, Apache should start automatically, even without login.

    You can setup MySQL to autostart by editing /etc/hostconfig and placing this inside, if it doesn't exist:

    If it does exist and says NO, then change it to YES. You'll need to use sudo to edit /etc/hostconfig.

    Also, MySQL lives under /usr/local/mysql.
  3. howesey thread starter macrumors 6502a

    Dec 3, 2005
    How do I view '/etc ' directories?

    Finder has hidden them.

    Personal Web Sharing on every login disables.
  4. mkrishnan Moderator emeritus


    Jan 9, 2004
    Grand Rapids, MI, USA
    Strange... I don't think it should. :( Mine seems to be persistent. Do you have anything in any of the sites folders?

    And you can view the folder /etc with terminal. :)

    ls -la /private/etc
  5. howesey thread starter macrumors 6502a

    Dec 3, 2005
    File Buddy shows /etc, /usr etc. It has un-hidden them in Finder also.

    What I have in /Library/WebServer/Documents/
  6. hopejr macrumors 6502

    Nov 10, 2005
    New South Wales, Australia
    you can get to /etc in Finder by going to Go -> Go to folder... and typing in /etc

Share This Page