Page 1 of 1

Can't reach site

PostPosted: 08. May 2006 23:29
by muppets4
So I downloaded Xampp and installed it, using Joomla CMS software for creating a site. When I try to reach it from work the site doesnt work. The homepage is presented in chaos without images and every link results in a page not found.

This is what's in the httpd.conf file in the Apache directory:
Code: Select all
ServerName localhost

In Joomla, there is a configuration.php file. It states:
Code: Select all
$mosConfig_host = 'localhost';
$mosConfig_icons = '1';
$mosConfig_item_navigation = '1';
$mosConfig_lang = 'english';
$mosConfig_lifetime = '900';
$mosConfig_link_titles = '0';
$mosConfig_list_limit = '30';
$mosConfig_live_site = 'http://82.197.x.x';

In my hosts file there is:

Anyone knows what I'm doing wrong?

PostPosted: 09. May 2006 10:32
by WorldDrknss
This needs to be added to your works HOSTS file also:
82.197.x.x or access your site by http://82.197.x.x, also for your home environment make sure that all firewalls have the neccessary ports open and that your routers have DMZ for port forwarding enable to your pc lan ip address.

also you might want to try this: found in the FAQs section:

Pictures and style Sheets are not displayed!
With some applications (phpEclipse, phpBB etc.) are problems with displaying great files rpictures. This problem can be solved in the /xampp/Apache/conf/httpd.conf these lines
# EnableSendfile offstage
# EnableMMAP offstage
Please activate these lines by removing #:
EnableSendfile offstage
EnableMMAP offstage
Apache restart.

PostPosted: 10. May 2006 19:11
by muppets4
Thanks for the reply, but as you can see in the post, I allready changed the hosts file. The other tip did it. It's working on other computers.

But......... I cannot enter my website myself anymore., localhost, and 82.197.x.x won't work. The last 2 bring me to the loginscreen of my router. Wich is correct, cause I used NAT to forward the ports needed.

I am using Joomla, a CMS application. Cause of that I need to get on my site to add content. Any ideas? I cannot go to the neighbours everyday :D

PostPosted: 10. May 2006 22:49
by WooshMan
To use the web address to view your site and not see your router login screen you need to add this to your hosts file:

local ip address of server Address of site

ir if using the web server use:

I don't understand why is not working though if it is the web server machine you are using.


PostPosted: 11. May 2006 00:07
by muppets4
Thanks for all your help. Still not there, but getting closer.

after changing the hosts file, I can reach the site again. But what happens is that the site is garbled. Images miss totally, only text is presented.


PostPosted: 11. May 2006 02:11
by WooshMan
OK, First of all, should you site be viewable from the outside world? as in do you want the outside world to be able to see your site?

Secondly, when you right click a image (not there i know) what is the address it is trying to get that image from? if it is an ip address and not a valid domain name it will not work as the ip address will direct to your router.

If the above is the case you need to change the settings in your CMS to use the domain name and not the ip address.

$mosConfig_live_site = 'http://82.197.x.x'; that could be causing the problem.

I cannot view your site so I cannot tell you if it is only you who cannot see the images.

Let me know how you get on.


PostPosted: 14. May 2006 18:35
by muppets4
I've been a couple of days in Paris. Very nice overthere btw.....

I'm getting there. When I use my site is reachable to me. The layout is ok and I can use the admin interface. changing the Livesite option in Joomla did that. Thanks!

Now I'd like to know if it is reachable to the outside world. Anyone care to try? Do I need to give out my IP adress for that?

PostPosted: 15. May 2006 11:14
by muppets4
Ok. I'm at work and I can see it's not good. The site looks like the picture above. Suggestions?

PostPosted: 16. May 2006 22:27
by muppets4
When I set the livesite option in Joomla to http://82.197.x.x, my site works perfectly to the outside world, but not to me

When I set the livesite option in Joomla to any other solution, it is viewable to me, but not to the outside world

Anyone a suggestion left?

PostPosted: 17. May 2006 08:25
by WorldDrknss
Code: Select all
$mosConfig_live_site = 'http://82.197.x.x';

Code: Select all
$mosConfig_live_site = '';

and your hosts file should read exactly as bellow:
Code: Select all
# Copyright (c) 1993-1999 Microsoft Corp.
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
# For example:
#          # source server
#              # x client host       localhost

and if you are using the htdocs folder try changing:
Code: Select all
ServerName localhost:80

Code: Select all
ServerName 82.197.x.x:80

Code: Select all

backup all files, save all files, and reboot your servers and pcs because the hosts file is a system file and changes wont take place intill after you reboot.

PostPosted: 17. May 2006 22:01
by muppets4
Thank you for all the time you're putting into this!

I've done exacly as you've suggested. Could you please check if it did work? Overhere it works.

PostPosted: 17. May 2006 22:53
by WorldDrknss
We can't check it because its not a registered domain and we don't have your ipaddress - sorry.