[Solved] Localhost issue

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
Reesen
New Member
New Member
Posts: 2
Joined: Fri Dec 18, 2009 1:37 pm

[Solved] Localhost issue

Post 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
Last edited by Reesen on Mon Dec 28, 2009 10:13 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Localhost issue

Post 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...
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Localhost issue

Post 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
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Localhost issue

Post 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
Reesen
New Member
New Member
Posts: 2
Joined: Fri Dec 18, 2009 1:37 pm

Re: Localhost issue

Post by Reesen »

Thank you guys! Combining your replies solved my problem.

~kim
Locked

Return to “[locked] Installation, Setup and Upgrade”