evanct Posted January 7, 2009 Share Posted January 7, 2009 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. Quote Link to comment Share on other sites More sharing options...
evanct Posted January 7, 2009 Author Share Posted January 7, 2009 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.