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?
closed as not a real question by random♦ Jul 28 '11 at 13:35
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. For help clarifying this question so that it can be reopened, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.
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
PHP is probably not installed correctly or you haven't installed apache with php support. Are you building all this from source?
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.