Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MythicFrost

macrumors 68040
Original poster
Mar 11, 2009
3,944
40
Australia
Hey, I've not done much with PHP in a while, in fact it was windows that I last used it, I used to use EasyPHP, but it is for windows only.

I've downloaded MAMP I think, and XAMPP, but I'm unsure how to use them..
When I do Option+F12 (Preview in Safari), it says it can't find the file/page...

Does anyone know how to do this?

Kind Regards
 
Get MAMP and install it. It should also come with a widget. Install it as well. After installing MAMP, go to Dashboard, and the MAMP control center widget should be installed. Click "Start all Services". Next, put all your files in the Macintosh HD/Applications/MAMP/htdocs folder. Fire up your web browser, and enter http://localhost:8888/path/file to view your file. For example, if your file is file.php in htdocs, type http://localhost:8888/file.php. If its name is file.php in the test sub-folder (which is located in htdocs), type http://localhost:8888/test/file.php

You should have read the documentation, though...

Also, when you fire up MAMP, a page should be opened with all the stuff needed...
 
If you want to use Dreamweaver's Preview in Browser option with MAMP running, you'll need to change the site definition file.

After opening your site definition file in Dreamweaver, select Local Info and change HTTP address to http://localhost:8888/.

Next select Testing Server and change URL Prefix to http://localhost:8888/.
 
In mamp preferences, I set it to use the default ports and changed the document directory to point to my site. I didn't have to change anything in dreamweaver to make it work and it can be accessed in any browser by just typing localhost. No ports are needed when setup this way.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.