Mac OS X with Mamp

This is a discussion on Mac OS X with Mamp within the Tech Board forums, part of the Community Boards category; I am running the beta release of Mac OS X 10.5 (Leopard) on my computer right now. I installed the ...

  1. #1
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738

    Mac OS X with Mamp

    I am running the beta release of Mac OS X 10.5 (Leopard) on my computer right now. I installed the standard edition (not the server edition), because normally I don't use my computer as a server. Anyways, after awhile I decided I wanted to try running an HTTP server off of my own personal computer just to test some things out...so I decided to install MAMP instead of installing Mac OS X Server.

    Now...I have noticed a couple of things going on. As long as I am logged into my machine and using my machine, the HTTP server is running properly and I can access the files in the htdocs directory.

    When I log out, however, it seems to me that the server stops running...but that confuses me, because technically Apache is running as a Unix background process...and I thought all processes of that type continue to run whether you are logged in or out. But it seems that when I log out, those processes are getting killed. Anyone know why, or how I can get them to continue running indefinitely?

    [edit]

    Another question: Would it be a good idea to tell my computer never to go to sleep? What's the status of background processes like Apache when the computer goes to sleep? I assume all processes are suspended...and so if I want my server to be running overnight and such, I should not allow my computer to go to sleep.

    [/edit]
    Last edited by DavidP; 08-06-2007 at 02:43 PM.
    My Website

    "Circular logic is good because it is."

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    When I log out, however, it seems to me that the server stops running...but that confuses me, because technically Apache is running as a Unix background process...and I thought all processes of that type continue to run whether you are logged in or out. But it seems that when I log out, those processes are getting killed. Anyone know why, or how I can get them to continue running indefinitely?
    If the processes are running from a terminal or some other visible window, then it's entirely possible that when the window closes, the background process gets terminated.

    I don't know how to prevent this, unless running the process with elevated permissions helps. Macs can switch users, right? Could you do that?
    [edit]

    Another question: Would it be a good idea to tell my computer never to go to sleep? What's the status of background processes like Apache when the computer goes to sleep? I assume all processes are suspended...and so if I want my server to be running overnight and such, I should not allow my computer to go to sleep.

    [/edit]
    I'm not sure about sleep, but when you hibernate a Linux machine, the processes get suspended, and then when you boot the computer up again they are completely restored, with the state of all of their variables intact. Most programs continue running perfectly well. (Of course, the clock has changed, so if you have a time-based program it might mess up.)

    I don't know how this would affect Apache. You'd have to try it.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  3. #3
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Would not apache most likely pause itself? And resume later. Apache can pause

  4. #4
    Registered User
    Join Date
    Aug 2007
    Posts
    22
    will simple anser its a stupid mac dont use them

  5. #5
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,070
    will simple anser its a stupid mac dont use them
    ya liek totally

    Memorial University of Newfoundland
    Computer Science

    Mac and OpenGL evangelist.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Mac OS X Users/C programmers?
    By petermichaux in forum C Programming
    Replies: 16
    Last Post: 04-18-2011, 06:36 AM
  2. Replies: 1
    Last Post: 02-03-2009, 03:45 AM
  3. Mac OS X aliases
    By rak1986 in forum C Programming
    Replies: 4
    Last Post: 01-21-2009, 11:11 AM
  4. inquiry from a hungry mac os x user
    By terabyter in forum C Programming
    Replies: 3
    Last Post: 06-23-2006, 09:04 AM
  5. Assembly & Mac OS X
    By kristy in forum Tech Board
    Replies: 2
    Last Post: 07-29-2003, 04:29 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21