k_tech Posted April 22, 2007 Share Posted April 22, 2007 hello everyone, after installing apache, mysql, and php, I have trouble creating php page to display in the browser correctly, apache is working after going to http://localhost, it displays a page just fine, but when creating php page with regular notepad and put it in the apache directory, the page displays the php code, I did move the .ini file that comes with php to the windows\system32 folder as the installation cd explains. I'm probably missing something any thoughts to what I'm missing? thanks in advance Quote Link to comment Share on other sites More sharing options...
clown Posted April 24, 2007 Share Posted April 24, 2007 you didn't say vhat is version of Apache, but anyway.. you probably miss to add this line in your httpd.conf file AddType application/x-httpd-php .php and maybe this line too: LoadModule php5_module "c:/php/php5apache2.dll" // offcourse, if you want to use php as an Apache module insted of CGI.. all that you can find on: http://www.php.net/manual/en/install.windows.manual.php good luck Quote Link to comment Share on other sites More sharing options...
pcbguy Posted April 26, 2007 Share Posted April 26, 2007 I installed the newest WAMP package. Does it add those lines of code to the httpd.conf file or do I have to do it manually? I am having the same problem but instead of seeing the php code I get a 404 error. I am using Vista Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted April 26, 2007 Share Posted April 26, 2007 WAMP is a pre-configured package which means it sets everything up for you during installation. You should not need to change anything to get it working. 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.