Results 1 to 10 of 10
  1. #1
    Join Date
    Aug 2006
    Posts
    111
    Plugin Contributions
    0

    Default Moving the database...

    Well, I made the whole database in a /shop/ folder in my website, but now that I'm finally pretty-much ready for it to be accessed by the public, I'd like to to be accessable through just typing in the domain name.

    What's the simpliest method of me achieving this?

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

    Default Re: Moving the database...

    .

    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
    Aug 2006
    Posts
    111
    Plugin Contributions
    0

    Default Re: Moving the database...

    Thanks. that was definately helpful, but when I go to my root site, nothing shows up?

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

    Default Re: Moving the database...

    if your store is currently in /public_html/shop/
    then you're moving it to /public_html/
    .

    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
    Aug 2006
    Posts
    111
    Plugin Contributions
    0

    Default Re: Moving the database...

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/content/a/p/i/apinkpony/html/index.php:2) in /home/content/a/p/i/apinkpony/html/includes/functions/sessions.php on line 111
    I don't know what I did, as I haven't touched that file in any way, shape, or form. I know it says its the cache file? But all I did was as directed by the wiki-file for the cache.

    Oh and, now I see :
    Warning: main(/home/content/a/p/i/apinkpony/html/shop/includes/filenames.php): failed to open stream: No such file or directory in /home/content/a/p/i/apinkpony/html/admin/includes/application_top.php on line 100

    Warning: main(/home/content/a/p/i/apinkpony/html/shop/includes/filenames.php): failed to open stream: No such file or directory in /home/content/a/p/i/apinkpony/html/admin/includes/application_top.php on line 100

    Fatal error: main(): Failed opening required '/home/content/a/p/i/apinkpony/html/shop/includes/filenames.php' (include_path='.:/usr/local/lib/php') in /home/content/a/p/i/apinkpony/html/admin/includes/application_top.php on line 100
    when I try to go to my admin. I'm sorry I'm such a beginner.

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

    Default Re: Moving the database...

    output started at /home/content/a/p/i/apinkpony/html/index.php:2
    That means there is an unexpectd blank line on line 2 of the indicated index.php file. You may find that the file is double-spaced for some reason, perhaps related to your FTP program or your server config. If you never changed that file (and changes to that file are almost never needed), then you could simply re-upload an original. if the problem persists, you'll need to open it and edit it...
    .

    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.

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

    Default Re: Moving the database...

    /home/content/a/p/i/apinkpony/html/shop/includes/filenames.php): failed to open stream: No such file or directory in /home/content/a/p/i/apinkpony/html/admin/includes/application_top.php
    This tells me that your /admin/includes/configure.php didn't get updated fully when you renamed. Are all these lines correct on yours?
    Code:
      
      define('DIR_WS_ADMIN', '/admin/');
      define('DIR_WS_CATALOG', '/');
      define('DIR_WS_HTTPS_ADMIN', '/admin/');
      define('DIR_WS_HTTPS_CATALOG', '/');
    
    ... and...
    
      define('DIR_FS_ADMIN', '/home/content/a/p/i/apinkpony/html/admin/');
      define('DIR_FS_CATALOG', '/home/content/a/p/i/apinkpony/html/');
    If you have any differences, please post them here
    .

    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
    Posts
    111
    Plugin Contributions
    0

    Default Re: Moving the database...

    Somehow all my edits to admin/includes/configure.php, didnt get updated, but I redid it and now I can log into the admin properly.

    However, I haven't made any edits to index.php, and I'm not really sure where to get one? I mean, the download file is like, zipped up and has to be installed, correct?

  9. #9
    Join Date
    Aug 2006
    Posts
    111
    Plugin Contributions
    0

    Default Re: Moving the database...

    Darned. Well, I didn't personally edit the index.php, but I'm guessing it somehow got edited? Because, I uploaded the original one... and now...

    Warning: main(includes/templates/template_default/templates/tpl__default.php): failed to open stream: No such file or directory in /home/content/a/p/i/apinkpony/html/includes/templates/template_default/common/tpl_main_page.php on line 74

    Warning: main(includes/templates/template_default/templates/tpl__default.php): failed to open stream: No such file or directory in /home/content/a/p/i/apinkpony/html/includes/templates/template_default/common/tpl_main_page.php on line 74

    Fatal error: main(): Failed opening required 'includes/templates/template_default/templates/tpl__default.php' (include_path='.:/usr/local/lib/php') in /home/content/a/p/i/apinkpony/html/includes/templates/template_default/common/tpl_main_page.php on line 74
    So from that I'm just going to take an educated guess that some of the template edits I did DID edit the index.php file, even though I haven't done any major modifications.

  10. #10
    Join Date
    Aug 2006
    Posts
    111
    Plugin Contributions
    0

    Default Re: Moving the database...

    I found one on my computer that must be post-edit pre-problems, uploaded that and now everything seems to be working fine at the moment...

 

 

Similar Threads

  1. Moving Old Database to New Database
    By kdipaolo in forum General Questions
    Replies: 1
    Last Post: 23 Nov 2011, 06:34 PM
  2. Moving the ZenCart Database
    By awk_grep in forum General Questions
    Replies: 1
    Last Post: 15 Apr 2010, 04:32 PM
  3. moving database
    By ohmmicronics in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 24 Jan 2010, 06:26 PM
  4. Moving site contents to different host, but keeping the same database?
    By yelow in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 10 Feb 2009, 05:10 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