Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Join Date
    May 2010
    Location
    Texas
    Posts
    508
    Plugin Contributions
    0

    Default Re: 1.3.9h to 1.54 --> no admin

    Just changing the server info in the dist-config.php did not work. (Yes, I changed the name to config.php)

    Here is an entry from the dist-config.php file

    PHP Code:
      define('DIR_WS_ADMIN'preg_replace('#^' str_replace('-''\-'zen_parse_url(HTTP_SERVER'/path')) . '#'''dirname($_SERVER['SCRIPT_NAME'])) . '/'); 
    Should this line be modified to include the secret admin directory name? For example:

    PHP Code:
      define('DIR_WS_ADMIN'preg_replace('#^' str_replace('-''\-'zen_parse_url(HTTP_SERVER'/path')) . '#'''dirname($_SERVER['SCRIPT_NAME'])) . '/MyZen/'); 
    Also, I assume I should be focused on the /MyZen/MyAdmin/config.php and not the /MyZen/config.php file


    This entry seems anemic:
    PHP Code:
    define('DIR_WS_CATALOG''/'); 
    Should it be
    PHP Code:
    define('DIR_WS_CATALOG''/MyZen/'); 
    Last edited by split63; 25 Jun 2015 at 02:30 PM.

  2. #12
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: 1.3.9h to 1.54 --> no admin

    Quote Originally Posted by split63 View Post
    It says, change the folder name and don't worry about what's in the file
    Code:
    There is no need to alter the admin configure.php in v1.5.x when renaming your admin folder.
    Correct. Just change your admin folder name, leave the configure.php file alone, and Zencart will find the admin folder.

  3. #13
    Join Date
    May 2010
    Location
    Texas
    Posts
    508
    Plugin Contributions
    0

    Default Re: 1.3.9h to 1.54 --> no admin

    Nothing I do seems to matter. If only there was an error message or something!!!!
    Here is the whole admin config.php file.

    PHP Code:
    <?php

    /**

     * dist-configure.php

     * SAMPLE (but NOT FUNCTIONAL) file

     *

     * @package Configuration Settings

     * @package Admin

     * @copyright Copyright 2003-2014 Zen Cart Development Team

     * @copyright Portions Copyright 2003 osCommerce

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

     * @version GIT: $Id: Author: DrByte  Modified in v1.5.4 $

     * @private

     */

    /**

     * 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''https://localhost');

      
    define('HTTPS_SERVER''https://localhost');

      
    define('HTTP_CATALOG_SERVER''http://localhost');

      
    define('HTTPS_CATALOG_SERVER''https://localhost');



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

      
    define('ENABLE_SSL_ADMIN''true');



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

      
    define('ENABLE_SSL_CATALOG''true');





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

    //  define('DIR_WS_CATALOG', '/');
      
    define('DIR_WS_CATALOG''/MyZen/');
      
    //  define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', zen_parse_url(HTTPS_SERVER, '/path')) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
      
    define('DIR_WS_HTTPS_ADMIN'preg_replace('#^' str_replace('-''\-'zen_parse_url(HTTPS_SERVER'/path')) . '#'''dirname($_SERVER['SCRIPT_NAME'])) . '/MyAdmin/');  
      
     
    // define('DIR_WS_HTTPS_CATALOG', '/');
      
    define('DIR_WS_HTTPS_CATALOG''/MyZen/');


    // 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_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_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', preg_replace('#.includes$#', '', realpath(dirname(__FILE__) . '/../') . '/'));
    //  define('DIR_FS_ADMIN', preg_replace('#.includes$#', '', realpath(dirname(__FILE__) . '/../') . '/MyAdmin/'));
      
    define('DIR_FS_ADMIN''/home/content/n/e/x/MyID/html/MyZen/MyAdmin/');  //UG: 6_15_11


    //  define('DIR_FS_CATALOG', '/');
      
    define('DIR_FS_CATALOG''/home/content/n/e/x/MyID/html/MyZen/');


      
    //the following path is a COMPLETE path to the /logs/ folder  eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash

    //  define('DIR_FS_LOGS', DIR_FS_CATALOG . '/logs');
      
    define('DIR_FS_LOGS'DIR_FS_CATALOG '/home/content/n/e/x/MyID/html/MyZen/logs');


      
    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''utf8');

      
    //define('DB_SERVER', 'localhost');

    SERVER INFO REMOVED



      
    // 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/content/n/e/x/MyID/html/MyZen/cache');





    //Explanations of the webserver and path parameters:

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

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

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

    // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.yourdomain.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

     */

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

    Default Re: 1.3.9h to 1.54 --> no admin

    Several "errors" in the file.

    First, the filename is configure.php not config.php. Second how do you get to this site you are hosting, is it http://localhost or is it some other address?
    3) Do you have a SSL certificate?
    4) Your logs definition is wrong, either remove DIR_FS_CATALOG . Or remove everything within the single quote that follows leaving only /logs.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #15
    Join Date
    May 2010
    Location
    Texas
    Posts
    508
    Plugin Contributions
    0

    Default Re: 1.3.9h to 1.54 --> no admin

    Quote Originally Posted by mc12345678 View Post
    Several "errors" in the file.

    First, the filename is configure.php not config.php.
    Yes, it is configure.php
    Quote Originally Posted by mc12345678 View Post
    Second how do you get to this site you are hosting, is it http://localhost or is it some other address?
    I have tried using the real URL:
    PHP Code:
    define('HTTPS_SERVER''https://www.MyDomain.com'); 
    Quote Originally Posted by mc12345678 View Post
    3) Do you have a SSL certificate?
    Yes
    Quote Originally Posted by mc12345678 View Post
    4) Your logs definition is wrong, either remove DIR_FS_CATALOG . Or remove everything within the single quote that follows leaving only /logs.
    As you can see in the file, it was originally:
    define('DIR_FS_LOGS', DIR_FS_CATALOG . '/logs');
    However, look at the note in the file just above that entry. It says to change it.
    Last edited by split63; 25 Jun 2015 at 03:44 PM.

  6. #16
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: 1.3.9h to 1.54 --> no admin

    It does not say to change it, it identifies that it is equivalent. By substitution (as DIR_FS_CATALOG is defined above to include everything up to the catalog itself) the full path to the logs directory is defined with DIR_FS_CATALOG . '/logs'

    Includes/configure.php and admin/includes/configure.php are the files used by a standard version of ZC that can be downloaded from https://www.zen-cart.com/getit.

    Problems could exist if there is a configure.php file in includes/local or admin/includes/local. Verify the absence of configure.php from each of those directories. Also, be sure that the database information in the admin/includes/configure.php matches the database information in includes/configure.php

    Admin/includes/config.php is a file added by some other process/action unrelated to a default install.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #17
    Join Date
    May 2010
    Location
    Texas
    Posts
    508
    Plugin Contributions
    0

    Default Re: 1.3.9h to 1.54 --> no admin

    I can't believe it. The problem was that I copied the configure.php in to ./admin/ instead of /admin/includes. Sorry folks.
    I'm now at least getting an error message.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Admin using non-SSL domain name to build admin URLs
    By omnicognate in forum Basic Configuration
    Replies: 13
    Last Post: 2 Apr 2013, 09:14 AM
  2. v150 How do I get into my admin after renaming the admin folder?
    By vortexuniversal1 in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 24 May 2012, 10:26 PM
  3. my admin page is display "Index of /mystore/admin" but not admin
    By robert12 in forum Basic Configuration
    Replies: 6
    Last Post: 24 Feb 2012, 01:09 PM
  4. Problem with Admin after changing directory name for Admin
    By cnymike in forum Basic Configuration
    Replies: 10
    Last Post: 6 Jul 2009, 02:15 PM
  5. Replies: 0
    Last Post: 25 Apr 2007, 05:05 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