Trouble setting up Apache2/PHP/MySQL

jgaber@uoguelph.ca's picture

I just got a Macbook that I plan on using for school and work. One of the projects I'm working on is a catalog program written in PHP. So I need to set up PHP and MySQL on my Mac in order to test my program, and I also set up Apache so I can test the program as well.

Via instructions I found on developer.apple.com, I set up MySQL Server, and PHP with MySQL and Apache2 support. I also enabled Web Sharing in the System Preferences. In Leopard, the default web path is "/Library/WebServer/Documents", so I removed everything in the directory and put in the program I'm working on, but when I try to view the computer in Safari, all I get is the default Apache home page. On top of that, when I use the computer's IP address to view the page, it can't locate the server.

Does anyone with Mac or Apache knowledge know what I need to do?

aberry@uoguelph.ca's picture

http://www.mamp.info/en/index

http://www.mamp.info/en/index.php

I've never actually used the built in services for development.

--
Andrew

jgaber@uoguelph.ca's picture

Wow, this is a great find.

Wow, this is a great find. Thanks, Drew!
___________
Josh Gaber

That's dangerous! In the butt!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.