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.

doubts on setting up webserver for local development

Post Reply New Thread Subscribe

Thread Tools

Member Since: Jan 26, 2009
Posts: 1
prtc is on a distinguished road

prtc is offline

I'm setting up my mac (running leopard) to run as webserver so that i can do web development locally. i set up apache 2.2.9 and turned on php 5.2.6.

I have a set of webpages written in html, php and flash to update (not written by me originally). although they are running ok remotely (, it is not working locally. specifically, when i click on the menu items on the top (locally) only the first page is (re)loaded (no matter which item). even if i type, say, http://localhost/~emy32/index.php?id=2, the http://localhost/~emy32/index.php?id=0 page is loaded.

I'm just learning web development (no professional purposes) so i feel a bit lost. Is this a matter of not having configured the local PHP properly? (as the same pages and codes are running ok at the remote site?)

QUOTE Thanks

Thyamine's Avatar
Member Since: Apr 23, 2007
Location: Coatesville, PA
Posts: 377
Thyamine will become famous soon enough
Mac Specs: MBP 15", 2.33 GHz, 2Gb

Thyamine is offline
It it works properly remotely, then it sounds like everything is working as it should be. What I'd check is if the coding is referring to external site names (like your domain name) directly. Internally/locally that normally won't work. For example, if in your code you are pointing/referring to "" instead of just "code.php" you may find that it doesn't work when you test locally.
QUOTE Thanks

Member Since: Jan 07, 2009
Posts: 6
Simon.Rain is on a distinguished road

Simon.Rain is offline
I would advise you to set up a MAMP
MAMP - Wikipedia, the free encyclopedia

it is a software bundle that includes Apache, Mysql and PHP all into one.
This means you only have to install one application and it will run everything at the same time.

Here is a good one which wikipedia recommends
living-e AG: MAMP - Mac - Apache - MySQL - PHP

download the
- only MAMP 1.7.2 dmg Image (universal binary)
I tried the other ones and they don't seem to work.

You can follow this easy video tutorial to set it all up
Install a Local Web Server on Mac OSX | Lullabot

I've been developing PHP applications on Windows using easyPHP which is the same thing as a MAMP but for Windows and the one for Mac is so much easier to use.
QUOTE Thanks

Post Reply New Thread Subscribe

« web software help... | Problems getting a website to work on Safari! »
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 Starter
Last Post
setting up webserver on os x 5 scottyk617 Internet, Networking, and Wireless 1 01-01-2009 08:34 AM
Setting up Web Development Environment on new Mac forgueam Web Design and Hosting 5 03-20-2008 06:05 PM

All times are GMT -4. The time now is 12:16 AM.

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

Welcome to

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?