Problem with a MAMP server

  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6249
  • Loc: Seattle, WA

Post 3+ Months Ago

I'm using MAMP (http://sourceforge.net/projects/mamp) to run a development/test server on my PowerBook. Everything works fine as long as I place all of my content in /Applications/MAMP/htdocs, as the default installation specifies.

However, whenever I change the DocumentRoot, either by using the MAMP application or by editing httpd.conf directly, the server points to the correct directory, but no PHP scripts will run. Instead, the server treats PHP files as applications/downloadable files.

Has anyone else run into this problem and know of a way to correct it?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • neilc
  • Born
  • Born
  • neilc
  • Posts: 2

Post 3+ Months Ago

I'm a relative newbie, so apologies if these are things that you've already tried!

- have you refreshed the pages whenever you see the php code loading in the browser after making the change to the documentroot?

- have you tried installing php to run with the bundled Apache server? And if so, does it have the same problem as MAMP does when using a non-default documentroot?
  • manytopsites
  • Newbie
  • Newbie
  • manytopsites
  • Posts: 12

Post 3+ Months Ago

Weird , i am running mamp on my macbook right now and i dont use the original folder but its still running smoothly here,
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6249
  • Loc: Seattle, WA

Post 3+ Months Ago

After much frustration, I eventually gave up and just used the default docroot directory.

I do all of my development on a new Windows box now, so it doesn't matter anymore anyway.

Thanks for everyone's comments.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 3 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.