Results 1 to 10 of 41

Hybrid View

  1. #1
    Join Date
    Jul 2005
    Location
    Hoedspruit
    Posts
    530
    Plugin Contributions
    2

    Default Re: Admin not accessible

    Quote Originally Posted by mc12345678 View Post
    So it worked and then it stopped working... what changed?
    I wish I knew

    Quote Originally Posted by mc12345678 View Post
    If I remember correctly, though I probably didn't, I thought in one of the posts related to this that php related information as gathered from the admin->version area had been provided. That same information if gathered again may show what "new" options have been disabled or how php has been altered. Otherwise, would look again at the htaccess file to validate that it contains the content expected. Not too long ago on a server not so far far away, had a service modify or as they thought of it "update" the htaccess of a site. Made their things work "wonderfully" but completely disabled everything else about the site... fortunately only went unnoticed a couple of hours for a site that mostly provides information rather than paid for services, but still...

    Point being, if identify what changed, can identify what to do next.
    I cannot remember making any changes myself to files that would kill access to the Admin portal. After the fix, I added and used the Plugin CKEditor....

    The sites, from my limited understanding, appear to work in tandem. Neither site nor admin worked, then both started working when the changes were made to the set-time-zones.php file.

    In /my_admin/.htaccess:

    PHP Code:
    #
    # @copyright Copyright 2003-2013 Zen Cart Development Team
    # @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    # @version GIT: $Id: Author: DrByte  Sat Dec 21 17:00:00 2013 -0500 Modified in v1.5.3 $
    #
    # This is used with Apache WebServers
    #
    # The following blocks direct HTTP requests to all filetypes in this directory recursively, except certain approved exceptions
    # It also prevents the ability of any scripts to run. No type of script, be it PHP, PERL or whatever, can normally be executed if ExecCGI is disabled.
    # Will also prevent people from seeing what is in the dir. and any sub-directories
    #
    # For this to work, you must include either 'All' or at least: 'Limit' and 'Indexes' parameters to the AllowOverride configuration in your apache/conf/httpd.conf file.
    # Additionally, if you want the added protection offered by the OPTIONS directive below, you'll need to add 'Options' to the AllowOverride list, if 'All' is not specified.
    # Example:
    #<Directory "/usr/local/apache/htdocs">
    #  AllowOverride Limit Options Indexes
    #</Directory>
    ###############################
    DirectoryIndex index.php

    # deny *everything*
    <FilesMatch ".*\..*">
      
    Order Allow,Deny
      Deny from all
    </FilesMatch

  2. #2
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Admin not accessible

    Quote Originally Posted by Parafanaylya View Post
    I wish I knew



    I cannot remember making any changes myself to files that would kill access to the Admin portal. After the fix, I added and used the Plugin CKEditor....

    The sites, from my limited understanding, appear to work in tandem. Neither site nor admin worked, then both started working when the changes were made to the set-time-zones.php file.

    In /my_admin/.htaccess:

    PHP Code:
    #
    # @copyright Copyright 2003-2013 Zen Cart Development Team
    # @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    # @version GIT: $Id: Author: DrByte  Sat Dec 21 17:00:00 2013 -0500 Modified in v1.5.3 $
    #
    # This is used with Apache WebServers
    #
    # The following blocks direct HTTP requests to all filetypes in this directory recursively, except certain approved exceptions
    # It also prevents the ability of any scripts to run. No type of script, be it PHP, PERL or whatever, can normally be executed if ExecCGI is disabled.
    # Will also prevent people from seeing what is in the dir. and any sub-directories
    #
    # For this to work, you must include either 'All' or at least: 'Limit' and 'Indexes' parameters to the AllowOverride configuration in your apache/conf/httpd.conf file.
    # Additionally, if you want the added protection offered by the OPTIONS directive below, you'll need to add 'Options' to the AllowOverride list, if 'All' is not specified.
    # Example:
    #<Directory "/usr/local/apache/htdocs">
    #  AllowOverride Limit Options Indexes
    #</Directory>
    ###############################
    DirectoryIndex index.php

    # deny *everything*
    <FilesMatch ".*\..*">
      
    Order Allow,Deny
      Deny from all
    </FilesMatch
    The htaccess file that would be in question would likely be the one in the root of the store not the one in the admin directory.

    Thing is, when the store started working again successfully, was a complete backup made of the files? If so, how do those compare to the current store files? Is the change that was placed in whatever htaccess file still there or does it need to be applied again? In the future, if something fixes the problem, it helps you (and others) to specifically identify what fixed the issue. That way it could be a sort of backup in public...

    I didn't finish searching for what was needed because of all the reports of the problem being fixed at the time.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Admin not accessible

    It looks like you might see a solution to that specific issue if in your catalog's .htaccess you added:


    Code:
    php_value date.timezone 'Africa/Johannesburg'
    This would be the file located at: /var/www/vhosts/joburlnx.ehost-services221.com/joburgonline.com/.htaccess
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Jul 2005
    Location
    Hoedspruit
    Posts
    530
    Plugin Contributions
    2

    Default Re: Admin not accessible

    Quote Originally Posted by mc12345678 View Post
    It looks like you might see a solution to that specific issue if in your catalog's .htaccess you added:


    Code:
    php_value date.timezone 'Africa/Johannesburg'
    This would be the file located at: /var/www/vhosts/joburlnx.ehost-services221.com/joburgonline.com/.htaccess
    There wasn't a file as above, so I created the file in that location, and added that line, the only line in the file.

    No difference....

  5. #5
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Admin not accessible

    Quote Originally Posted by Parafanaylya View Post
    There wasn't a file as above, so I created the file in that location, and added that line, the only line in the file.

    No difference....
    When say no difference, does that mean that the front/catalog side STILL works, still DOESN'T work? The Admin STILL doesn't work? Does that mean that the same mydebug-adm file is being generated or is there different content?

    If the catalog works but the admin does not, and there are no error messages about the catalog side timezone setting, then would again take a look at includes/extra_configures/set_time_zone.php as well as admin/includes/extra_configures/set_time_zone.php to see if/what difference there is.

    Also, would apply the above suggested htaccess modification to the admin/.htaccess file, try again, and report results.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

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

    Default Re: Admin not accessible

    Quote Originally Posted by mc12345678 View Post
    When say no difference, does that mean that the front/catalog side STILL works, still DOESN'T work? The Admin STILL doesn't work? Does that mean that the same mydebug-adm file is being generated or is there different content?

    If the catalog works but the admin does not, and there are no error messages about the catalog side timezone setting, then would again take a look at includes/extra_configures/set_time_zone.php as well as admin/includes/extra_configures/set_time_zone.php to see if/what difference there is.

    Also, would apply the above suggested htaccess modification to the admin/.htaccess file, try again, and report results.
    The other possible .htaccess entry to help this situation that has been found would be:
    Code:
    SetEnv TZ Africa/Johannesburg
    Again would suggest placing it in your newly created catalog .htaccess file first, then work from there. Though there are a number of things that may need to be reviewed based on the above suggestion(s).
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Jul 2005
    Location
    Hoedspruit
    Posts
    530
    Plugin Contributions
    2

    Default Re: Admin not accessible

    Quote Originally Posted by mc12345678 View Post
    The other possible .htaccess entry to help this situation that has been found would be:
    Code:
    SetEnv TZ Africa/Johannesburg
    added - cleared browser cache, no admin...

    Quote Originally Posted by mc12345678 View Post
    Again would suggest placing it in your newly created catalog .htaccess file first, then work from there. Though there are a number of things that may need to be reviewed based on the above suggestion(s).
    that's done with the same result:

    Code:
    php_value date.timezone 'Africa/Johannesburg'
    
    SetEnv TZ Africa/Johannesburg

  8. #8
    Join Date
    Jul 2005
    Location
    Hoedspruit
    Posts
    530
    Plugin Contributions
    2

    Default Re: Admin not accessible

    Quote Originally Posted by mc12345678 View Post
    When say no difference, does that mean that the front/catalog side STILL works, still DOESN'T work? The Admin STILL doesn't work? Does that mean that the same mydebug-adm file is being generated or is there different content?
    The site works, but admin doesn't

    Quote Originally Posted by mc12345678 View Post
    If the catalog works but the admin does not, and there are no error messages
    Are error message on the admin site, but I am experiencing really slow loads on the logs for some reason from my location

    Quote Originally Posted by mc12345678 View Post
    about the catalog side timezone setting, then would again take a look at includes/extra_configures/set_time_zone.php as well as admin/includes/extra_configures/set_time_zone.php to see if/what difference there is.
    Looking at it now - will add the same string there too...

    Quote Originally Posted by mc12345678 View Post
    Also, would apply the above suggested htaccess modification to the admin/.htaccess file, try again, and report results.
    will do

  9. #9
    Join Date
    Jul 2005
    Location
    Hoedspruit
    Posts
    530
    Plugin Contributions
    2

    Default Re: Admin not accessible

    Quote Originally Posted by mc12345678 View Post
    Also, would apply the above suggested htaccess modification to the admin/.htaccess file, try again, and report results.
    Where to insert in this file

    Code:
    #
    # @copyright Copyright 2003-2013 Zen Cart Development Team
    # @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    # @version GIT: $Id: Author: DrByte  Sat Dec 21 17:00:00 2013 -0500 Modified in v1.5.3 $
    #
    # This is used with Apache WebServers
    #
    # The following blocks direct HTTP requests to all filetypes in this directory recursively, except certain approved exceptions
    # It also prevents the ability of any scripts to run. No type of script, be it PHP, PERL or whatever, can normally be executed if ExecCGI is disabled.
    # Will also prevent people from seeing what is in the dir. and any sub-directories
    #
    # For this to work, you must include either 'All' or at least: 'Limit' and 'Indexes' parameters to the AllowOverride configuration in your apache/conf/httpd.conf file.
    # Additionally, if you want the added protection offered by the OPTIONS directive below, you'll need to add 'Options' to the AllowOverride list, if 'All' is not specified.
    # Example:
    #<Directory "/usr/local/apache/htdocs">
    #  AllowOverride Limit Options Indexes
    #</Directory>
    ###############################
    DirectoryIndex index.php
    
    # deny *everything*
    <FilesMatch ".*\..*">
      Order Allow,Deny
      Deny from all
    </FilesMatch>
    
    # but now allow just *certain* necessary files:
    <FilesMatch "(?i).*\.(php|js|css|html?|ico|otf|jpe?g|gif|webp|png|swf|flv|xml|xsl)$">
      Order Allow,Deny
      Allow from all
    </FilesMatch>
    
    IndexIgnore */*
    
    <limit POST PUT>
    order deny,allow
    deny from All
    </limit>
    
    
    ## NOTE: If you want even greater security to prevent hackers from running scripts in this folder, uncomment the following line (if your hosting company will allow you to use OPTIONS):
    # OPTIONS -Indexes -ExecCGI
    
    
    
    ##################
    ## Optional caching improvements
    ## Requires mod_header and mod_deflate to be enabled within Apache
    ##################
    <IfModule mod_headers.c>
      Header unset Pragma
      FileETag None
      Header unset ETag
      #Header set Cache-Control "no-transform"
      <FilesMatch "(?i).*\.(ico|jpe?g|gif|otf|webp|png|swf|flv|svg|svgz)$">
        Header set Cache-control "max-age=864000, public, must-revalidate"
        Header unset Last-Modified
      </FilesMatch>
      <FilesMatch "(?i).*\.(html|htm|xml|txt|xsl)$">
        Header set Cache-control "max-age=7200, must-revalidate"
      </FilesMatch>
    </IfModule>
    <IfModule mod_deflate.c>
      <FilesMatch "(?i)\.(js|css)$">
        SetOutputFilter DEFLATE
      </FilesMatch>
    </IfModule>
    
    ##################
    ## Optional improvements
    ## Requires mod_expires to be enabled within Apache
    ##################
    <ifmodule mod_expires.c>
      ExpiresActive On
      ExpiresDefault A300
      ExpiresByType application/x-javascript A3600
      ExpiresByType text/css A3600
      ExpiresByType image/gif A604800
      ExpiresByType video/x-flv A604800
      ExpiresByType application/pdf A604800
      ExpiresByType text/html A300
      ExpiresByType image/x-icon A86400
      ExpiresByType image/jpeg A2592000
      ExpiresByType image/png A2592000
      ExpiresByType text/cache-manifest "access plus 0 seconds"
    
    </ifmodule>
    
    
    #turn off X-PHP-Originating-Script header when sending emails from admin
    #uncomment to activate:
    # php_flag mail.add_x_header Off

  10. #10
    Join Date
    Jul 2005
    Location
    Hoedspruit
    Posts
    530
    Plugin Contributions
    2

    Default Re: Admin not accessible

    Quote Originally Posted by mc12345678 View Post
    If the catalog works but the admin does not, and there are no error messages about the catalog side timezone setting, then would again take a look at includes/extra_configures/set_time_zone.php as well as admin/includes/extra_configures/set_time_zone.php to see if/what difference there is..
    PHP Code:
    <?php
    /**
     * @package admin
     * @copyright Copyright 2003-2013 Zen Cart Development Team
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version GIT: $Id: Author: DrByte  Sat Nov 2 01:21:28 2013 -0400 New in v1.5.2 $
     */
    // get time zone settings from catalog-side file
    include (DIR_FS_CATALOG '/includes/extra_configures/set_time_zone.php');
    This points to the directory/file with the time zone setting Africa/Johannesburg. Would I add that string to the file that I find there which is my_renamed_admin/includes/extra_configures/use_catalog_time_zone.php?

    PHP Code:
     $TZ 'Africa/Johannesburg';  // eg: 'Europe/Oslo' 

 

 

Similar Threads

  1. Admin Not Accessible after SSL & Dedicated IP
    By yeah! in forum General Questions
    Replies: 19
    Last Post: 21 Apr 2011, 11:27 PM
  2. installed demo now old admin not accessible
    By VDecalS in forum Upgrading from 1.3.x to 1.3.9
    Replies: 6
    Last Post: 25 Nov 2010, 12:54 AM
  3. My admin panel not accessible in 1.3.9g
    By Crunch in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 30 Sep 2010, 10:28 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