[SOLVED] my MAMP won't play ball with php

This is a discussion on "[SOLVED] my MAMP won't play ball with php" within the PHP Forum section. This forum, and the thread "[SOLVED] my MAMP won't play ball with php are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 2nd, 2008, 14:15
Up'n'Coming Member
Join Date: Mar 2006
Location: UK
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] my MAMP won't play ball with php

A couple of weeks ago I installed MAMP on my mac and made my first php pages [ woohoo! which worked just fine, nothing fancy but working!

Come back to them today and they don't work any more. The MAMP welcome page tells me its working ok, servers are started etc. but none of my pages with php included work as previously.

I uploaded my php pages to my remote server to check them that way in Fireworks and all I see is the source code rather than the actual page.

Can anyone help me check if php/MAMP is working properly?

cheers!
Reply With Quote

  #2 (permalink)  
Old May 2nd, 2008, 14:32
Junior Member
Join Date: Apr 2007
Location: Kansas
Age: 18
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to BRONIC
re: [SOLVED] my MAMP won't play ball with php

are you using include "file.php"

or is the code in the files.

if the code is in the files then it has to be saved as .php and not .html

do you have a link?
Reply With Quote
  #3 (permalink)  
Old May 2nd, 2008, 15:00
Up'n'Coming Member
Join Date: Mar 2006
Location: UK
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
re: [SOLVED] my MAMP won't play ball with php

the main file is .php and the included files are .html.
they were working fine last week.
Reply With Quote
  #4 (permalink)  
Old May 2nd, 2008, 15:01
Junior Member
Join Date: Apr 2007
Location: Kansas
Age: 18
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to BRONIC
re: [SOLVED] my MAMP won't play ball with php

do you have a link
Reply With Quote
  #5 (permalink)  
Old May 2nd, 2008, 15:23
Up'n'Coming Member
Join Date: Mar 2006
Location: UK
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
re: [SOLVED] my MAMP won't play ball with php

The files are all on my local server. there is no problem with the files themselves as they worked fine earlier. The problem is with MAMP and php rendering on my mac.

Does anyone have experience of MAMP instability?
Reply With Quote
  #6 (permalink)  
Old May 2nd, 2008, 15:34
SuperMember

SuperMember
Join Date: Jun 2007
Location: uk
Posts: 459
Thanks: 0
Thanked 0 Times in 0 Posts
re: [SOLVED] my MAMP won't play ball with php

Mamp can sometimes report itself as running, when infact its not, open up preferences change a preference and change it back, ok it and see if that works.
Reply With Quote
  #7 (permalink)  
Old May 2nd, 2008, 15:56
New Member
Join Date: Jan 2008
Location: London, UK
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to ooyes Send a message via Skype™ to ooyes
re: [SOLVED] my MAMP won't play ball with php

i don't know read apache docs
Reply With Quote
  #8 (permalink)  
Old May 2nd, 2008, 18:29
Reputable Member
Join Date: Jul 2005
Location: Melksham, Wilts, UK
Posts: 293
Thanks: 0
Thanked 0 Times in 0 Posts
re: [SOLVED] my MAMP won't play ball with php

Have you upgraded the Mac? I have see httpd configurations get lost:

http://www.wellho.net/mouth/1449_Upg...nfig-lost.html


and that includes the PHP load lines (which are, as I recall, commented out by default)
Reply With Quote
  #9 (permalink)  
Old May 9th, 2008, 10:45
Up'n'Coming Member
Join Date: Mar 2006
Location: UK
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
re: [SOLVED] my MAMP won't play ball with php

httpd.conf is still in the same place - in 'apache' in the conf folder in mamp files.

I got it working again the other night by reinstalling mamp and also using something called headdress which is supposed to configure everything for you. I'm not sure which of these fixed the problem as it suddenly started working.

Alas, the problem is not solved. Today its not working again and I'm back to square one. Can anybody tell me exactly what my httpd.conf file should look like?
Reply With Quote
  #10 (permalink)  
Old May 15th, 2008, 14:46
Up'n'Coming Member
Join Date: Mar 2006
Location: UK
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
re: [SOLVED] my MAMP won't play ball with php

I seem to have got to the bottom of this, so if it helps anyone else I'll explain.

Start up MAMP. In 'preferences' go to 'ports' tab and click Reset MAMP ports. Apache Port is now 8888 and MySQL Port is 8889 on my machine. Now I can view my PHP files again, yipee!!

Let's hope it stays that way! and Lets hope this doesn't cause me more problems along the line, who knows?
Reply With Quote
Reply

Thread Tools

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 On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] simple catch the ball game ahwell Flash & Multimedia Forum 10 Jan 25th, 2008 22:58
Looking for random bouncing ball bubberz Flash & Multimedia Forum 1 Oct 24th, 2007 21:35
Ecopa-ball speakma Free Web Site Critique 4 May 22nd, 2007 11:31
Spot the ball website markyfarms Flash & Multimedia Forum 1 Jan 2nd, 2006 15:51
Glass Ball tutorial always fails autumn_whispers2me Graphics and 3D 2 Jan 26th, 2005 20:48


All times are GMT. The time now is 02:13.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43