Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    594
    Plugin Contributions
    0

    Default How to use the Local folder to have a local configure

    hi
    I've always seen it, but never use it, but now I was going to take advantage of this, but I don't get it:
    I only see a local folder in the admin/includes

    Should I create a new one on the includes also ?

    I just need to copy the configure files and change the paths ? or this is all happening in the admin/includes/local ?

    I've google it a little, but the word local sends me to different contexts

    Thanks
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

  2. #2
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: How to use the Local folder to have a local configure

    Quote Originally Posted by mesnitu View Post
    Should I create a new one on the includes also ?
    Yes you need to create a "local" folder in includes to.
    Quote Originally Posted by mesnitu View Post
    I just need to copy the configure files and change the paths ? or this is all happening in the admin/includes/local ?
    Yes

  3. #3
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    594
    Plugin Contributions
    0

    Default Re: How to use the Local folder to have a local configure

    Thanks !
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

  4. #4
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: How to use the Local folder to have a local configure

    Also for what it's worth, you don't have to have everything from a standard configure.php file in the local one. Whatever defined constant(s) are not in the local version, but are in the standard one will be loaded when the standard one is processed... So, if for example you have locally mirrored your database including username, password, database name, etc... You could leave off/out the DB information and perhaps only need to include the HTTP_SERVER, HTTPS_SERVER, and for the catalog the directory paths to those or whatever constants have a direct listing of file paths... Other paths that incorporate a constant will point to the directory structure made by substituting the path described in the local file if present.

    But, of course the "safest" way is to just use the whole file. Even though that too can be subjective. :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    594
    Plugin Contributions
    0

    Default Re: How to use the Local folder to have a local configure

    Thanks !
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

  6. #6
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: How to use the Local folder to have a local configure

    Quote Originally Posted by mc12345678 View Post
    Also for what it's worth, you don't have to have everything from a standard configure.php file in the local one. Whatever defined constant(s) are not in the local version, but are in the standard one will be loaded when the standard one is processed... So, if for example you have locally mirrored your database including username, password, database name, etc... You could leave off/out the DB information and perhaps only need to include the HTTP_SERVER, HTTPS_SERVER, and for the catalog the directory paths to those or whatever constants have a direct listing of file paths... Other paths that incorporate a constant will point to the directory structure made by substituting the path described in the local file if present.
    True, and v1.5.5 has simplified this even more by having much smaller configure.php files.
    .
    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. v154 Cannot access install on local serveraccross local network.
    By RMPowell01 in forum Installing on a Windows Server
    Replies: 5
    Last Post: 15 Jan 2015, 06:08 PM
  2. v139h How to configure a local copy of an existing site?
    By romulus in forum General Questions
    Replies: 1
    Last Post: 27 Sep 2012, 09:50 AM
  3. Hide local delivery from those who are not local
    By commdiver in forum Built-in Shipping and Payment Modules
    Replies: 34
    Last Post: 5 Aug 2011, 11:44 PM
  4. How do I make a copy of my live site to use on my local MAMP setup?
    By Treece in forum Installing on a Mac Server
    Replies: 1
    Last Post: 5 May 2011, 02:15 AM
  5. How to link local delivery with local taxes
    By germerican in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 0
    Last Post: 2 Jul 2010, 06:29 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