midwest_daniel Posted September 23, 2009 Share Posted September 23, 2009 Trying to run my first PHP script. [Apache & PHP were installed from the same bundle]. Server is up. In the IE8 address bar I key in http://myServerName/folderInRootDir/script1.php for my script within the folder (referred to here as folderInRootDir) in wwwroot. I get browser msg "IE cannot display the webpage." I am using the correct server name per the config file. What am I missing? Link to comment https://forums.phpfreaks.com/topic/175183-php-script-wont-run-in-ie/ Share on other sites More sharing options...
Handy PHP Posted September 23, 2009 Share Posted September 23, 2009 Well, not much info here but I'll give you a few questions to answer so you can get some help: Have you tried a plain HTML document on the server? Is this your local computer that you have set a test server up on? Have you tried "localhost", 127.0.0.1, or the IP address assigned to the computer that the server is running on for the domain name (after the http://)? Though Apache and PHP were bundled, did you double check to see that Apache aliases were set for PHP? Are you using some domain name with your home server and if so, have you used a service like openDNS to point the domain to your homes IP address? Answering these questions will allow someone like myself to get you the answer you need to resolve your issue. Handy PHP Link to comment https://forums.phpfreaks.com/topic/175183-php-script-wont-run-in-ie/#findComment-923333 Share on other sites More sharing options...
midwest_daniel Posted September 23, 2009 Author Share Posted September 23, 2009 To answer your questions: Have you tried a plain HTML document on the server? Yes. No dice. Is this your local computer that you have set a test server up on? Yes. Have you tried "localhost", 127.0.0.1, or the IP address assigned to the computer that the server is running on for the domain name (after the http://)? I tried localhost instead of the server name, and that works : ) Though Apache and PHP were bundled, did you double check to see that Apache aliases were set for PHP? No. Are you using some domain name with your home server and if so, have you used a service like openDNS to point the domain to your homes IP address? No and No. At the moment I seem to be OK using localhost. Thanks. Link to comment https://forums.phpfreaks.com/topic/175183-php-script-wont-run-in-ie/#findComment-923347 Share on other sites More sharing options...
ozestretch Posted September 23, 2009 Share Posted September 23, 2009 you may need to consider letting your localhost / use vhosts/alias. I wrote a post a while ago on how I set it up on a win machine running xamp.. but could help with your set up http://www.ozestretch.com/forum/viewtopic.php?f=6&t=5 Link to comment https://forums.phpfreaks.com/topic/175183-php-script-wont-run-in-ie/#findComment-923354 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.