MyBB Community Forums

Full Version: Cannot Access Local Site
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I just installed MyBB 1.8.8 on a local LAMP computer.  It works when accessed using localhost/mybb on the computer that hosts the site; but from another computer on the LAN I see a text version of home page and none of the links allow connecting to the site.  I receive "Unable to Connect" Problem loading page error.  The hosting computer is running Ubuntu-MATE 16.04 (with PHP-7) and the typical LAMP stack with no frills.

The home page appears as that shown in attached image.

Files in my mybb hosted directory are owned by user www-data with Read & Write permissions.  Because the site is working when accessed from the same computer hosting the site I suspect it is not something not set correctly within MyBB but instead some LAN configuration mistake on my part.

My /etc/hosts file on the other computer is set correctly and it can access a Wordpress hosted site on the same computer as MyBB is installed.  From the failing to connect computer using either the IP address or the host name gives the same results (shows text for home page but no links work).

Any ideas on what to look for?

Thanks, I think I am going to like MyBB, once I solve accessing the site over the LAN.  I selected MyBB over the other Forum software options because MyBB supports PHP-7 while others require earlier versions of PHP.
That's because you installed it locally, and therefore the forum url is "http://localhost/mybb". If you want to access it from another device on the network you need to update your forum URL. E.g. "http://192.168.1.2/mybb"
Thanks Nathan, but that is not my problem. What you suggest is how I accessed the site from another computer. Using the IP-Address or the hosting computer's node name gives the result I included in the image.
http://192.168.X.X/mybb or http://computer-node-name/mybb gives the same result.
This local website is hosted in /data/www/htdocs/mybb/ and Apache2 has /data/www/htdocs/ as the web-root path. Other websites (Joomla, Wordpress and basic HTML/PHP) are hosted there and are accessible over the LAN.
It's probably because the Board URL setting is set to localhost, so while you're able to access it over LAN by IP, all the links are pointing to localhost, which then fails on the remote machine. Try change the Board URL to be the IP address.
Matt, Thanks - You Da Man! That fixed it.

I set the Board Settings > Site Details > Board URL to http://IP-Address/mybb and that worked.
I also set the Homepage URL setting to http://IP-Address/mybb/ in case that was needed. They were both using "localhost" vice the IP address.

Thanks again.
Cool Smile The homepage one is for the link in the footer.

You may need to update the cookie domain too, although I'm not 100% sure if it will like an IP address value. If it doesn't, I can just leave it blank.