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 Link to comment https://forums.phpfreaks.com/topic/93690-installing-apache/ Share on other sites More sharing options...
rhodesa Posted February 29, 2008 Share Posted February 29, 2008 Windows or Unix Based? Link to comment https://forums.phpfreaks.com/topic/93690-installing-apache/#findComment-480013 Share on other sites More sharing options...
hrsmith Posted February 29, 2008 Author Share Posted February 29, 2008 windows Link to comment https://forums.phpfreaks.com/topic/93690-installing-apache/#findComment-480014 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 Link to comment https://forums.phpfreaks.com/topic/93690-installing-apache/#findComment-480046 Share on other sites More sharing options...
hrsmith Posted February 29, 2008 Author Share Posted February 29, 2008 that is the one i used! Link to comment https://forums.phpfreaks.com/topic/93690-installing-apache/#findComment-480049 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? Link to comment https://forums.phpfreaks.com/topic/93690-installing-apache/#findComment-480056 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/ Link to comment https://forums.phpfreaks.com/topic/93690-installing-apache/#findComment-480067 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. Link to comment https://forums.phpfreaks.com/topic/93690-installing-apache/#findComment-480090 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! Link to comment https://forums.phpfreaks.com/topic/93690-installing-apache/#findComment-480096 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. Link to comment https://forums.phpfreaks.com/topic/93690-installing-apache/#findComment-480101 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> Link to comment https://forums.phpfreaks.com/topic/93690-installing-apache/#findComment-480110 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/ Link to comment https://forums.phpfreaks.com/topic/93690-installing-apache/#findComment-480121 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 Link to comment https://forums.phpfreaks.com/topic/93690-installing-apache/#findComment-480205 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? Link to comment https://forums.phpfreaks.com/topic/93690-installing-apache/#findComment-480212 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. Link to comment https://forums.phpfreaks.com/topic/93690-installing-apache/#findComment-480255 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 Link to comment https://forums.phpfreaks.com/topic/93690-installing-apache/#findComment-480259 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? Link to comment https://forums.phpfreaks.com/topic/93690-installing-apache/#findComment-480465 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 Link to comment https://forums.phpfreaks.com/topic/93690-installing-apache/#findComment-480532 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? Link to comment https://forums.phpfreaks.com/topic/93690-installing-apache/#findComment-480857 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 Link to comment https://forums.phpfreaks.com/topic/93690-installing-apache/#findComment-482042 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? Link to comment https://forums.phpfreaks.com/topic/93690-installing-apache/#findComment-483363 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 Link to comment https://forums.phpfreaks.com/topic/93690-installing-apache/#findComment-483822 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. Link to comment https://forums.phpfreaks.com/topic/93690-installing-apache/#findComment-489860 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.