Hosting PHP web Site

Discussion in 'Web Design and Development' started by Jim Card, Aug 15, 2008.

  1. Jim Card macrumors newbie

    Joined:
    Aug 15, 2008
    #1
    I need to setup a place to test some new pages of our website. Can I do that on my MAC with Mac OSX 10.4.11?

    thanks

    Jim Card
     
  2. one3 macrumors regular

    Joined:
    Aug 13, 2004
    Location:
    Vancouver-ish
    #2
    Yes for sure. I find using MAMP is a good and easy way to test PHP / mySQL websites. I use the PRO version but the basic one will do as well.

    http://www.mamp.info/en/index.php
     
  3. OutThere macrumors 603

    OutThere

    Joined:
    Dec 19, 2002
    Location:
    NYC
    #3
  4. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #4
    I can't believe they charge for the pro version when all the software it includes is free and offers all the pro "features" as well.
     
  5. one3 macrumors regular

    Joined:
    Aug 13, 2004
    Location:
    Vancouver-ish
    #5
    Speaking only for myself, I paid not for the fact that it has Apache, mySQL (which are free) but that it makes it all quick and easy to set up test sites. I don't have time or a real need to have to go and configure apache etc. MAMP is a easy GUI interface where I don't need to think about the technology behind it all. I can concentrate on design and CSS which is what I really care about.
     
  6. OutThere macrumors 603

    OutThere

    Joined:
    Dec 19, 2002
    Location:
    NYC
    #6
    Unless your webhost has some special setup things going on, the Apache install on Mac OS X will generally work fine for simple testing of web pages.
     
  7. Jim Card thread starter macrumors newbie

    Joined:
    Aug 15, 2008
    #7
    Hosting PHP web Site

    After Install where do I move the web pages to. Is there a wizard? I am a Graphics person, and need to look at changes to our website without being live. The person who prepared pages cannot do this.

    I will be trying this over the weekend.

    thanks,
     
  8. localoid macrumors 68020

    localoid

    Joined:
    Feb 20, 2007
    Location:
    America's Third World
    #8
    Very true. And PHP is already installed on OS X, it's just not enabled. Edit one line in httpd.conf and PHP is enabled. Go to "sharing" in system preferences and enable "Web Sharing" and Apache will start up automatically. It ain't exactly rocket science.
     
  9. Jim Card thread starter macrumors newbie

    Joined:
    Aug 15, 2008
    #9
    Testing own site on Mac OSX in PHP

    I placed the files in the hotdocs folder as MAMP stated. MAMP servers are started. Personal Web Sharing under Services is Started. When I do to: 'View this computer’s website at http://signatures-imac.signaturecard.net/ or your personal website at http://signatures-imac.signaturecard.net/~signature/"

    Only the basic start up pages display. Have I missed turning something on or am I looking at the wrong site address?

    Jim
     
  10. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #10
    Try turning off Personal Web Sharing. That points to a different directory on the system than MAMP does. It points to /Library/WebServer/Documents.
     
  11. carlosbutler macrumors 6502a

    carlosbutler

    Joined:
    Feb 24, 2008
    Location:
    London City
    #11
    since we are all a mac family - i dont mind lending you some web space. my company website is www.ukwebbuilders.co.uk - as soon in the sig. ill give you a 90 day trial :D
     
  12. rumf macrumors newbie

    Joined:
    Aug 11, 2008
    #12
    It ain't rocket science until you try to enable imap and gd support... while not exactly rocket science, it is a bit more complex than most want to deal with.

    I am fairly comfortable with compiling my own software, use ports frequently, but still went with MAMP Pro when I ran into trouble getting imap support running with PHP.
     
  13. Poeben macrumors 6502

    Joined:
    Jul 29, 2004
    #13
    Your files go in the htdocs (not hotdocs :p ) within the MAMP application folder. By default you access your MAMP server at http://localhost:8888/. When you startup MAMP the default page URL is something like http://localhost:8888/MAMP/. If you remove the /MAMP part it will display the htdocs folder. Also, there's usually not a problem with running personal web sharing as well as that uses different ports and subsystems.
     
  14. Jim Card thread starter macrumors newbie

    Joined:
    Aug 15, 2008
    #14
    I turned off web sharing. When I go to http://localhost:8888 I see Index of

    So that I am clear, most of the web pages work well live. I need to put in two replacement pages and only view internally or at least somewhat hidden from public.

    Jim
     
  15. Jim Card thread starter macrumors newbie

    Joined:
    Aug 15, 2008
    #15
    My goal is to dupe our present web site which is in PHP on a my local computer, so we can view new pages without effecting the live site.

    I moved the pages out of a folder that was in the htdocs and now when I go to localhost:8888 thru Safari, I see a blank page.

    Help is appreciated.

    Jim
     

Share This Page