Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Mar 2011
    Posts
    9
    Plugin Contributions
    0

    help question Localhost works, remote machine sees only text.

    Hi everyone, I'm new on the forum so please bear with me for while First of all, I think my problem might not be Zen Cart, but the things what are needed to be done before installing it.

    For testing purposes I have installed on windows xp (SP3) system:

    - MySQL Server 5.5
    - PHP 5.3.6
    - Apache HTTP Server 2.2
    - myphpAdmin (for database control)
    (When i refer to localhost in my text, I mean this computer)

    Installing ZenCart went ok. Viewing catalog from localhost/zen-cart/ is ok, and adminpanel from localhost adminfolder/ is ok. The problem is that when I go localhost/zen-cart/ from a remote machine, all I can see is frontpage texts without any images and styling (don't mean the actual code). And clicking on any links give browser error.

    So is this related to php, mysql, apache or zencart files?
    Remote computer can view other html pages with stylesheets ok on localhost.

    And do I need to say..this happens with osCommerce also.

  2. #2
    Join Date
    Mar 2011
    Posts
    9
    Plugin Contributions
    0

    Default Re: Localhost works, remote machine sees only text.

    http://img576.imageshack.us/i/81554056.jpg/

    for visual explanation of the problem. Feels like, remote machine can't access any images or stylesheets in other folders..
    But those texts aren't in /zen-cart/index.php so it gets em from somewhere out of that main folder.

    I feel really ignorant right now

  3. #3
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Localhost works, remote machine sees only text.

    Need to point your zencart install on local computer to IP address..
    see
    http://www.dyndns.com/services/dns/dyndns/

  4. #4
    Join Date
    Mar 2011
    Posts
    9
    Plugin Contributions
    0

    Default Solved: Localhost works, remote machine sees only text.

    Quote Originally Posted by misty View Post
    Need to point your zencart install on local computer to IP address..
    see
    http://www.dyndns.com/services/dns/dyndns/
    Thanks, for pointing it out.
    from
    • define('HTTP_SERVER', 'http://localhost');
    • define('HTTPS_SERVER', 'https://localhost');

    to
    • define('HTTP_SERVER', 'http://192.168.0.103');
    • define('HTTPS_SERVER', 'https://192.168.0.103');

    (ssl not in use in case someone wonders).
    Last edited by Triggeri; 27 Mar 2011 at 07:22 PM. Reason: Solved

  5. #5
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Localhost works, remote machine sees only text.

    That configuration will only allow other computers connected to your router to view zencart.
    Outside world(Worldwide web) can only view if given static IP address.
    Hence dyndns or no-ip also required.

  6. #6
    Join Date
    Mar 2011
    Posts
    9
    Plugin Contributions
    0

    Default Re: Localhost works, remote machine sees only text.

    Quote Originally Posted by misty View Post
    That configuration will only allow other computers connected to your router to view zencart.
    Outside world(Worldwide web) can only view if given static IP address.
    Hence dyndns or no-ip also required.
    "For testing purposes"

  7. #7
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Localhost works, remote machine sees only text.

    Hmmm....good luck !!

  8. #8
    Join Date
    Mar 2011
    Posts
    9
    Plugin Contributions
    0

    Default Re: Localhost works, remote machine sees only text.

    It allows me already to do modifications and check how things work and how much it's visually possible to tweak Zen Cart. Until yesterday I was going for osCommerce, but now...may the best layout+module combo win

  9. #9
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Localhost works, remote machine sees only text.

    Yes, tested that way many times myself BUT not with way you have it configured because not ideal to test payments, shipping, orders etc.

  10. #10
    Join Date
    Mar 2011
    Posts
    9
    Plugin Contributions
    0

    Default Re: Localhost works, remote machine sees only text.

    When the dawn breaks, I'll get a webserver. Nothing moves here during weekend and I'm impatient

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 cannot launch zc_instal on remote server; identical config works on local server
    By BevCox in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 11 May 2012, 12:04 AM
  2. Works great on host machine, but css/images don't load anywhere else...
    By bleudeciel16 in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 29 Jan 2010, 05:23 AM
  3. How do I create mysql db on localhost machine?
    By dml311071 in forum Installing on a Windows Server
    Replies: 2
    Last Post: 24 Sep 2007, 09:54 AM
  4. Fckeditor not works online, it works only offline why?
    By monak83 in forum General Questions
    Replies: 1
    Last Post: 3 Mar 2007, 06:34 PM
  5. Replies: 17
    Last Post: 26 Jul 2006, 06:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR