Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Dec 2009
    Posts
    55
    Plugin Contributions
    0

    Default new install / migration

    im running 1.3.9h so currently i'm trying to move hosting provider then upgrade to latest version of zencart

    my problem is installing a fresh copy of 1.3.9h on my new host works however the admin directory does not.
    i've tried everything and can't seen to figure out what it is
    the admin url directory changes from www.example.com/admin to www.example.comlogin.php/
    when I manually put example.com/admin/login.php the login screen shows but after entering user ID and password it goes back to example.comlogin.php/

    i've renamed my admin directory - removed .htaccess file inside admin directory - installed multiple number of times with full read / write permission and with zencart recommendation - my cache log just shows

    installerConfigKeys|a:1:{s:8:"language";s:7:"english";}logfilename|s:27:"Oct-16-2014_01-17-31-2pmMSo";installerConfigInfo|a:0:{}

    I'm sure its something simple - I just need it to stop re-writing my directory from example.com/admin to example.comlogin.php but not sure how or why it is happening. Any advice?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: new install / migration

    Your /admin/includes/configure.php file contents are incorrect; that's why it's removing the "/admin/" part on you.
    Your symptoms are strangely similar to those which occur when you've manually altered the configure.php file contents. Did you mix up the 2 configure.php files? Did you copy one overtop of the other? You really should just do a clean install on the new server and let zc-install build and update the contents of the 2 configure.php files for you, since it will use the information pertinent to your new server.

    See: http://www.zen-cart.com/content.php?...fferent-server
    .

    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
    Dec 2009
    Posts
    55
    Plugin Contributions
    0

    Default Re: new install / migration

    DrByte thank you for your reply

    actually this is a clean install of 1.3.9h - prior to any move

    I have downloaded a fresh copy with out any contamination from my current server

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: new install / migration

    1. Describe the new server's configuration ... Apache version, PHP version, MySQL version
    2. Post your admin/includes/configure.php file contents ... and blank-out only the db-password for privacy
    .

    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
    Dec 2009
    Posts
    55
    Plugin Contributions
    0

    Default Re: new install / migration

    apache - Apache/2.2.22 (Debian)
    php - Version 5.4.4-14+deb7u14
    mysql - 5.5.38



    <?php
    /**
    * @package Configuration Settings circa 1.3.9
    * @copyright Copyright 2003-2010 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 2014-10-16 09:55:24
    */


    /*************** 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. ***********/

    // 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
    *
    * If you desire your *entire* admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following:
    */
    define('HTTP_SERVER', 'http://www.pblvd.com');
    define('HTTPS_SERVER', 'https://www.pblvd.com');
    define('HTTP_CATALOG_SERVER', 'http://www.pblvd.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.pblvd.com');

    // Use secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'false');
    define('ENABLE_SSL_ADMIN', '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_ADMIN', ‘/webmaster/‘);
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_ADMIN', ‘/webmaster/‘);
    define('DIR_WS_HTTPS_CATALOG', '/');

    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)
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_ADMIN', '/mnt/pd0/www/pblvd.com/www/webmaster/');
    define('DIR_FS_CATALOG', '/mnt/pd0/www/pblvd.com/www/');

    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', '');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'pblvd');
    define('DB_SERVER_PASSWORD', 'mypassword');
    define('DB_DATABASE', 'pblvd');
    define('USE_PCONNECT', 'false');
    define('STORE_SESSIONS', 'db');
    // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

    // 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', 'database');
    define('DIR_FS_SQL_CACHE', '/mnt/pd0/www/pblvd.com/www/cache');

    // EOF

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: new install / migration

    It seems as though zen_href_link() in /admin/includes/functions/html_output.php is either not original code (yet you said it is) or is somehow damaged. It's not properly inserting DIR_WS_ADMIN.
    Is DIR_WS_ADMIN defined in any other files besides /admin/includes/configure.php? If so then it's overriding things.

    Do you have an /admin/includes/local/configure.php with different contents? The "local/configure.php" is intended for offline use, not on servers.
    .

    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
    Dec 2009
    Posts
    55
    Plugin Contributions
    0

    Default Re: new install / migration

    Inside /admin/includes/local/ I only have skip_version_check.ini file

    the database is new - just created
    the domain folder is also new and I unzipped Zen Cart zip file directly to my www folder
    I would use developers tool to find DIR_WS_ADMIN but I have no access to it - but it is all original zencart 1.3.9h files

    If i try to install the most current Zen Cart version it works.
    Is there any way for me to hardcode the Zen Cart files to get this working? once I get it working and transfer my current files I will start the upgrade process to the latest Zen Cart version.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: new install / migration

    Quote Originally Posted by littlekid440 View Post
    If i try to install the most current Zen Cart version it works.
    Bizarre.
    Quote Originally Posted by littlekid440 View Post
    Is there any way for me to hardcode the Zen Cart files to get this working?
    Maybe. But I'm not sure what exactly is breaking it. I'm guessing on the zen_href_link thing, because it's what's creating the links that your admin pages are pointing to, including the redirects and the CSS and so on.

    It seems as if your DIR_WS_ADMIN is defined to blank.
    Other than fixing that, hardcoding one line someplace probably won't solve it.

    Possible actions:
    - I'd stick some echo statements into that function and see what it things DIR_WS_ADMIN is defined as.
    - I'd try replacing that older html_output.php with the one from the new version and see what happens. I haven't studied the differences to know whether that'll break anything.
    .

    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.

  9. #9
    Join Date
    Dec 2009
    Posts
    55
    Plugin Contributions
    0

    Default Re: new install / migration

    also when I move my live files / database from my current hosting company to the new one everything works except the admin directory (same problem)

  10. #10
    Join Date
    Dec 2009
    Posts
    55
    Plugin Contributions
    0

    Default Re: new install / migration

    thank you!
    i will give it a shot later tonight and get back to you!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Cannot reset downloads after migration to new VPS
    By bowerstech in forum General Questions
    Replies: 20
    Last Post: 15 Oct 2015, 01:47 AM
  2. v139h Exclude a category from new products migration
    By shags38 in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 29 May 2012, 03:10 PM
  3. New 2 Zen - Data Migration
    By XlancealotX in forum General Questions
    Replies: 0
    Last Post: 13 Sep 2006, 03:30 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