breeze351 Posted March 21, 2012 Share Posted March 21, 2012 I've installed PHP but when I try to run a page in the browser I get a message to open the file or save it. If you click open, it opens the page in Dreamweaver. I went to a command line and ran php from there. It worked. I'm running Win 7 Any ideas what I did wrong? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/259429-php-will-not-run-in-ie-or-firefox/ Share on other sites More sharing options...
scootstah Posted March 21, 2012 Share Posted March 21, 2012 Did you install Apache or some other HTTP server? Quote Link to comment https://forums.phpfreaks.com/topic/259429-php-will-not-run-in-ie-or-firefox/#findComment-1329889 Share on other sites More sharing options...
AyKay47 Posted March 21, 2012 Share Posted March 21, 2012 I try to run a page in the browser I get a message to open the file or save it. yeah, you haven't installed WAMP Quote Link to comment https://forums.phpfreaks.com/topic/259429-php-will-not-run-in-ie-or-firefox/#findComment-1329893 Share on other sites More sharing options...
onlyican Posted March 21, 2012 Share Posted March 21, 2012 I was about to say could be LAMP but then I noticed they tried IE, so WAMP / WIMP You require Apache and MySQL (dont bother trying to use IIS) Quote Link to comment https://forums.phpfreaks.com/topic/259429-php-will-not-run-in-ie-or-firefox/#findComment-1329896 Share on other sites More sharing options...
breeze351 Posted March 21, 2012 Author Share Posted March 21, 2012 Ok I installed appache but I still have iis on the box. How do I set appache as the default web server? Quote Link to comment https://forums.phpfreaks.com/topic/259429-php-will-not-run-in-ie-or-firefox/#findComment-1329972 Share on other sites More sharing options...
chrispulliam Posted March 21, 2012 Share Posted March 21, 2012 I just did this the other day. Microsoft has a plugin for installing php http://php.iis.net/ it works like a dream Quote Link to comment https://forums.phpfreaks.com/topic/259429-php-will-not-run-in-ie-or-firefox/#findComment-1329974 Share on other sites More sharing options...
scootstah Posted March 21, 2012 Share Posted March 21, 2012 Ok I installed appache but I still have iis on the box. How do I set appache as the default web server? Either turn off IIS or configure the virtual host in Apache to have a different port. Quote Link to comment https://forums.phpfreaks.com/topic/259429-php-will-not-run-in-ie-or-firefox/#findComment-1330016 Share on other sites More sharing options...
breeze351 Posted March 22, 2012 Author Share Posted March 22, 2012 I disabled IIS. But when I run it under appache it just shows the source code. <html> <head> <title>PHP Test</title> </head> <body> <?php phpinfo(); ?> </body> </html> As I said before, this works from a DOS prompt, but I can't get it to work in a browser. PS. I hate Win 7. They've hidden everything. I've set up sites from 2000 to 2008 and this is driving me nuts! Thanks Quote Link to comment https://forums.phpfreaks.com/topic/259429-php-will-not-run-in-ie-or-firefox/#findComment-1330254 Share on other sites More sharing options...
litebearer Posted March 22, 2012 Share Posted March 22, 2012 just an idea - http://www.howtogeek.com/howto/14998/turn-your-flash-drive-into-a-portable-web-server/ Quote Link to comment https://forums.phpfreaks.com/topic/259429-php-will-not-run-in-ie-or-firefox/#findComment-1330258 Share on other sites More sharing options...
scootstah Posted March 23, 2012 Share Posted March 23, 2012 I disabled IIS. But when I run it under appache it just shows the source code. <html> <head> <title>PHP Test</title> </head> <body> <?php phpinfo(); ?> </body> </html> As I said before, this works from a DOS prompt, but I can't get it to work in a browser. PS. I hate Win 7. They've hidden everything. I've set up sites from 2000 to 2008 and this is driving me nuts! Thanks You have to tell Apache how to handle PHP files. There's a lot of configuration involved. If you don't know what you're doing, just download XAMPP. XAMPP is a pre-configured WAMP (Windows Apache Mysql PHP) stack that works right out of the box, no configuration needed. Quote Link to comment https://forums.phpfreaks.com/topic/259429-php-will-not-run-in-ie-or-firefox/#findComment-1330365 Share on other sites More sharing options...
breeze351 Posted March 26, 2012 Author Share Posted March 26, 2012 I've installed wampp. But during the install it wouldn't talk to port 80 or 400 something (I forgot to write that one down). I've uninstalled IIS so I don't know what could be using it. It also wouldn't open the port for MYSQL Quote Link to comment https://forums.phpfreaks.com/topic/259429-php-will-not-run-in-ie-or-firefox/#findComment-1331317 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.