| Welcome to Webforumz.com. |
|
May 2nd, 2008, 14:15
|
#1 (permalink)
|
|
Up'n'Coming Member
Join Date: Mar 2006
Location: UK
Posts: 85
|
[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!
|
|
|
May 2nd, 2008, 14:32
|
#2 (permalink)
|
|
Junior Member
Join Date: Apr 2007
Location: Kansas
Age: 18
Posts: 33
|
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?
|
|
|
May 2nd, 2008, 15:00
|
#3 (permalink)
|
|
Up'n'Coming Member
Join Date: Mar 2006
Location: UK
Posts: 85
|
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.
|
|
|
May 2nd, 2008, 15:01
|
#4 (permalink)
|
|
Junior Member
Join Date: Apr 2007
Location: Kansas
Age: 18
Posts: 33
|
re: [SOLVED] my MAMP won't play ball with php
do you have a link
|
|
|
May 2nd, 2008, 15:23
|
#5 (permalink)
|
|
Up'n'Coming Member
Join Date: Mar 2006
Location: UK
Posts: 85
|
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?
|
|
|
May 2nd, 2008, 15:34
|
#6 (permalink)
|
Join Date: Jun 2007
Location: uk
Posts: 459
|
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.
|
|
|
May 2nd, 2008, 15:56
|
#7 (permalink)
|
|
New Member
Join Date: Jan 2008
Location: London, UK
Posts: 4
|
re: [SOLVED] my MAMP won't play ball with php
i don't know read apache docs
|
|
|
May 2nd, 2008, 18:29
|
#8 (permalink)
|
|
Reputable Member
Join Date: Jul 2005
Location: Melksham, Wilts, UK
Posts: 294
|
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)
|
|
|
May 9th, 2008, 10:45
|
#9 (permalink)
|
|
Up'n'Coming Member
Join Date: Mar 2006
Location: UK
Posts: 85
|
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?
|
|
|
May 15th, 2008, 14:46
|
#10 (permalink)
|
|
Up'n'Coming Member
Join Date: Mar 2006
Location: UK
Posts: 85
|
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?
|
|
|
| Thread Tools |
|
|
| Rate This Thread |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|