Wednesday, June 14, 2006

Mac OS X Tiger, PHP MySQL installation

i was going to install PHP and MySQL on my new Intel MacBook Pro 17" and just found out that installing them is so easy now a days. there wasn't really good info on the web and i just wasted way too many of my time on it... this is mainly because i didn't understand about the privilege systems.

so now.. after long trial and error. i just noticed that you didn't really have to configure it yourself ... if you are not sure how....

anyway, so here is the instruction. download the latest version from following.

1. php for mac - you have to scroll down a bit and get the one vor apache 1.3.xxx
http://www.entropy.ch/software/macosx/php/

2. mysql - just get the latest installer - x86 for intel macs, other one are pretty clear
http://dev.mysql.com/downloads/

3. phpMyAdmin - this will allow you to set privileges etc very easily.
http://www.phpmyadmin.net


just install them all. and be sure to install .prefpane thing. just double click on it and install for ALL USERS.

so yeah everything starts up.
(use system preference > sharing > web service for web server, system preference > mysql for mysql)


once you are done you are going to copy phpMyAdmin folder into HD > Library > Web Service > Documents
since that's the document root. don't forget to rename phpMyAdmin 2.8.1etc to phpmyadmin for easier access.

now open up your browser and goto http://localhost/phpmyadmin/
you will see your php and database running.


how simple is that....
( well you'll have to configure root password and configure phpmyadmin config file after this for security reasons, but i'll write about it some other time)

great day.

No comments: