500 Internal Server Error

Status
Not open for further replies.

Mahaj

Active Member
786
2011
281
0
HI

My website is www.gameshunt.org. From some days I'm having this error on my website. I don't know how to get rid off this Error.

Website was running on Wordpress and this problem occurs suddenly.


Here is the Exact error i'm Getting..
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@gameshunt.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
I have talk to my host and they said its your Script Problem ..

Waiting for any response/Suggestion on this issue... <3

Thank you
 
Last edited:
22 comments
Report it to ur hosting, its hosts problem.
These are common reasons for this issue,
.htacess problem or cannot allocate enough space.
 
rename your .htaccess to .htaccess2 and check if that would work.

my guess there is unallowed directive used in .htaccess.

and may be its from your host side or a bad configured apache web server if on VPS.

Highest Regards
Mohammed H
 
These generally are caused by 'high' permissions or improper directory permissions. Do what XSLTel told and make sure that all your dirs are correctly CHMODDED.
 
website is on shared hosting plan ...

and web host said its your script problem

You should still have error logs.
You can view them from Cpanel or sometimes in a directory within your ftp account. If not, ask your hoster for the logs.
The logs will tell us what the problem is.
 
75% this is from htaccess file and but remember this can happened if you install some plugin ( the plugin can make 500 internel server error) try to disable the latest installed plugin. Also if is on shared hosting then maybe is problem with your hosting provider

(Please see public_html permissions. Maybe someone changed the permissions)
 
I use search to find that .htaccess file and I found following 3

062e6d.jpg



But when I go to these directory I could not found any .htaccess file, even I have tried to find text on the page by Ctrl+F

:(
 
rename your .htaccess to .htaccess2 and check if that would work.

my guess there is unallowed directive used in .htaccess.

and may be its from your host side or a bad configured apache web server if on VPS.

Highest Regards
Mohammed H


Alright Above trick worked great ... I have just rename .htaccess to .htaccess2


Should I keep as it is ?


and here is my all 3 .htaccess permission

35dafc.jpg
 
Hello,

glad to hear its worked for you.

mind posting the content of .htaccess here to analyze it so we can give you where the problem was ??

Highest Regards
Mohammed H
 
Here you go though renaming .htaccess fix only homepage.. I cannot access any other page I got this error

Not Found

The requested URL /super-street-fighter-iv/ was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Code:
# BEGIN WPSuperCache
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
AddDefaultCharset UTF-8
RewriteCond %{REQUEST_URI} !^.*[^/]$
RewriteCond %{REQUEST_URI} !^.*//.*$
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
RewriteCond %{HTTP_USER_AGENT} !^.*(2.0\  MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\  Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\  Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\  OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\  CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\  Obigo|LGE\ VX|webOS|Nokia5800).* [NC]
RewriteCond %{HTTP_user_agent} !^(w3c\  |w3c-|acs-|alav|alca|amoi|audi|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-|dang|doco|eric|hipt|htc_|inno|ipaq|ipod|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-|lg/u|maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|palm|pana|pant|phil|play|port|prox|qwap|sage|sams|sany|sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo|teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|wap-|wapa|wapi|wapp|wapr|webc|winw|winw|xda\  |xda-).* [NC]
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f
RewriteRule ^(.*) "/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz" [L]

RewriteCond %{REQUEST_URI} !^.*[^/]$
RewriteCond %{REQUEST_URI} !^.*//.*$
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
RewriteCond %{HTTP_USER_AGENT} !^.*(2.0\  MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\  Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\  Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\  OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\  CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\  Obigo|LGE\ VX|webOS|Nokia5800).* [NC]
RewriteCond %{HTTP_user_agent} !^(w3c\  |w3c-|acs-|alav|alca|amoi|audi|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-|dang|doco|eric|hipt|htc_|inno|ipaq|ipod|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-|lg/u|maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|palm|pana|pant|phil|play|port|prox|qwap|sage|sams|sany|sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo|teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|wap-|wapa|wapi|wapp|wapr|webc|winw|winw|xda\  |xda-).* [NC]
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f
RewriteRule ^(.*) "/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html" [L]
</IfModule>

# END WPSuperCache

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# Protect the htaccess file
<files .htaccess>
order allow,deny
deny from all
</files>

# Protect wpconfig.php
<files wp-config.php>
order allow,deny
deny from all
</files>

# Disable directory browsing
Options All -Indexes

# Protect from spam comments
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
RewriteCond %{HTTP_REFERER} !.*www.gameshunt.org.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]
</IfModule>

# No ETags
Header unset ETag
FileETag none

# Caching -- mod_headers
<IfModule mod_headers.c>

# 1 Year = 29030400s = Never Expires
<filesMatch "\.(ico)$">
Header set Cache-Control "max-age=29030400, public"
</filesMatch>

# 1 Month = 2419200s
<filesMatch "\.(css|pdf|flv|jpg|jpeg|png|gif|swf)$">
Header set Cache-Control "max-age=2419200, public"
</filesMatch>

# 2.5 Days = 216000s
<filesMatch "\.(js)$">
Header set Cache-Control "max-age=216000, private"
</filesMatch>
<filesMatch "\.(xml|txt)$">
Header set Cache-Control "max-age=216000, public, must-revalidate"
</filesMatch>

# 5 minutes = 300s
<filesMatch "\.(html|htm)$">
Header set Cache-Control "max-age=300, private, must-revalidate"
</filesMatch>

# Disable caching for scripts and other dynamic files
<FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$">
Header unset Cache-Control
</FilesMatch>
</IfModule>

# Caching -- mod_expires
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault A604800
ExpiresByType image/x-icon A29030400
ExpiresByType application/pdf A2419200
ExpiresByType image/gif A2419200
ExpiresByType image/png A2419200
ExpiresByType image/jpg A2419200
ExpiresByType image/jpeg A2419200
ExpiresByType text/css A2419200
ExpiresByType application/x-javascript A216000
ExpiresByType text/javascript A216000
ExpiresByType text/plain A216000
ExpiresByType text/html A300
<FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$">
ExpiresActive Off
</FilesMatch>
</IfModule>

# BEGIN GZIP
# mod_gzip compression (legacy, Apache 1.3)
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|xml|txt|css|js)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>
# END GZIP

# END WordPress
 
Hello,

ok rename .htaccess2 back to .htaccess

and remove this line from it
Code:
# Disable directory browsing
Options All -Indexes

I guess that directive causing that problem.

don't forget to get a backup of that .htaccess file

Highest Regards
Mohammed H
 
Status
Not open for further replies.
Back
Top