Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Jun 2006
    Posts
    4
    Plugin Contributions
    0

    Default Works On The Server, No Where Else! (using small internal network LAN)

    Completely bewildered by this behavior. Have done fresh install of zencart ( v1.3.0.2 full ) on RedHat Linux. Did the normal prelimary chmod adjustments prior, and after the install. Using irefox browser on the server with http://localhost looks great and the install is done so the Zencart index.php is in the web server's root directory. No warnings or error messages of any kind show on the storefront when accessing the store directly on the server. Thouht we were ready to start customizing.

    However if I go to any other machine on the LAN and enter http://IPAddress it delivers the text only and no images, and any link selected delivers a 404.
    Same problem occurs if we use http://mydomain.com that points to this server from the outside. Port 80 is open and if I place a sample index.html in place of the index.php and try to access it, it works fine.

    RHEL:
    MySQL 4.1.20,
    Php 4.3.9,
    Apache v2.0.52

    I've also installed Zencart with RHEL and XAMPP and it replicates the problem exactly the same. Works fine on the server, fails everywhere else.

    Hostname: estore

    I've looked at the /admin/includes/configure.php and all four Define statements for HTTP_Server and HTTP_Catalog_Server all have http://localhost ( which is what I thought it should be ).

    Its an understatement to say we missed something but we're completely perplexed!

    Anybody seen anything like this?

    merlot

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Works On The Server, No Where Else!

    This is a typical problem for someone trying to work on a small network.

    "localhost" always means "my computer" ... not necessarily the server.

    Thus, while the server can see localhost as itself properly, Computer A will look for a webserver on Computer A when looking up "localhost", rather than the server.


    You need to use the real IP address instead of localhost when you install Zen Cart, or manually edit the configure.php files to change http://localhost to http://192.168.0.1 or whatever the IP address is.

    Don't touch the line for DATABASE_SERVER ... if it's localhost, it should STAY localhost.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jun 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: Works On The Server, No Where Else!

    OK.

    We have two occurences of configure.php:

    First:
    /htdocs/includes/configure.php. Did a search on "localhost". There's only 1 occurence in line 71 in the 'DB_SERVER', 'localhost', but based on our read of the input we left this as is. Was that correct?

    Second:
    /htdocs/admin/includes/configure.php
    Four occurences each in a define statement, lines 26-29
    define('HTTP_SERVER', 'http://localhost'); we changed to 'http://192.168.1.193');
    The next 3 lines were nearly identical.

    We saved, rebooted and tested again. Ouch, same problem as before.

  4. #4
    Join Date
    Jun 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: Works On The Server, No Where Else!

    Just after hitting the send button we realized we looked at the configure.php's incorrectly. Will revisit that again and update.

    Also, thanks for the previous input.

    -Merlot

  5. #5
    Join Date
    Jun 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: Works On The Server, No Where Else!

    Success!

    We missed one of the localhost entries. We really look forward to customizing this.

    Thanks again

  6. #6
    Join Date
    May 2005
    Posts
    5
    Plugin Contributions
    0

    Re: Works On The Server, No Where Else!

    Quote Originally Posted by merlot
    OK.

    We have two occurences of configure.php:

    First:
    /htdocs/includes/configure.php. Did a search on "localhost". There's only 1 occurence in line 71 in the 'DB_SERVER', 'localhost', but based on our read of the input we left this as is. Was that correct?

    Second:
    /htdocs/admin/includes/configure.php
    Four occurences each in a define statement, lines 26-29
    define('HTTP_SERVER', 'http://localhost'); we changed to 'http://192.168.1.193');
    The next 3 lines were nearly identical.

    We saved, rebooted and tested again. Ouch, same problem as before.

    I notest that this changes are only made ind the admin zone store, and not on the shopping store. I made those changes and when I try to enter the adin zone from the zerver I cannot do it anymore. Now from the server I only access to the shopping cart.
    Is this normal?

    In any case I don't enter the admin zone either the shopping zone from a remote pc.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Works On The Server, No Where Else! (using small internal network LAN)

    If you have things configured properly, you should be able to access from both the server and other PC's
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Aug 2006
    Location
    Upplands Väsby
    Posts
    8
    Plugin Contributions
    0

    xhtml problem Re: Works On The Server, No Where Else! (using small internal network LAN)

    I have the same problem. In configure.php i have my domainadress http://www.mysite.se when the site works outside LAN. When i take a look at the site inside LAN i only shows text becouse of wrong links. So i have to change to ../ or http://192.168.1.38. to se it normal. I have tryed everything but i cant find any easy solution. The best was just write ../ it worked fine internal and erxternal - fine! But when i tryed with IE it failed. Microsoft as usual.
    /Tony

  9. #9
    Join Date
    Jan 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Works On The Server, No Where Else! (using small internal network LAN)

    I have had this problem for 5 month now without finding a solution

  10. #10
    Join Date
    Jan 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Works On The Server, No Where Else! (using small internal network LAN)

    Quote Originally Posted by leifmoni View Post
    I have had this problem for 5 month now without finding a solution
    But it also occure with JOOMLA! and osCommerce - works on server and on LAN but not from outside the Internet ??

    Still searching...

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Internal Server Errors - using Quick Updates & Easy Populate
    By scytheuk in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 12 May 2013, 08:35 PM
  2. Replies: 12
    Last Post: 22 Aug 2011, 05:18 PM
  3. Using Mass Email function gives Internal Server Error??
    By injected in forum General Questions
    Replies: 1
    Last Post: 3 Jun 2010, 07:21 PM
  4. PayPal Express Checkout Internal Server Error Using Go Daddy
    By armwoods in forum PayPal Express Checkout support
    Replies: 0
    Last Post: 11 Dec 2009, 08:33 PM
  5. Internal Server Error using Quick Books (Intuit) pay module
    By johng_yds in forum Addon Payment Modules
    Replies: 0
    Last Post: 13 Apr 2009, 12:59 PM

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