Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24
  1. #11
    Join Date
    Feb 2012
    Posts
    427
    Plugin Contributions
    0

    Default Re: Moving site from sub directory errors

    Is there something I can show you so you would be able to see what I have done wrong. Maybe I have put it all in the wrong place? changed the files wrong?

    Thankyou
    A

  2. #12
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Moving site from sub directory errors

    Your problems are not related to zencart. What are you doing in the FTP folder?

    You need to learn how to manage your hosting environment, and that's not something that gets taught here.
    20 years a Zencart User

  3. #13
    Join Date
    Feb 2012
    Posts
    427
    Plugin Contributions
    0

    Default Re: Moving site from sub directory errors

    I have nothing in public_ftp, just an incoming folder.
    Do you think it will be best to back it all up and re upload it all? If so I would need to know for sure that all the zencart products and settings are backed up, however, if I do that, my configure files would need to be different wouldn't they.

    I would probably never have started this if I realised it wouldn't be straight forward.

    Really dont know what to do. would someone be able to go in there and look around?

  4. #14
    Join Date
    Feb 2012
    Posts
    427
    Plugin Contributions
    0

    Default Re: Moving site from sub directory errors

    Hi,
    I have posted both configure.php files so you can see them...

    <?php
    /**
    * @package Configuration Settings circa 1.5.0
    * @copyright Copyright 2003-2011 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * File Built by zc_install on 2012-03-02 09:19:57
    */


    /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
    /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/

    // Define the webserver and path parameters
    // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
    // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
    define('HTTP_SERVER', 'http://craftjam.co.uk');
    define('HTTPS_SERVER', 'https://craftjam.co.uk');

    // 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', '/public_html');
    define('DIR_WS_HTTPS_CATALOG', '/public_html');

    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/craftja1/public_html');

    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
    define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', 'zen_');
    define('DB_CHARSET', 'latin1');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', '');
    define('DB_SERVER_PASSWORD', '');
    define('DB_DATABASE', '');

    // The next 2 "defines" are for SQL cache support.
    // For SQL_CACHE_METHOD, you can select from: none, database, or file
    // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
    // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
    // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
    define('SQL_CACHE_METHOD', 'none');
    define('DIR_FS_SQL_CACHE', '/home/craftja1/public_html/cache');

    // EOF


    This is the admin one...


    <?php

    /**

    * @package Configuration Settings circa 1.5.0

    * @copyright Copyright 2003-2011 Zen Cart Development Team

    * @copyright Portions Copyright 2003 osCommerce

    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

    * File Built by zc_install on 2012-03-02 09:19:57

    */





    /*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. ***********/

    /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/



    /**

    * WE RECOMMEND THAT YOU USE SSL PROTECTION FOR YOUR ENTIRE ADMIN:

    * To do that, make sure you use a "https:" URL for BOTH the HTTP_SERVER and HTTPS_SERVER entries:

    */

    define('HTTP_SERVER', 'http://craftjam.co.uk');

    define('HTTPS_SERVER', 'https://craftjam.co.uk');

    define('HTTP_CATALOG_SERVER', 'http://craftjam.co.uk');

    define('HTTPS_CATALOG_SERVER', 'https://craftjam.co.uk');



    // secure webserver for admin? Valid choices are 'true' or 'false' (including quotes).

    define('ENABLE_SSL_ADMIN', 'false');



    // secure webserver for storefront? Valid choices are 'true' or 'false' (including quotes).

    define('ENABLE_SSL_CATALOG', '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)

    $t1 = parse_url(HTTP_SERVER);$p1 = $t1['path'];$t2 = parse_url(HTTPS_SERVER);$p2 = $t2['path'];



    define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p1) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');

    define('DIR_WS_CATALOG', '/public_html');

    define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p2) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');

    define('DIR_WS_HTTPS_CATALOG', '/public_html');



    define('DIR_WS_IMAGES', 'images/');

    define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

    define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');

    define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');

    define('DIR_WS_INCLUDES', 'includes/');

    define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

    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_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');



    // * DIR_FS_* = Filesystem directories (local/physical)

    define('DIR_FS_ADMIN', realpath(dirname(__FILE__) . '/../') . '/');

    //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/craftja1/public_html');



    define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

    define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

    define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

    define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');

    define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');



    // define our database connection

    define('DB_TYPE', 'mysql');

    define('DB_PREFIX', 'zen_');

    define('DB_CHARSET', 'latin1');

    define('DB_SERVER', 'localhost');

    define('DB_SERVER_USERNAME', '');

    define('DB_SERVER_PASSWORD', '');

    define('DB_DATABASE', '');



    // The next 2 "defines" are for SQL cache support.

    // For SQL_CACHE_METHOD, you can select from: none, database, or file

    // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache

    // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder

    // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash

    define('SQL_CACHE_METHOD', 'none');

    define('DIR_FS_SQL_CACHE', '/home/craftja1/public_html/cache');





    // Define the webserver and path parameters

    // Main webserver: eg-http://www.your_domain.com -

    // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com

    // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com

    // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com

    // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.com

    /*

    * URLs for your site will be built via:

    * HTTP_SERVER plus DIR_WS_ADMIN or

    * HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or

    * HTTP_SERVER plus DIR_WS_CATALOG or

    * HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG

    * ...depending on your system configuration settings

    */

    // EOF

  5. #15
    Join Date
    Feb 2012
    Posts
    427
    Plugin Contributions
    0

    Default Re: Moving site from sub directory errors

    I now have no admin since i have re uploaded these files after checking them

  6. #16
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Moving site from sub directory errors

    Quote Originally Posted by rainbow_pixie_star View Post
    // * 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', '/public_html');
    define('DIR_WS_HTTPS_CATALOG', '/public_html');
    Unless your folder structure looks like
    /public_html/public_html/ then these entries are wrong.
    Change them to
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '/');

    Needs to be done in both config files


    At a glance, everything else look OK.

    Cheers
    Rod
    Last edited by RodG; 15 Apr 2012 at 02:22 PM.

  7. #17
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Moving site from sub directory errors

    Quote Originally Posted by rainbow_pixie_star View Post
    I now have no admin since i have re uploaded these files after checking them
    Did you re-upload to the folder called 'admin' or the renamed admin?

    What is the error message you are getting?

    Cheers
    Rod

  8. #18
    Join Date
    Feb 2012
    Posts
    427
    Plugin Contributions
    0

    Default Re: Moving site from sub directory errors

    I have changed the con fig files (2 posts back)
    As for the last post I have re uploaded the admin but the admil login page is missing when I go to it in my browser.

    I am completely lost here!

  9. #19
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Moving site from sub directory errors

    Quote Originally Posted by rainbow_pixie_star View Post
    I have changed the con fig files (2 posts back)
    As for the last post I have re uploaded the admin but the admil login page is missing when I go to it in my browser.

    I am completely lost here!
    Me too now. I'm not sure if 'admil' is a typo, or the name of your admin folder.

    If the login page is 'missing' it generally means that your files have been uploaded to a different folder than the one you are using to trying to connect too.

    EG, if your admin folder is called "myadmin" then the admin files will need to be located in this folder (and not one called 'admin') and the URL to connect to will also have the same name, eg, http://mystore.com/myadmin/

    In other words, these must all be consistant.

    Also, exact error messages may help... it is surprising the number of people that mis-read these and proclaim the page is 'missing' when the error clearly states something different, such as 'permission denied' and even 'server error'. Needless to say, the solution for the problem is as different as the error messages themselves.

    Cheers
    Rod

  10. #20
    Join Date
    Feb 2012
    Posts
    427
    Plugin Contributions
    0

    Default Re: Moving site from sub directory errors

    that was a typo!

    What happened was I moved all the files to another directory to check that I had them in the right place. I have moved them all back and it started doing this. I have checked that all the files are in the correct place too! And have not renamed any of my admin stuff

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. v154 Change existing site from sub directory to the root of the web site
    By fjbern1943 in forum Installing on a Linux/Unix Server
    Replies: 21
    Last Post: 25 Jun 2015, 03:16 AM
  2. Moving a store to the root directory from a sub-folder
    By Hell Guapo in forum General Questions
    Replies: 3
    Last Post: 21 Sep 2011, 05:51 PM
  3. Moving Site from Sub-folder to Root
    By willchen88 in forum Installing on a Linux/Unix Server
    Replies: 10
    Last Post: 7 Aug 2011, 06:47 AM
  4. Moving the site from a temporary directory..
    By hoosiercanuck in forum Basic Configuration
    Replies: 2
    Last Post: 22 Mar 2011, 02:00 AM
  5. Trouble moving site to a directory
    By giftmeister in forum Installing on a Windows Server
    Replies: 10
    Last Post: 13 Oct 2010, 01:50 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