I am trying to install and test a development server on my Windows 7 laptop following this tutorial.
However when I ran the script on the browser as:
http://localhost/info.php
I only got:

Does anyone have any pointers for fixing this?
|
I am trying to install and test a development server on my Windows 7 laptop following this tutorial. However when I ran the script on the browser as:
I only got:
Does anyone have any pointers for fixing this? | ||||
|
feedback
|
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. See the FAQ for guidance on how to improve it.
|
PHP is probably not installed correctly or you haven't installed apache with php support. Are you building all this from source? What's happening? Right now you have a php file which, when navigated to, doesn't display results. Instead it displays it's code just like if it was a simple text file. This is cause by PHP not being able to parse the file and interpret it as code. Therefore your browser sees it as text and displays it as such. The comment below (by horatio) outlines what specifically needs to be present for PHP and Apache to work nicely together. Installing PHP isn't the only thing needed, you need to modify apache's config file to tell it how to handle .php files. | |||||
feedback
|
|
You basically need to tell Apache to, instead of sending the text of So it sounds like things messed up where you had to add your PHP interpreter as a handler. Did you perform step 5 of your tutorial correctly? Also, if I'm not mistaken, newer versions of Apache don't use | |||||
feedback
|
C:\Program Files\Apache Software Foundation\Apache2.2\logs\error.log? Have you restarted Apache after enabling PHP? – Lekensteyn Jul 5 '11 at 17:59