Results 1 to 5 of 5
  1. #1
    swan
    Guest
    what is the story of php with mac??
    hi
    i read mac osx supported php with mysql
    i dont know how i start working with php & mysql ,so i want to know the first step to test sample examples written by php .
    -is there a localhost like windows?
    -is there a defualt directory ?

    thanks alot

  2. #2

    cazabam's Avatar
    Member Since
    Jun 06, 2006
    Posts
    1,153
    Specs:
    MacBook 2.0GHz White, 512MB RAM, 60GB HDD
    Localhost does indeed exist, and points to your current machine. If you look in your home directory, you should see a directory called Sites. This is your personal web share. If you type 'http://localhost/~yourusername/' into your browser then it'll serve whatever you put in there.

    I *believe* (but am willing to be corrected) that PHP is built into the Apache installation that comes with OS X and just needs turning on. I'm not at my mac right now so I can't be exact ... anyone know for sure? It may already be turned on; probably worth testing it to make sure.

    MySQL installation is quite simple, if a little involved. Just grab the latest Mac OS X build from mysql.com and follow the instructions, remembering to switch to root in the terminal before carrying out any of the commands.

  3. #3


    Member Since
    Sep 30, 2004
    Posts
    3,378
    http://localhost/ will take you to /Library/WebServer/Documents/, assuming you have apache turned on.

    Enabling PHP if you have 10.4 is as easy as going to /etc/httpd/httpd.conf and un-commenting out the lines that mention php.

  4. #4
    patpat
    Guest
    Or you can try the XAMPP for Mac OS X. It's basically an Apache package filled with MySQL, PHP and Perl. The installation is relatively easy.

    Regards,
    Pat

  5. #5

    Richie_Gecko's Avatar
    Member Since
    Sep 22, 2005
    Location
    Las Vegas, NV
    Posts
    206
    Specs:
    13" MacBook Pro
    Quote Originally Posted by patpat
    Or you can try the XAMPP for Mac OS X. It's basically an Apache package filled with MySQL, PHP and Perl. The installation is relatively easy.

    Regards,
    Pat
    This would definitely be my recommendation. The PHP installation has pretty much every option enabled, so there is very little work needed to get your local scripts up and running.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. A Story About A Mac
    By bigaudiofanatic in forum Apple Notebooks
    Replies: 3
    Last Post: 08-09-2009, 04:57 AM
  2. Mac Hacking Story
    By ostuneup in forum Apple Rumors and Reports
    Replies: 1
    Last Post: 03-04-2009, 11:48 AM
  3. My Mac Story
    By livinitup1 in forum Switcher Hangout
    Replies: 6
    Last Post: 06-09-2008, 06:35 PM
  4. First mac story
    By xerolink in forum Switcher Hangout
    Replies: 0
    Last Post: 03-09-2008, 09:47 PM
  5. Setting up PHP and PHP Nuke
    By EvoMac in forum Web Design and Hosting
    Replies: 2
    Last Post: 02-18-2005, 12:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •