Page 1 of 1

[Solved] Localhost issue

Posted: Sun Dec 27, 2009 10:53 pm
by Reesen
Hi there.

I'm all new to CMSMS and pretty new to Apache/PHP/MySQL, so might not be a CMSMS issue I have, but here I go:

I just installed the lot: Apache 2.2.6*, PHP 5.2.5*, MySQL 5.0.4* (*=WAMP5 1.7.4) and CMSMS 1.6.6 on a Win 2003 server. The installations wend smooth and all is up and running and everything works on the W2k3 server.

I set up 4 sites on 4 different domains, and copied the CMSMS into each dir, using the same MySQL, and configuring the httpd_vhosts.conf. Also I configured the hosts file on the client, to know the route to the server. I'm so far working on LAN (same VLAN).

BUT when trying to access the sites from a remote computer, I can only access the main page of the sites. I can access all sites, but only the main pages. As soon as I click on a menu link, the url switch to eg. "localhost/index.php?page=higher-end", where it should have had been "domainname.tld/index.php?page=higher-end", why the browser can't show the page.

Does anyone have a clue of how to solve this?

Thanks for your assistance.

~kim

Re: Localhost issue

Posted: Sun Dec 27, 2009 11:07 pm
by Dr.CSS
Localhost can't use domain names, you need a Host to do it that way, or change you host file in windows to direct it there...

Re: Localhost issue

Posted: Mon Dec 28, 2009 1:11 am
by Nullig
Do you have the proper info in the config.php file for each domain?
What is showing for:

    $config['root_url'] = ' ';

for each site?

Nullig

Re: Localhost issue

Posted: Mon Dec 28, 2009 6:47 am
by RonnyK
When installing these environments, you should have used the 'outside' domain-name/ip-address. Then the domain is reachable from the outside.

I use a dyndns.org domain for forwarding to my development-pc. In my hosts-file, I have this added to the:
127.0.0.1 localhost domain.dyndns.org

And all sites are setup with the dyndns.org url instead of localhost. Because of the hosts-file entry I work locally with the dyndns.org entry as well.... So you could change the localhost-lines to your outside-IP to test...

Ronny

Re: Localhost issue

Posted: Mon Dec 28, 2009 10:13 pm
by Reesen
Thank you guys! Combining your replies solved my problem.

~kim