07-11-2006, 04:06 AM #1swanGuestwhat is the story of php with mac??
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 ?
07-11-2006, 04:35 AM #2
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.
07-11-2006, 09:19 PM #3
- Member Since
- Sep 30, 2004
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.
07-19-2006, 11:31 PM #4patpatGuest
07-30-2006, 07:13 PM #5Originally Posted by patpat
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By bigaudiofanatic in forum Apple NotebooksReplies: 3Last Post: 08-09-2009, 04:57 AM
By ostuneup in forum Apple Rumors and ReportsReplies: 1Last Post: 03-04-2009, 11:48 AM
By livinitup1 in forum Switcher HangoutReplies: 6Last Post: 06-09-2008, 06:35 PM
By xerolink in forum Switcher HangoutReplies: 0Last Post: 03-09-2008, 09:47 PM
By EvoMac in forum Web Design and HostingReplies: 2Last Post: 02-18-2005, 12:38 PM