Thread: No CSS from LAN

Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2007
    Posts
    5
    Plugin Contributions
    0

    Default No CSS from LAN

    I'm doing a test install on my LAN. Installed on a linux box. I can view everything fine from the localhost but I get text only from my other LAN computer. I've tried renaming .htaccess to .htaccess_OFF with no effect.

    I suspect there is an error in my configure.php file but I'm confused as to what it should say. Here is the current setup.
    Code:
    define('HTTP_SERVER', 'http://localhost');
      define('HTTPS_SERVER', 'https://localhost');
    
      // Use secure webserver for checkout procedure?
      define('ENABLE_SSL', 'false');
    
    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
      // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
      define('DIR_WS_CATALOG', '/');
      define('DIR_WS_HTTPS_CATALOG', '/');
    
    define('DIR_WS_IMAGES', 'images/');
      define('DIR_WS_INCLUDES', 'includes/');
      define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
      define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
      define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
      define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
      define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
      define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');
    
      define('DIR_WS_PHPBB', '/');
    
    // * DIR_FS_* = Filesystem directories (local/physical)
      //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
      define('DIR_FS_CATALOG', '/home/user/public_html/');
    My install is in /home/user/public_html. If I change the DIR_WS_CATALOG line to reflect /home/user/public_html I can't see CSS from the localhost. What am I missing?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,378
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: No CSS from LAN

    Your "other LAN computer" sees "localhost" as *itself* ... because that's what "localhost" means.

    If you're going to access it from several computers, you'll have to either use the IP address of the computer it's running on, or give each computer a name and tell each computer what name goes with which IP address ... often via a hosts file.
    .

    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
    Oct 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: No CSS from LAN

    The localhost ip is 192.168.1.3. I have been able to connect to the zen cart all along from the other LAN comp with that ip but I get only text-no graphics. I tried changing httpd.conf from localhost to the ip# and that doesn't help.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,378
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: No CSS from LAN

    You have to use the IP instead of "localhost" in your configure.php files on the website too.
    .

    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.

  5. #5
    Join Date
    Oct 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: No CSS from LAN

    Thanks DrByte

    It seems to be working now

  6. #6
    Join Date
    Oct 2007
    Posts
    3
    Plugin Contributions
    0

    Default Re: No CSS from LAN

    I'm having exactly the same problem on a Windows server...

    HELP!

    I'm tearing my hair out over this silly thing

    I HATE NETWORKING!!! ARGH..

  7. #7
    Join Date
    Jan 2004
    Posts
    66,378
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: No CSS from LAN

    Quote Originally Posted by robmillion View Post
    I'm having exactly the same problem on a Windows server...
    https://www.zen-cart.com/tutorials/i...hp?article=235
    .

    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.

 

 

Similar Threads

  1. Replies: 7
    Last Post: 28 Feb 2012, 10:26 PM
  2. Admin over LAN
    By jks4000 in forum General Questions
    Replies: 5
    Last Post: 16 Jan 2009, 04:01 AM
  3. Not resolving from my LAN
    By pfristoe in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 10 Jul 2008, 04:30 AM
  4. Works On The Server, No Where Else! (using small internal network LAN)
    By merlot in forum Installing on a Linux/Unix Server
    Replies: 15
    Last Post: 21 May 2007, 09:30 AM
  5. Problem to access zen store from a LAN
    By JoelCap in forum Installing on a Windows Server
    Replies: 5
    Last Post: 7 Jul 2006, 07:08 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