Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Jul 2011
    Posts
    93
    Plugin Contributions
    0

    Default New install- Error message - Accesing admin

    Hi all. I have tried installing twice now. I can get the site loaded ok and it shows up upon completion of installing. Then after changing the admin folder name and editing the admin config file as instructed I got an error message saying it wasn't there. I figured I had screwed up somewhere and I checked the config file in admin and permission settings. I noticed that the admin folder was set to 755 so I changed it to 777 and still get a 404 message. I made sure that all instances of admin in the config file were changed over and all the same. All ' are still there and I copied and pasted the name to rename on all of it so it should all be the same.

    I also noticed that my config file for the site was changed automaticly to 444 and my admin config file was changed to 644. The site is viewable but not the admin. Have tried to set the admin config file to 444 also but that didn't help. Not that I thought it would.

    The store is loaded up in the pub. html - site.com/directories

    admin config file
    PHP Code:
    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''/');

      
    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''/*****admin/');
      
    define('DIR_FS_CATALOG''/');

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

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: New install- Error message - Accesing admin

    Quote Originally Posted by ScottDB View Post
    define('DIR_FS_ADMIN', '/*****admin/');
    define('DIR_FS_CATALOG', '/');
    It's VERY unlikely that the full path to your site's files is /
    So, you need to fix those entries to point to the ACTUAL physical folder structure where your files are located.
    .

    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
    Jul 2011
    Posts
    93
    Plugin Contributions
    0

    Default Re: New install- Error message - Accesing admin

    I just glanced at that and thought it was referring to it being in the home directory. Also noticed when I downloaded what I had on the site that some of the changes didn't take place and the admin hadn't been changed. Got it working now. Thanks.

  4. #4
    Join Date
    Jul 2011
    Posts
    93
    Plugin Contributions
    0

    Default Re: New install- Error message - Accesing admin

    Ok well I am able to view the admin now. I just can't configure anything.
    When I go to click on the links it shows an error message.

    The requested URL /*****admin/configuration.php was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    Shouldn't that read admin/includes/configuration.php?

    in the config file I used "/home/******/public_html/" for the DIR_FS_CATALOG. Is this right
    Last edited by ScottDB; 26 Jul 2011 at 02:45 AM.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: New install- Error message - Accesing admin

    Quote Originally Posted by ScottDB View Post
    in the config file I used "/home/******/public_html/" for the DIR_FS_CATALOG. Is this right
    You need to use whatever is the correct path for *your* server.

    You could refer to your non-admin configure.php file in case it gives you the correct information.
    .

    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
    Jul 2011
    Posts
    93
    Plugin Contributions
    0

    Default Re: New install- Error message - Accesing admin

    I checked the non admin config file and it is blank as well.

    Not sure what I should put there. I got the /home/******/public_html/ from the DIR FS area example. It was automatically filled in on install I think.

    I just used this same thing on the DIR_WS_CATALOG and DIR_WS_HTTPS_CATALOG

    The script was uploaded into the public html directory. example public_html/admin

    I have also tried just putting public_html there as well. The /home/******/public_html/ is what I see when I upload files to my server through cpanel.

    I think I am obviously way off on my thinking here or what?

  7. #7
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: New install- Error message - Accesing admin

    Yes, the DIR_FS_CATALOG was filled in during install.

    BUT, if your storefront is working correctly, then the /includes/configure.php file has a DIR_FS_CATALOG value that's correct. And it sure won't be blank or just '/'.
    .

    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.

  8. #8
    Join Date
    Jul 2011
    Posts
    93
    Plugin Contributions
    0

    Default Re: New install- Error message - Accesing admin

    Thanks for your replies and patience.

    I noticed in the error message that it wasn't showing the includes in the statement so I added it and I am now seeing it in this error statement.

    You don't have permission to access /****admin/includes/configuration.php on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    Here is what I have for that section. I think I have tried every possible way of adding includes to one or all of the following.
    Code:
     define('DIR_WS_ADMIN', '/*****admin/includes/');
      define('DIR_WS_CATALOG', '/*****admin/');
      define('DIR_WS_HTTPS_ADMIN', '/*****admin/');
      define('DIR_WS_HTTPS_CATALOG', '/*****admin/');
    I also get the same error for logout. You don't have permission to access /****admin/includes/logout.php on this server. Of course the logout.php is in the admin folder not the includes.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: New install- Error message - Accesing admin

    No no no no.

    The instructions were very simple: just replace all the original references to /admin/ with /your-renamed-admin/
    NOTHING ELSE.

    Now you've gone and mangled all kinds of things.
    .

    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.

  10. #10
    Join Date
    Jul 2011
    Posts
    93
    Plugin Contributions
    0

    Default Re: New install- Error message - Accesing admin

    I did but was unable to get into configurations on admin. Trying to figure out what DIR_WS_CATALOG', '/'); is supposed to be along with define('DIR_WS_HTTPS_CATALOG', '/');

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v153 Error Message when trying to install new templates
    By msbfrnj in forum Setting Up Categories, Products, Attributes
    Replies: 19
    Last Post: 5 Sep 2014, 09:28 PM
  2. Replies: 2
    Last Post: 11 Aug 2012, 06:56 AM
  3. Error when accesing admin
    By moelicious200 in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 2 Jul 2008, 09:00 PM
  4. Error message in Admin after new install.
    By ragemoto in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 17 Mar 2007, 02:01 AM
  5. New store: Problem accesing Admin & Store
    By bitterpill in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 24 Aug 2006, 01:19 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