• Hi,

    Sometimes i can not access to the admin panel and get 500 internal server error. and most of the times it takes so long time to open the pages on admin panel. (there is no problem about the site speed).
    I asked this to my hosting company but they told there seems no issue about their systems.

    I read some posts about the same issue and saw that this may be something related with .htacces file. I am using W3TC Browser Cache plugin and it added lots of rules to my htacces file:

    # BEGIN EXPIRES
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault “access plus 10 days”
    ExpiresByType text/css “access plus 1 week”
    ExpiresByType text/plain “access plus 1 month”
    ExpiresByType image/gif “access plus 1 month”
    ExpiresByType image/png “access plus 1 month”
    ExpiresByType image/jpeg “access plus 1 month”
    ExpiresByType application/x-javascript “access plus 1 month”
    ExpiresByType application/javascript “access plus 1 week”
    ExpiresByType application/x-icon “access plus 1 year”
    </IfModule>
    # END EXPIRES
    #Header unset ETag
    FileETag none

    # BEGIN W3TC Browser Cache
    <IfModule mod_deflate.c>
    <IfModule mod_headers.c>
    Header append Vary User-Agent env=!dont-vary
    </IfModule>
    AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
    <IfModule mod_mime.c>
    # DEFLATE by extension
    AddOutputFilter DEFLATE js css htm html xml
    </IfModule>
    </IfModule>
    <FilesMatch “\.(css|htc|less|js|js2|js3|js4|CSS|HTC|LESS|JS|JS2|JS3|JS4)$”>
    FileETag MTime Size
    <IfModule mod_headers.c>
    Header set Pragma “public”
    Header set Cache-Control “max-age=31536000, public”
    Header unset Set-Cookie
    Header set X-Powered-By “W3 Total Cache/0.9.4”
    </IfModule>
    </FilesMatch>
    <FilesMatch “\.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|SVG|SVGZ|TXT|XSD|XSL|XML)$”>
    FileETag MTime Size
    <IfModule mod_headers.c>
    Header set Pragma “public”
    Header set Cache-Control “max-age=3600, public”
    Header set X-Powered-By “W3 Total Cache/0.9.4”
    </IfModule>
    </FilesMatch>
    <FilesMatch “\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|wav|wma|wri|woff|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EOT|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|JSON|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|MPP|OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SVG|SVGZ|SWF|TAR|TIF|TIFF|TTF|TTC|WAV|WMA|WRI|WOFF|XLA|XLS|XLSX|XLT|XLW|ZIP)$”>
    FileETag MTime Size
    <IfModule mod_headers.c>
    Header set Pragma “public”
    Header set Cache-Control “max-age=31536000, public”
    Header unset Set-Cookie
    Header set X-Powered-By “W3 Total Cache/0.9.4”
    </IfModule>
    </FilesMatch>
    # END W3TC Browser Cache
    # BEGIN W3TC Page Cache core
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteRule .* – [E=W3TC_ENC:_gzip]
    RewriteCond %{HTTP_COOKIE} w3tc_preview [NC]
    RewriteRule .* – [E=W3TC_PREVIEW:_preview]
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} =””
    RewriteCond %{REQUEST_URI} \/$
    RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]
    RewriteCond %{HTTP_USER_AGENT} !(iPhone|iPod|Android|BB10|BlackBerry|webOS|IEMobile/7\.0|IEMobile/9\.0|IEMobile/10\.0|MSIE\ 10\.0|iPad|PlayBook|Xoom|P160U|SCH\-I800|Nexus\ 7|Touch) [NC]
    RewriteCond “%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}” -f
    RewriteRule .* “/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}” [L]
    </IfModule>
    # END W3TC Page Cache core
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    Do you have any idea what to do about this issue?

    Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Tim Nash

    (@tnash)

    Spam hunter

    So the reason your site is fast on the front and slow on the back is probably due to you using a caching plugin.

    W3TC is basically reducing the amount of calls to the database and a lot of the processing has to do, where as when you login as a admin, you are no longer seeing cached content and are seeing the site performance as it would be if you didn’t have total cache installed. To test this you can turn off total cache entirely then go in a different browser and see the entire site is slow (you probably get a few 500 along the way)

    Assuming this is the case, and also you don’t have control over the server, it’s a shared host then you may need to chat to your host about changing hosting plans or look at alternatives.

    However it’s worth making sure you cover simple performance steps, like removing plugins you don’t need, you might also want to reduce post revisions down to 2 or 3 and look at cleaning and optimising your DB.

    Thread Starter rusedeguerre

    (@rusedeguerre)

    Thanks for the answer. I’ll try that.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot Access WP Admin Panel’ is closed to new replies.