what are you using for a php server?

Discussion in 'Web Design and Development' started by techound1, Apr 27, 2006.

  1. techound1
    Expand Collapse
    macrumors 68000

    techound1

    Joined:
    Mar 3, 2006
    #1
    I was raised on HTML and have just started mucking about with PHP. I want to set up a local testing server, rather than doing the upload-and-look routine (which is wearing thin:eek: ). What does everyone recommend for a thick-as-a-post (no pun intended) php-wannabe? Thanks! :D
     
  2. Mitthrawnuruodo
    Expand Collapse
    Moderator emeritus

    Mitthrawnuruodo

    Joined:
    Mar 10, 2004
    Location:
    Bergen, Norway
    #2
    Mac OS X has built-in support for PHP, but you must edit the httpd.conf file to turn on the php modules. There are probably some tools that will do this for you, but I always just open up /etc/httpd/httpd.conf in my favourite text editor and remove the # in front of these two lines a couple of hundred lines down in the file:

    Code:
    LoadModule php4_module        libexec/httpd/libphp4.so
    ...
    AddModule mod_php4.c
    You then need to (re)start Apache (System preferences -> Sharing -> Services -> Personal Web Sharing), and you should be able to access php content locally on your machine.

    Taco HTML Edit is a nice, free html/php editor that supports php previewing.

    php.net is an essential site when learning/developing php pages... :)
     
  3. techound1
    Expand Collapse
    thread starter macrumors 68000

    techound1

    Joined:
    Mar 3, 2006
  4. desenso
    Expand Collapse
    macrumors 6502a

    desenso

    Joined:
    May 25, 2005
    #4
    Also consider...

    Also consider using MAMP from http://www.mamp.info/

    It's nice as a little testing area. Plus it just involves installing an app, no more. Certainly I wouldn't use this to host the final version, but like you say - for local testing, it's nice. And you can use mysql with it.
     
  5. xelterran
    Expand Collapse
    macrumors 6502

    Joined:
    Dec 28, 2001
    #5
  6. wrldwzrd89
    Expand Collapse
    macrumors G4

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #6
    I used this approach too, it works great. The bulk of the work is done for you, you just have to configure MySQL and off you go!
     
  7. jeremy.king
    Expand Collapse
    macrumors 603

    jeremy.king

    Joined:
    Jul 23, 2002
    Location:
    Fuquay Varina, NC
    #7
    I currently use XAMPP - although the versions look a little old
     
  8. Moria
    Expand Collapse
    macrumors regular

    Joined:
    May 7, 2005
    Location:
    Glasgow, Scotland
    #8
  9. techound1
    Expand Collapse
    thread starter macrumors 68000

    techound1

    Joined:
    Mar 3, 2006

Share This Page