hrsmith Posted February 29, 2008 Share Posted February 29, 2008 Hi I have just installed Apache and tried going to http://localhost/ to check that it installed correctly and it hasn't worked, can anyone tell me how to get it to work? Thanks Howard Quote Link to comment Share on other sites More sharing options...
rhodesa Posted February 29, 2008 Share Posted February 29, 2008 Windows or Unix Based? Quote Link to comment Share on other sites More sharing options...
hrsmith Posted February 29, 2008 Author Share Posted February 29, 2008 windows Quote Link to comment Share on other sites More sharing options...
rhodesa Posted February 29, 2008 Share Posted February 29, 2008 This is the step-by-step guide I use. I would give it a thorough look over and see if you missed a step http://www.php-mysql-tutorial.com/install-apache-php-mysql.php Quote Link to comment Share on other sites More sharing options...
hrsmith Posted February 29, 2008 Author Share Posted February 29, 2008 that is the one i used! Quote Link to comment Share on other sites More sharing options...
rhodesa Posted February 29, 2008 Share Posted February 29, 2008 So Apache Monitor lists an instance of Apache and has the green 'active' icon next to it? What happens when you go to http://localhost/ ? Blank page, server not found, file not found? Quote Link to comment Share on other sites More sharing options...
hrsmith Posted February 29, 2008 Author Share Posted February 29, 2008 apache monitor lists an instance of Apache2.2 and has the green active symbol next to it. when I go to http://localhost/ it tries to connect for ages and then comes up with the page could not be displayed page (it does the same if i try http://127.0.0.1/ Quote Link to comment Share on other sites More sharing options...
rhodesa Posted February 29, 2008 Share Posted February 29, 2008 In your apache config, what do you have DocumentRoot set to and what kind of index file do you have in that directory? I would make sure you have an index.html in that directory with some simple text as it's contents, like "Hello World" or something. Quote Link to comment Share on other sites More sharing options...
hrsmith Posted February 29, 2008 Author Share Posted February 29, 2008 Aaron I'm afraid you're going to have to explain where i can find these, I haven't ever used Apache before! Quote Link to comment Share on other sites More sharing options...
rhodesa Posted February 29, 2008 Share Posted February 29, 2008 If you don't know where your Apache config is, and you don't know what DocumentRoot is, then you didn't follow the tutorial posted before. Quote Link to comment Share on other sites More sharing options...
hrsmith Posted February 29, 2008 Author Share Posted February 29, 2008 DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs" <html><body><h1>It works!</h1></body></html> Quote Link to comment Share on other sites More sharing options...
rhodesa Posted February 29, 2008 Share Posted February 29, 2008 Hum. Well, if it's coming up with a "page could not be displayed" then it's definitely finding apache. How far through the tutorial did you get? If you have already done the PHP portion, it could be that causing problems too. Are you absolutely sure you didn't change anything else in the htdocs.conf file? The only other things I can think of... -Try rebooting your system, windows can funky like that. -Try uninstalling/reinstalling Apache. I follow that tutorial every time I install apache/PHP and have never had a problem -Get rid of the custom Apache install and just use WAMP: http://www.wampserver.com/en/ Quote Link to comment Share on other sites More sharing options...
hrsmith Posted February 29, 2008 Author Share Posted February 29, 2008 I just tried rebooting the system and trying again. It seems that http://localhost/ is just giving up and leaving the previous page there as when i just tried it has the new tab page after it had stopped. I had already installed php before i installed apache I didn't change anything at all in htdocs.conf Quote Link to comment Share on other sites More sharing options...
rhodesa Posted February 29, 2008 Share Posted February 29, 2008 I'm not sure then. Sorry :/ Someone else have any ideas? Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted February 29, 2008 Share Posted February 29, 2008 Attach you httpd.conf file here for me to review. Make sure your firewall isn't blocking port 80. Quote Link to comment Share on other sites More sharing options...
rhodesa Posted February 29, 2008 Share Posted February 29, 2008 Ew...good call. I have my bets on a firewall Quote Link to comment Share on other sites More sharing options...
hrsmith Posted February 29, 2008 Author Share Posted February 29, 2008 attached as .txt as .conf not allowed how do i check the firewall? Quote Link to comment Share on other sites More sharing options...
hrsmith Posted February 29, 2008 Author Share Posted February 29, 2008 just had a look and my firewall is switched off Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted March 1, 2008 Share Posted March 1, 2008 Not sure whats going on, your configuration works fine for me. I'd say uninstall Apache, after Apache has been uninstalled delete the Apache Software Foundation folder from C:\Program Files if is left over and then reinstall Apache. If still doesn't work, open the httpd.conf and goto line 53 which should be this: Listen 80 and change 80 to 8080 then scroll down go to line 145 which should be this: ServerName localhost:80 Change :80 to :8080 Save your httpd.conf and restart Apache. Open your browser and go to http://localhost:8080/ is anything displayed now? Quote Link to comment Share on other sites More sharing options...
hairul Posted March 3, 2008 Share Posted March 3, 2008 Better you use wamp2.0a the latest verison Make sure port 80 no software using it go to cmd netstat to check port either active or not Quote Link to comment Share on other sites More sharing options...
hrsmith Posted March 4, 2008 Author Share Posted March 4, 2008 I tried uninstalling and reinstalling and it hasn't worked where is cmd netstat? Quote Link to comment Share on other sites More sharing options...
rhodesa Posted March 5, 2008 Share Posted March 5, 2008 I tried uninstalling and reinstalling and it hasn't worked where is cmd netstat? Start -> Run Type in 'cmd' (no quotes though) and click OK In the new window, type 'netstat' (again no quotes) and hit Enter Quote Link to comment Share on other sites More sharing options...
eddierosenthal Posted March 11, 2008 Share Posted March 11, 2008 you might make sure there is an entry in your etc/hosts file for the machine. in windows go to WINDOWS/system32/drivers/etc/hosts and make an entry 127.0.0.1 localhost save exit and reboot and see if that helps. 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.