1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

500 Internal Server Error

Discussion in 'Web Hosting' started by olienet, Sep 30, 2014.

  1. olienet

    olienet Newbie

    Joined:
    Dec 19, 2013
    Messages:
    26
    Likes Received:
    0
    Hello,

    I got a few problem here. Why my website always show 500 Internal Server Error.
    It always happen, almost everyday.
    I've already discuss this with my hosting provider.
    Their answer is:

    Hi,

    Your website script is overuse the server resources.
    I have restart the services, your website can be access now.

    If happen again, please check your website script as it probably is cause by the website theme or plugin.
    Thanks.


    But i don't know how to track which themes or plugin that overuse the server resource.
    That hosting has 1 main website and 2 on addon domain.
    Here the other answer from my conversation:

    "Hi,

    I have restart the services, please try again.
    We are not sure which script or plugin causing the problem.
    You have to check it by yourself.
    Thanks."

    "Hi,


    I believe the memory usage is cause by your main domain kadkahwinonline.com.
    We can't trace which script is causing the problem, the server log only show your main page overuse the resources.
    Thanks."


    Please help me :)
     
  2. bartosimpsonio

    bartosimpsonio Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 21, 2013
    Messages:
    8,871
    Likes Received:
    7,472
    Occupation:
    ZLinky2Buy SEO Services
    Location:
    ⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩
    Home Page:
    Normally it's a database connection issue. Either you have low traffic and the database goes away, or you have high traffic and too many connections.
     
  3. dandan594594

    dandan594594 Power Member

    Joined:
    Jan 31, 2013
    Messages:
    533
    Likes Received:
    222
    Location:
    UK
    This will also happen on shared hosting if you are running auto blog plugins/scripts and other things like social sharing plugins as these have a high impact on CPU usage.
     
  4. olienet

    olienet Newbie

    Joined:
    Dec 19, 2013
    Messages:
    26
    Likes Received:
    0
    I think it has medium traffic but got too many connection.
    Okay thanks, i will check sharing plugin. I think i got 2 social sharing plugin including Jetpack sharing plugin.

    regard
    olie
     
  5. spmcnerd

    spmcnerd Regular Member

    Joined:
    Dec 20, 2010
    Messages:
    309
    Likes Received:
    106
    In cPanel towards the bottom find Cron and look to see if something is running (at bottom).
    Are you auto posting? WPRobot wink wink
    Not knowing what plan you're on...
     
  6. olienet

    olienet Newbie

    Joined:
    Dec 19, 2013
    Messages:
    26
    Likes Received:
    0
    Can i redirect that website first to Facebook fan page? (for the time being)
    I'm not using any autopost. That website is e-commerce website.

    regard
    olie
     
  7. dandan594594

    dandan594594 Power Member

    Joined:
    Jan 31, 2013
    Messages:
    533
    Likes Received:
    222
    Location:
    UK
    Is it a e-com using amazon plugins? If so that will be your problem. I used to find turning off the amazon auto update info option to help. For social sharing try and have a few second delay between to help.
     
  8. olienet

    olienet Newbie

    Joined:
    Dec 19, 2013
    Messages:
    26
    Likes Received:
    0
    I got a report:

    Hi,

    After check further, we found your .htaccess file entry is causing the error.
    Please fix the entry in .htaccess to solve the problem.
    Thanks.

    Can i know if .htaccess got auto update features? Because after i check the .htaccess, the code that in that file wasn't the same with the one that i use before.

    This is the code that i'm using:

    # BEGIN WordPress


    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access 1 year"
    ExpiresByType image/jpeg "access 1 year"
    ExpiresByType image/gif "access 1 year"
    ExpiresByType image/png "access 1 year"
    ExpiresByType text/css "access 1 month"
    ExpiresByType application/pdf "access 1 month"
    ExpiresByType text/x-javascript "access 1 month"
    ExpiresByType application/x-shockwave-flash "access 1 month"
    ExpiresByType image/x-icon "access 1 year"
    ExpiresDefault "access 2 days"
    </IfModule>


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


    <IfModule mod_deflate.c>
    # Compress HTML, CSS, JavaScript, Text, XML and fonts
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
    AddOutputFilterByType DEFLATE application/x-font
    AddOutputFilterByType DEFLATE application/x-font-opentype
    AddOutputFilterByType DEFLATE application/x-font-otf
    AddOutputFilterByType DEFLATE application/x-font-truetype
    AddOutputFilterByType DEFLATE application/x-font-ttf
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE font/opentype
    AddOutputFilterByType DEFLATE font/otf
    AddOutputFilterByType DEFLATE font/ttf
    AddOutputFilterByType DEFLATE image/svg+xml
    AddOutputFilterByType DEFLATE image/x-icon
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/javascript
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/xml


    # Remove browser bugs (only needed for really old browsers)
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    Header append Vary User-Agent
    </IfModule>


    # END WordPress

    After that it become like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]RRewriteCond %{REQUEST_FILENAME} !-fRRewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]</IfModule>
    ## END WordPress

    regard
    olie