Jump to content


Photo

installation help - .php open in text editor


  • Please log in to reply
4 replies to this topic

#1 feelingsheepish

feelingsheepish
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 31 July 2006 - 10:57 PM

Hi,
I have installed PHP with MySQL and Apache.
When i execute the test file (<? phpinfo(); ?>) via my localhost it opens in notepad.
Please help it's been driving me crazy.

Thanks in advance

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 01 August 2006 - 09:33 AM

You are going to http://localhost/ and then clicking on the file you want to run? If you are and its opening up within notepad then Apache appears to bemisconfigured. How have you configured Apache to parse PHP files with the PHP Intepreter? What tutorial did you follow to install Apache, PHP and MySQl.

#3 feelingsheepish

feelingsheepish
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 01 August 2006 - 04:42 PM

Hi,
I am going to http://localhost/test.php and the file is opening into notepad. I have used the tutorial in the book "php and mysql web development" to configure my web server. I included the following lines in my httpd config file.

LoadModule php5_module c:/php/php5apache.dll
AddModule mod_php5.c
AddType aqpplication/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"

I have used this tutorial in the past and everything has worked so don't understand why it is not working.



#4 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 01 August 2006 - 04:50 PM

Did you restart Apache when you made the changes to the httpd.conf file. Also is Apache starting up with any errors/beeps? Other than that I cannot see why it is doing that.

#5 gudmunson

gudmunson
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 02 August 2006 - 11:10 PM

AddType aqpplication/x-httpd-php .php


Dunno if you saw this or have figured it out, but you misspelled application. That could cause your problem.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users