Zen Cart Logo
Forums / General Questions / How to access local test site on different PC?

How to access local test site on different PC?

Locked

Views: 2,370

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
16 Jul 2007, 7:28 AM
#1
nrg77 avatar

nrg77

Zen Follower

Join Date:
May 2007
Posts:
181
Plugin Contributions:
0

How to access local test site on different PC?

I currently have 2 computers over an internal network and one is hosting a local test site with zen cart amongst many other test sites.

Now I am trying to access the site with a different computer locally by simply typing in the internal ip address slash the web directory. For some reason, all the other site works that DOES NOT have a database. For the zen cart, the text will show up but all the images are not being shown and it displays it kinda mis-aligned on the browser.

Does anyone have a good solution to what I am trying to do?

16 Jul 2007, 8:08 AM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How to access local test site on different PC?

From the description, I'd say it's most likely this.

16 Jul 2007, 8:11 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: How to access local test site on different PC?

You'll need to study home-networking a little.

a. Give your "server" a specific IP address (or at least find out what it currently uses).
b. Use that IP address in your HTTP_SERVER settings in your configure.php files. This is best done during installation (use http://full-ip-address instead of http://localhost for the URLs)
c. Use that IP address when attempting to access the site from another computer on your home network.
d. Be sure to still use localhost for the db setting, as it's only the server that actually talks to the database.

16 Jul 2007, 9:17 AM
#4
nrg77 avatar

nrg77

Zen Follower

Join Date:
May 2007
Posts:
181
Plugin Contributions:
0

Re: How to access local test site on different PC?

DrByte, once again you were right on the money. I've changed the settings to a specific IP address and the site loaded right up. Thanks.

You wouldn't happen to know how to get emails working on a test site would you? For example, after purchasing on ZC, there is a email confirmation email that gets sent out. For now, when I checkout, it gives an email error claiming cannot instaniate mail()....etc....

16 Jul 2007, 9:41 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: How to access local test site on different PC?

nrg77:

You wouldn't happen to know how to get emails working on a test site would you?You need to install a mailserver service on your webserver.
Mercury is one such tool that comes bundled with XAMPP.
There are others.
Refer to the documentation for whichever mailserver tool you install for specific instructions. You'll likely need to configure it to "relay" emails to your ISP in order for them to get out of your webserver and into real accounts.

16 Jul 2007, 5:35 PM
#6
nrg77 avatar

nrg77

Zen Follower

Join Date:
May 2007
Posts:
181
Plugin Contributions:
0

Re: How to access local test site on different PC?

I just so happen to be using XAMPP with mercury but the lack of documentation on XAMPP website didn't show me how to set it up properly. The service is up and running though.