how to install a web Server on Macintosh ?

Discussion in 'Web Design and Development' started by sepu, Apr 15, 2007.

  1. sepu macrumors regular

    Joined:
    Nov 18, 2006
    #1
    Hey guys this is a really quick question ....
    Can anyone point me out to any tutorials or anything that tell you how to install a web server. Can you recommend any specif ?
    I've have web server but is on my PC I used Wamp5 that brings all included.


    Thanks.
     
  2. mnkeybsness macrumors 68030

    mnkeybsness

    Joined:
    Jun 25, 2001
    Location:
    Moneyapolis, Minnesota
    #2
    OS X has Apache built-in. You don't need to install anything if you want to serve plain HTML pages.

    There are two places to do this:
    The first will be accessed via http://localhost/
    Code:
    /Library/WebServer/Documents/
    or from http://localhost/~username/
    Code:
    ~/Sites/
    in order to use the second, you must turn on personal web sharing in the system preferences sharing dialog.
     
  3. sepu thread starter macrumors regular

    Joined:
    Nov 18, 2006
    #3
    Thanks for the quick response ....

    didnt know that ... I will be dealing with PHP and Ruby on rails, MySQL, etc ... Im bringing all my development from my PC to my Mac .... so would I be able to run all that with this APache built on my Mac ? Do I need any extras ?

    Thanks.
     
  4. zarathustra macrumors 6502a

    zarathustra

    Joined:
    Jul 16, 2002
    Location:
    Philadelphia, PA
    #4
    You will need to install MySQL and PHP. It's very easy if you use these installers from Entropy:

    http://www.entropy.ch/software/macosx/

    Super easy to do. My testing server is an old PM G4 running OS X 10.4 MySQL and PHP.
     
  5. mnkeybsness macrumors 68030

    mnkeybsness

    Joined:
    Jun 25, 2001
    Location:
    Moneyapolis, Minnesota
    #5
    For Ruby on Rails, I definitely recommend looking into using MacPorts (formerly DarwinPorts). There are a lot of tutorials found through google on getting it set up. Search "install ruby on rails os x macports"
     
  6. SC68Cal macrumors 68000

    Joined:
    Feb 23, 2006
    #6
    PHP is included with the Apache server on OS X, built in. You just need to enable it.
     
  7. sepu thread starter macrumors regular

    Joined:
    Nov 18, 2006
  8. barrysfarm macrumors regular

    Joined:
    Nov 1, 2005
    #8
    This is the best tutorial i've found for installing ruby on rails locally.

    Also, if you want to update php here are some good packages that might make life easier.
     
  9. cookie1105 macrumors 6502

    Joined:
    Mar 27, 2006
    Location:
    London, UK
  10. SC68Cal macrumors 68000

    Joined:
    Feb 23, 2006
    #10

    It sells you things you already have. :mad:
     
  11. sepu thread starter macrumors regular

    Joined:
    Nov 18, 2006
    #11
    hey SC68Cal .... you said "PHP is included with the Apache server on OS X, built in. You just need to enable it."

    where do I enabled it ?

    Thanks.
     
  12. cookie1105 macrumors 6502

    Joined:
    Mar 27, 2006
    Location:
    London, UK
    #12
    ^^That's why mamp. True, you already have all of these things installed on a mac SC68Cal, but it's easier to just install something like mamp if you're not comfortable with terminal. BTW OP, here are the instructions for enabling php on osx.
     
  13. SC68Cal macrumors 68000

    Joined:
    Feb 23, 2006
    #13

    Get comfortable with it, this is a UNIX-like operating system. It is to your advantage.

    You can paper-over MySQL and PHP with GUIs up to a
    certain point.

    Anyone worth their salt should know how to use terminal and also know how to code raw SQL queries, as well as PHP.
     

Share This Page