View Full Version : phpbb can't connect to localhost/phpbb
Eddy Gordo from Tekken
August 10th, 2006, 11:01 PM
I installed phpbb2 set it up tested it on my home network. tested it on remote computers. all worked. today i wanted to make admin changes so i went tried http://localhost/phpbb and get the unable to connect error. from my xp comp on the network i can see the server using the WAN address. i am able to log in with admin priveleges from xp, but i can't even make a localhost connection from the computer thats hosting...i don't know where to begin looking to remedy this...
macca87
August 11th, 2006, 03:55 AM
Can you access the web server at all?, not just the phpbb section?.
If you cant access the web server at all...
perhaps the hosts file does not contain localhost?, /etc/hosts
also have u tried http://127.0.0.1/ instead of localhost?,
If that doesnt work perhaps the loopback interface is not activated in /etc/network/interfaces. Ensure that it is.
Also your web server conf file might be disallowing connections from localhost.
just a few ideas hope this helps
Eddy Gordo from Tekken
August 11th, 2006, 07:47 AM
The etc/host file contains localhost in the first line:
127.0.0.1 localhost.localdomain localhost
the etc/network/interfaces file contains loopback in the 2nd line:
auto lo
iface lo inet loopback
if i use the WAN addy, i can get on the server. if i use localhost, i get can't-connect-error. which apache2 conf files should be looking in for localhost? i looked in http.conf, apache2.conf. the string localhost doesn't exsist in either. where does it go?
macca87
August 11th, 2006, 09:36 AM
Could you please post the exact error message?
az
August 11th, 2006, 10:09 AM
How did you install LAMP and phpbb2? It sounds like you either removed the libapache2-mod-php5 package, you changed or renamed the database or that the mysql daemon is not being started at boot like it should.
https://help.ubuntu.com/community/PhpBB2
Eddy Gordo from Tekken
August 12th, 2006, 10:25 AM
Could you please post the exact error message?
Unable to connect
Firefox can't establish a connection to the server at localhost.
* The site could be temporarily unavailable or too busy. Try again in a few moments.
* If you are unable to load any pages, check your computer's network
connection.
* If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
i installed following:
www.howtoforge.com/book/print/1332
libapache2-mod-php5 is installed
using the WAN address, i can access the server from my networked XP, and my friend is able to connect from outside my network. the server pc can access it using the WAN address, but not the localhost address
Eddy Gordo from Tekken
August 14th, 2006, 12:27 PM
i upgraded to latest version of apache....mistake?
Eddy Gordo from Tekken
August 16th, 2006, 07:51 AM
the phpbb directory is in:
/var/www/phpbb
am i missing a link in
/etc/apache2
which apache2 conf files should be looking in for localhost? i looked in http.conf, apache2.conf. the string localhost doesn't exsist in either. where does it go?
Eddy Gordo from Tekken
August 17th, 2006, 08:28 PM
i fixed it.
etc/apache2/ports was not listening to 80. i'd switched it to 8000 because of ISP issues. so i had to add the port to the addy
http://localhost:8000/phpbb
i edited the file to listen to port 80 as well. although the ISP has issues, i can use it on my network.
thanks to those that helped.
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.