image
image

Go Back   macosx.com > Design, Media, Programming & Scripting > Software Programming & Web Scripting

Reply
 
Thread Tools
  #1  
Old December 9th, 2006, 09:48 PM
Registered User
 
Join Date: Sep 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
esteban is on a distinguished road
Setup PHP & MySQL

Back in 2002, I discovered, someone named Yoshi did a wonderful posting, listing instructions for setting up PHP nd MySQL for Mac OSX. At that time, there was PHP4. I presume MySQL was also an older version.

Have those instructions been updated any since then? I'm not looking to install on an Intel Mac, but a G5 running OS 10.4.8. I would like to install the latest versions of PHP, MySQL, and phpMyAdmin that will run on my set-up.

Thank you.
Reply With Quote
  #2  
Old December 11th, 2006, 01:59 PM
Registered User
 
Join Date: May 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
mgm_03 is on a distinguished road
it doesn't get easier or better than this:

http://www.mamp.info/en/index.php
Reply With Quote
  #3  
Old December 11th, 2006, 10:28 PM
Captain Code's Avatar
Moderator
 
Join Date: Aug 2001
Location: Ontario, Canada
Posts: 3,108
Thanks: 0
Thanked 1 Time in 1 Post
Captain Code will become famous soon enough
MAMP is really only for testing purposes not really for production use. You have to have the application open all the time it seems otherwise MySQL doesn't work from what I remember.

The easiest thing to do is go here for php
http://www.entropy.ch/software/macosx/php/

Download MySQL from mysql.com and the configuration isn't really any different than it used to be. You just basically install it and you have to change the root password and create users, tables, etc. For that I found a GUI program that connects to the database so you don't have to use any command line tools. The one I use is Aqua Data Studio.
__________________
MacBook Pro 2.16GHz Core2Duo 3GB RAM, G4 1.4GHz OSX Tiger 1.25GB RAM, Dual 2GHz G5 OSX Tiger 2GB RAM (freakin shweet)
Athlon 64 Windoze XP for school work (programming) 1GB RAM
dferns@macosx.com
Reply With Quote
  #4  
Old December 12th, 2006, 10:55 AM
Registered User
 
Join Date: May 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
mgm_03 is on a distinguished road
Can you elaborate on your comments re MAMP? .... testing vs production. I'm using it on my laptop to develop sites and it's a great solution. The app lets you turn Apache or Mysql or both on/off at any time
Reply With Quote
  #5  
Old December 12th, 2006, 11:05 AM
Captain Code's Avatar
Moderator
 
Join Date: Aug 2001
Location: Ontario, Canada
Posts: 3,108
Thanks: 0
Thanked 1 Time in 1 Post
Captain Code will become famous soon enough
From what I remember it doesn't automatically start on boot. So you have to manually go and start it every time. That alone is not good for production environments because if you're not there when your computer boots back up due to power failure or something then you're out of luck.

I believe it used to say this on the MAMP website but it doesn't say that anymore that I can see. They might have changed it since I last used it, and perhaps it does now start automatically.
__________________
MacBook Pro 2.16GHz Core2Duo 3GB RAM, G4 1.4GHz OSX Tiger 1.25GB RAM, Dual 2GHz G5 OSX Tiger 2GB RAM (freakin shweet)
Athlon 64 Windoze XP for school work (programming) 1GB RAM
dferns@macosx.com
Reply With Quote
  #6  
Old December 13th, 2006, 07:57 PM
Registered User
 
Join Date: Jan 2006
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Moptop is on a distinguished road
Quote:
Originally Posted by Captain Code View Post
The easiest thing to do is go here for php
http://www.entropy.ch/software/macosx/php/
I used that on my mac, works perfectly.

Also, if you stop apache, the php ^ stops also, to free up ram & processer capacity.
Reply With Quote
Reply

Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 05:13 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.