Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Oct 2007
    Posts
    42
    Plugin Contributions
    0

    Default I trashed my configure.php file. How do I recover?

    I accidentally trashed my configure.php file by overwriting it with the dist-configure.php file that I renamed configure.php. (I'm stupid.) Now the store is acting like I need to do an install, but that will wipe out all my data. Is there any way I can reconfigure the configure.php file so that it uses all of my existing files and database tables? Please advise.

    Thanks,
    John

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: I trashed my configure.php file. How do I recover?

    You could replace it from your backup copy ...

    Oh ... I get it ... not backup copy ...

    You could piece back together by viewing the contents of the:
    /admin/includes/configure.php
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jul 2005
    Posts
    537
    Plugin Contributions
    0

    Default Re: I trashed my configure.php file. How do I recover?

    That's where your backups come in handy ... you do make backups, don't you? Especially before you make changes, right? And again after making your changes ... right?

    And you backup your database daily too, right? Just so you have a quick way to recover if anything were to go wrong.

    Ajeh's right -- you'll find some good reference info in your admin configure.php file. Don't copy it exactly though... just use it as a reference.

  4. #4
    Join Date
    Oct 2007
    Posts
    42
    Plugin Contributions
    0

    Default Re: I trashed my configure.php file. How do I recover?

    But the /admin/includes/configure.php file got overwritten, too, so I can't use that as a reference.

    I overwrote both configure.php files because I was trying to turn on SSL. So I grabbed the dist-configure.php files and used those. Don't ask me what I was thinking. It's been a long day. :-)

    There *has* to be some way to manually type the correct settings in those files and re-upload them. I have everything re-typed and uploaded, but the index.php page still redirects to zc_install/index.php.

    What gives? All my settings and products should be in my database, and all my other stuff should be in my includes directory. Wiping out configure.php couldn't have wiped out my whole site and forced a re-install, could it? I don't want to have to re-install.

    Is there anyway that I can tell what is making Zen Cart think that the configure.php file is not right?

    Please help!

    - John

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: I trashed my configure.php file. How do I recover?

    Your data's all in your database, so none of that info would be lost unless you did something to wipe it out.

    YOU SHOULD DO A DATABASE BACKUP ASAP ... just in case ...

    Quote Originally Posted by John Vieth View Post
    Is there anyway that I can tell what is making Zen Cart think that the configure.php file is not right?
    There are 3 possible causes:
    a) configure.php file doesn't exist
    b) DIR_FS_CATALOG setting is incorrect in the file, or any of the paths referenced from it.
    c) any of the DB_XXXXXXX settings are incorrect
    .

    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.

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: I trashed my configure.php file. How do I recover?

    Something I suggest ... which will (kinda) rebuild your configure.php files for you ...

    Do a quick install into the directory:
    /goober

    into the database;
    iama

    and now you have some nice, shiny new configure.php files that you can use and just change the paths ...

    Just ... DO NOT use the *same* database for this install as your existing install's database.
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Oct 2007
    Posts
    42
    Plugin Contributions
    0

    Default Re: I trashed my configure.php file. How do I recover?

    You're a life saver. That worked! Turned out I had manually rebuilt the configure.php files correctly except one line that I just overlooked. I knew what to put in that line, but I overlooked it. Once I installed a test website and used that new configure.php file as a guide, I quickly found the one line that I had overlooked. All's well that ends well.

    Thanks,
    John

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: I trashed my configure.php file. How do I recover?

    Thanks for the update that this worked for you ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. How to set right user permisssons configure.php file?
    By ngocnguyen in forum Basic Configuration
    Replies: 14
    Last Post: 18 Jul 2009, 04:02 PM
  2. configure.php file 644
    By amritg in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 16 May 2009, 02:31 PM
  3. How to change location of configure.php file ?
    By zax80 in forum General Questions
    Replies: 3
    Last Post: 21 Dec 2007, 04:42 PM
  4. Configure.php file permissions.
    By ndnguru in forum Installing on a Linux/Unix Server
    Replies: 20
    Last Post: 1 Aug 2007, 04:06 AM
  5. how to configure my configure.php file
    By vr4indian in forum Basic Configuration
    Replies: 4
    Last Post: 30 Oct 2006, 04:00 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