Cemetery Posted September 26, 2008 Share Posted September 26, 2008 I've tried this a few times now and can't seem to get this to work. I installed Apache 2.2 and then installed PHP 5. In the installation process of PHP it asked me which web server i want to configure php for so i choose Apache 2.2 and the instalation finished. The httpd.conf file for appache was altered like this #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL PHPIniDir "C:/PHP/" LoadModule php5_module "C:/PHP/php5apache2_2.dll" #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL Also ive tried to manually configure the Using the directions PHP gives but that doesnt seem to work either. I'm using a program called ConTEXT to write my php files. I create a new doccument and i copy pasted the code form this tutorial into the text editor <html> <head> <title>My First PHP Page</title> </head> <body> <?php echo "Hello World!"; ?> </body> </html> Then i save the file as Test.php into the apache htdocs. When i open localhost/test.php all i get is a blank page. Can someone tell me why? Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted September 26, 2008 Share Posted September 26, 2008 To get .php files to cause the web server to invoke the php language engine, the following line must be in the httpd.conf - AddType application/x-httpd-php .php Quote Link to comment Share on other sites More sharing options...
Cemetery Posted September 26, 2008 Author Share Posted September 26, 2008 Where should i add that? I put it in with the other php information like this #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL PHPIniDir "C:/PHP/" LoadModule php5_module "C:/PHP/php5apache2_2.dll" AddType application/x-httpd-php .php #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL When i stop Apache it crashes but it still turns off. When i start apache again it seems ok. So i go to the my localhost/Home.php and it still is a blank page. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted September 26, 2008 Share Posted September 26, 2008 Check your web server error log to see what it might have concerning your problem. The .msi php installer is bad news. Everyone who has attempted to use it has issues. There are many threads on this forum in the php installation and WAMP sections that contain working instructions on how to install php manually from the full .zip package. Quote Link to comment Share on other sites More sharing options...
Cemetery Posted September 26, 2008 Author Share Posted September 26, 2008 ok ty Quote Link to comment Share on other sites More sharing options...
Cemetery Posted September 26, 2008 Author Share Posted September 26, 2008 AH installing the binary of php worked perfectly TY so much. Now I can dive into learning php. 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.