Jump to content

[SOLVED] apache will not read php files


evanct

Recommended Posts

This is Windows Vista. I just installed PHP5 and Apache 2, and apache will not read PHP files. html files work perfectly - when i go to localhost, i get the 'it works!' message - but if I write a hello world script or something, all i'm shown is the text of the script itself. what could be wrong?

 

Oh and this occurs regardless of which browser I use.

Nevermind. i had to add

 

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
LoadModule php5_module "c:/php/php5apache2_2.dll"
SetEnv PHPRC C:/php 

 

to the bottom of httpd.conf and then restart apache.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.