Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 33
  1. #11
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Renaming Admin Folder

    the best way to do this

    1 rename folder

    2 highlight copy the name of the new folder

    3 open the configure.php file in your favorite text editor

    4 use your search replace utility to find /admin/ and replace it with /whatever/

    takes about 20 seconds totall

    by using the copy paste you know that they are exactly the same
    Zen cart PCI compliant Hosting

  2. #12
    Join Date
    Aug 2008
    Posts
    129
    Plugin Contributions
    0

    Default Re: Renaming Admin Folder

    Ok--it worked fine this time, I did the exact same thing as before! (exactly the same as you experienced guys instructed)

    BUT.. there's one critical difference.

    I re-installed zen cart, and I didn't turn on the automatic file based cacheing function.

    I'm guessing having this option on somehow prevented me from using the newly created admin area--I only say this because leaving it off, somehow let me make this change that had me stumped yesterday.

    I hopefully I can turn on the file based cache module on later--I want my site to run fast :)

    Anyway, I'm happy to say my admin area is now secure, thanks for the help :)

  3. #13
    Join Date
    Jul 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: Renaming Admin Folder

    I've encounted a stange sort of side issue. I didn't have any trouble renaming the folders or the files, but apparently I've done something to the paths that the links follow in the admin home.

    So you've got the top nav with all the drop down menus...the paths should be something like /configuration.php or /categories.php. That's how the links should be formed.

    Somehow I have changed the path so all of the link on the admin home page are misformed/broken and follow the convention:

    mysite.comdir_ws_admincategories.php/

    I can't seem to find any reference here or the wiki to this issue. I know it's gotta be silly. Any suggestions?

  4. #14
    Join Date
    Aug 2008
    Location
    St. Petersburg, FL
    Posts
    20
    Plugin Contributions
    0

    Default Re: Renaming Admin Folder

    I really jacked something up? I followed the wiki on renaming your admin for security, everything was fine, then as i was editing all of the page 2 and page 3 .php I could find and still no change on the "more information" box, then I noticed my CUSTOM template was not available? Only the green classic.

    So I checked all of the template files and made sure my CUSTOM folders were all in the correct places, everything looked as it should, but my CUSTOM template disappeared from the tools>template selector, but was on the server in the includes/templates folder along with classic and default.

    so I took my newly renamed local store/admin file and uploaded all of it to the server. To check and see if my template came back I was surprised to see that my whole admin was not accessible error message "ERROR: admin/includes/configure.php file not found. Suggest running zc_install/index.php?"
    I can plainly see that the admin/includes/configure.php is on the server exactly where it should be.

    So then I renamed all of the /admin directory back to admin, changed the config.php back to reflect the original admin.
    Still receiving "ERROR: admin/includes/configure.php file not found. Suggest running zc_install/index.php?" with the file there staring at me.

    how do I run zc_install/index.php? and will it fix this w/o significant data loss?



    http://higherselfgifts.com/store do not know what other info I can give to draw this picture?

    Thank you in advance
    appreciation = bliss

  5. #15
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Renaming Admin Folder

    bjams1974 & higherselfgifts, it would seem you have both made changes to your Admin 'configure.php' that are incorrect, as far as correct paths go.

    The following is from the default file, compare to what your's is.

    define('HTTP_SERVER', 'http://localhost');
    define('HTTPS_SERVER', 'https://localhost');
    define('HTTP_CATALOG_SERVER', 'http://localhost');
    define('HTTPS_CATALOG_SERVER', 'https://localhost');

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

  6. #16
    Join Date
    Jul 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: Renaming Admin Folder

    Thanks for the help. I guess I need to stop making changes at 1 in the morning. For some reason there was a duplicate folder created with a duplicate config file.

  7. #17
    Join Date
    Aug 2008
    Location
    St. Petersburg, FL
    Posts
    20
    Plugin Contributions
    0

    Default Re: Renaming Admin Folder

    ok I have checked the code and it looks the same, still getting error messege that
    "ERROR: admin/includes/configure.php file not found. Suggest running zc_install/index.php?"
    http://www.higherselfgifts.com/store/admin/login.php

    I have not seen duplicates of any folders and I can see the admin/includes/configure.php file?


    Here is that file.



    // 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', 'store/admin/');
    define('DIR_WS_CATALOG', 'store/');
    define('DIR_WS_HTTPS_ADMIN', 'store/admin/');
    define('DIR_WS_HTTPS_CATALOG', 'store/');

    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', 'homepages/36/d246218842/htdocs/store/admin/');
    define('DIR_FS_CATALOG', 'homepages/36/d246218842/htdocs/store/');

  8. #18
    Join Date
    Aug 2008
    Location
    St. Petersburg, FL
    Posts
    20
    Plugin Contributions
    0

    Default Re: Renaming Admin Folder

    Suggest running zc_install/index.php?
    what will I loose if anything and how do I run ?

  9. #19
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Renaming Admin Folder

    "ERROR: admin/includes/configure.php file not found.

    If you know the file is there then perhaps it is a permission problem.

    Use your FTP program to see what the permissions are; should be 644 or you can do the following.


    Make a blank file and inside put the following code:

    <?php
    chmod("includes/configure.php", 0444);
    chmod("admin/includes/configure.php", 0444);
    echo 'Completed'
    ?>


    Note: if you renamed the 'admin' directory then change "admin" to whatever you renamed it to and you're good to go.

    Save the file as chmod.php and upload it to the same directory where these files are:
    index.php - ipn_main_handler.php - nddbc.html

    Now load the URL into your Browser: http://yoursite.com/chmod.php
    You will see the 'Completed' msg. and can then load your Zen Cart "index" page to verify Error msg. is gone.

    Any Admin login problems should also be gone.

    Now delete the 'chmod.php' page.

  10. #20
    Join Date
    Aug 2008
    Location
    St. Petersburg, FL
    Posts
    20
    Plugin Contributions
    0

    Default Re: Renaming Admin Folder

    <?php
    chmod("includes/configure.php", 0444);
    chmod("admin/includes/configure.php", 0444);
    echo 'Completed'
    ?>

    Note: if you renamed the 'admin' directory then change "admin" to whatever you renamed it to and you're good to go.

    Save the file as chmod.php and upload it to the same directory where these files are:
    index.php - ipn_main_handler.php - nddbc.html

    Now load the URL into your Browser: http://yoursite.com/chmod.php
    You will see the 'Completed' msg. and can then load your Zen Cart "index" page to verify Error msg. is gone.

    Any Admin login problems should also be gone.

    Now delete the 'chmod.php' page.
    I followed your instructions, I saw the "completed" msg. still no admin access and now the site is not showing up at all, there is now a blank page? even after I deleted the chmod.php file http://www.higherselfgifts.com/store/

 

 
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Renaming Admin folder
    By Veronika7747 in forum Customization from the Admin
    Replies: 8
    Last Post: 6 Jun 2011, 08:34 PM
  2. Re-Renaming Admin Folder
    By Green333 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Mar 2010, 02:13 PM
  3. Renaming ADMIN folder?
    By kenny724 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Feb 2010, 05:02 PM
  4. Renaming admin folder
    By Harvezter in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 18 Sep 2009, 05:21 PM
  5. renaming admin folder
    By pcdesigns in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 10 Jun 2008, 08:41 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