Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Oct 2007
    Posts
    6
    Plugin Contributions
    0

    red flag Cannot access Admin page after changing admin name for security

    I followed all instructions and was able to download the zencart and save, however, when I got to the instructions that recommended changing the admin folder name and pulling up the admin/includes/configure.php files in my text editor, I think I goofed somewhere. I am not able to open my admin page at all and cannot access anything through my paths. I do have access to MYSQL, but it is very foreign to me. All I want to do is create my store/templates/set up paypal etc. Can anyone help me. Maybe I have named the files in my text editor incorrectly or did not put things in the correct order. I have checked and to the best of my knowledge everything looks fine. Please help if you can.
    Thanks so much.

  2. #2
    Join Date
    Sep 2007
    Location
    Somewhere in Southern Cal
    Posts
    330
    Plugin Contributions
    0

    Default Re: Cannot access Admin page after changing admin name for security

    make sure you have changed the path it will not be
    www.yourstorename/admin
    it will be www.yourstorename/new folder name
    I bet that is the problem
    if not

    I would open your configure.php file and look for the changes you made.
    make sure they match the folder name (admin) or whatever you named it.
    Also make sure you have it like this.
    define ('DIR_WS_ADIM', '/admin/'; make sure you have the'/ /';

    you should have three changes!!!

    file that you made the changes should be
    admin/includes/configure.php

    nomad

  3. #3
    Join Date
    Oct 2007
    Posts
    6
    Plugin Contributions
    0

    red flag Re: Cannot access Admin page after changing admin name for security

    Thank you for your response, I have double checked the pathway in admin/includes/configure.php. This is the hierarchy:

    zencart/zen-cart/newfile/my admin name

    I think the problem is actually in the second portion of the changes:
    I am confused about putting my address in there.

    define(DIR_FS_ADMIN', '/home/mystore.com/www/public/admin/');
    define(DIR_FS_CATALOG', '?home/mystore.com/www/public/');
    I am unsure what to change and what files to put here.
    I do not have a file named "home" or "public", not sure what to do with the center portion either, should I leave the "www" and just enter"my url" for the .com?
    I have never used this php before and sorry to sound like a dunce. I have been trying to fix this problem for over a week and really could use some additional advice.
    Thanks again,

  4. #4
    Join Date
    Oct 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Cannot access Admin page after changing admin name for security

    This is my setup in the configuration.



    define('DIR_WS_ADMIN', '/admin file/');
    define('DIR_WS_CATALOG', '/')
    define('DIR_WS_HTTPS_ADMIN', '/admin file/');
    define('DIR_WS_HTTPS_CATALOG', '/');



    define('DIR_FS_ADMIN', '/home/my URL/zencart/zen-cart/Sitenamefile/admin file');
    define('DIR_FS_CATALOG', '/home/my URL/zencart/zen-cart/Sitrenamefile/');

    I really think this second part is my problem.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Cannot access Admin page after changing admin name for security

    A summary of the FAQ:

    Change this section:

    define('DIR_WS_ADMIN', '/admin/');
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_ADMIN', '/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/');

    And this section:

    define('DIR_FS_ADMIN', '/home/mystore.com/www/public/admin/');
    define('DIR_FS_CATALOG', '/home/mystore.com/www/public/');



    You will end up with something that looks like this:

    define('DIR_WS_ADMIN', '/mysecretadminarea/');
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_ADMIN', '/mysecretadminarea/');
    define('DIR_WS_HTTPS_CATALOG', '/');


    And:

    define('DIR_FS_ADMIN', '/home/mystore.com/www/public/mysecretadminarea/');
    define('DIR_FS_CATALOG', '/home/mystore.com/www/public/');
    .

    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.

  6. #6
    Join Date
    Sep 2007
    Location
    Somewhere in Southern Cal
    Posts
    330
    Plugin Contributions
    0

    Default Re: Cannot access Admin page after changing admin name for security

    that the way I should have explained it to jatabad.
    remember don't use spaces - if you need to use a space add a underscore. or use DrByte way.


    nomad

  7. #7
    Join Date
    Oct 2007
    Posts
    6
    Plugin Contributions
    0

    red flag Re: Cannot access Admin page after changing admin name for security

    How can I change it to the correct information? In what area and what needs to be changed?

    Thank you,
    jatabad

  8. #8
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Cannot access Admin page after changing admin name for security

    You just did a fresh install, right?
    And now you've been trying to rename the admin by trying multiple things, but it's mussed up somehow.

    Thus, I'd suggest this:
    1. Reinstall -- let the zc_install process rebuild your configure.php files for you.
    a) delete the zen cart files/folders from your server
    b) rename the folder containing your Zen Cart files so that it's more friendly and shorter than what you had originally
    c) re-upload the Zen Cart files to the server
    d) run the zc_install process via your browser

    2. Then do the quick rename by following the instructions in my earlier post to do the admin/includes/configure.php file edit, and then rename the /admin folder using your FTP program.
    .

    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.

 

 

Similar Threads

  1. Cannot access admin after changing host
    By icikite in forum General Questions
    Replies: 2
    Last Post: 19 Mar 2013, 05:11 PM
  2. Cannot log into admin after changing directory name
    By brennen in forum Customization from the Admin
    Replies: 4
    Last Post: 13 Sep 2010, 05:11 PM
  3. 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
  4. Replies: 3
    Last Post: 25 Jul 2007, 07:13 AM
  5. Changing 'admin' folder name for security/https admin
    By droptest in forum General Questions
    Replies: 0
    Last Post: 20 Jun 2007, 09:59 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