Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Oct 2010
    Posts
    50
    Plugin Contributions
    0

    Default Re: Problem Installing Local copy of Zencart

    Now ... here comes the trick ... I copy /includes/configure.php into /includes/local/configure.php (creating the /includes/local subdirectory if it doesn't already exist) and /YOUR_ADMIN/includes/configure.php into /YOUR_ADMIN/includes/local/configure.php.
    lat9,
    I'm having trouble getting my head around this - probably something I'm just not seeing - but I can't see the effect of these two changes. Can you explain a little further please?
    Cheers
    Last edited by RedSpinnaker; 28 Jan 2013 at 11:17 PM.

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,948
    Plugin Contributions
    96

    Default Re: Problem Installing Local copy of Zencart

    Quote Originally Posted by RedSpinnaker View Post
    lat9,
    I'm having trouble getting my head around this - probably something I'm just not seeing - but I can't see the effect of these two changes. Can you explain a little further please?
    Cheers
    The key is that you can keep the /includes/configure.php and /YOUR_ADMIN/includes/configure.php files to reflect the settings on your hosted store (so they're kind of a backup copy). The Zen Cart startup processing first looks to see if there's a file named /includes/local/configure.php (or /YOUR_ADMIN/includes/local/configure.php for your admin's operation) and uses that file instead if the "standard" one. In essence, the "local" directories reflect the configuration that you're running on your "localhost" copy of your website.

    Like I mentioned before, if you use this method you need to make sure that you NEVER, NEVER, NEVER upload the local/configure.php files to your hosted installation because they will still be used even though your hosted installation has no way of "reaching" those files!

  3. #3
    Join Date
    Oct 2010
    Posts
    50
    Plugin Contributions
    0

    Default Re: Problem Installing Local copy of Zencart

    Quote Originally Posted by lat9 View Post
    The Zen Cart startup processing first looks to see if there's a file named /includes/local/configure.php (or /YOUR_ADMIN/includes/local/configure.php for your admin's operation) and uses that file instead if the "standard" one.
    That's cool thanks lat9 :)

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,948
    Plugin Contributions
    96

    Default Re: Problem Installing Local copy of Zencart

    Glad to help! That little built-in "override" has helped me keep my hosted and localhost'd versions in-sync for the last couple of years!

 

 

Similar Threads

  1. Problem installing local copy of live site
    By NoHug4u in forum Installing on a Windows Server
    Replies: 10
    Last Post: 16 Dec 2014, 08:52 PM
  2. problem installing o local
    By eldiablo13 in forum Installing on a Windows Server
    Replies: 2
    Last Post: 16 Oct 2009, 08:49 PM
  3. Newbie - Installing local copy of existing site
    By agent_44 in forum Installing on a Windows Server
    Replies: 11
    Last Post: 19 Aug 2009, 03:24 PM
  4. Installing local copy on PC -- will this affect anything else?
    By pharry in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 6 Jun 2009, 07:35 PM
  5. Installing a local copy of my website
    By LuminoGlow in forum Installing on a Windows Server
    Replies: 2
    Last Post: 15 Feb 2009, 07:19 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