New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Web Design and Hosting Creating sites, scripting, and hosting discussions.

what is the story of php with mac??


Post Reply New Thread Subscribe

 
Thread Tools
swan
Guest
 
Posts: n/a

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
QUOTE Thanks
cazabam

 
cazabam's Avatar
 
Member Since: Jun 06, 2006
Posts: 1,153
cazabam is a glorious beacon of lightcazabam is a glorious beacon of lightcazabam is a glorious beacon of lightcazabam is a glorious beacon of lightcazabam is a glorious beacon of lightcazabam is a glorious beacon of light
Mac Specs: MacBook 2.0GHz White, 512MB RAM, 60GB HDD

cazabam is offline
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.
QUOTE Thanks
mynameis

 
Member Since: Sep 30, 2004
Posts: 3,378
mynameis is just really nicemynameis is just really nicemynameis is just really nicemynameis is just really nice

mynameis is offline
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.
QUOTE Thanks
patpat
Guest
 
Posts: n/a

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
QUOTE Thanks
Richie_Gecko

 
Richie_Gecko's Avatar
 
Member Since: Sep 22, 2005
Location: Las Vegas, NV
Posts: 206
Richie_Gecko is on a distinguished road
Mac Specs: 13" MacBook Pro

Richie_Gecko is offline
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.
QUOTE Thanks

Post Reply New Thread Subscribe


« What's closest to FrontPage for the Mac? | iWeb question Re: New Pages »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Yet another switcher story djmitch Switcher Hangout 31 06-30-2010 11:07 PM
mac failure reports/ reliability scooter Apple Rumors and Reports 5 08-02-2005 11:50 AM
Setting up PHP and PHP Nuke EvoMac Web Design and Hosting 2 02-18-2005 12:38 PM
Is it possible to setup php and databases on pc and mac? knaggsy Web Design and Hosting 7 08-05-2004 06:09 AM
Bogus PHP bug on Mac OS X... mark Web Design and Hosting 19 10-03-2003 07:34 PM

All times are GMT -4. The time now is 10:18 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?