Tips to Fix Error 500 on WordPress Website

Number of View : 1746

Tips to fix error 500 on wordpress websiteMistertips friends website using wordpress as cms engine, this week had twice hit by Error 500: Internal Server Error, and it all started when the web hosting php update they patch. Actually, this error can be corrected very easily. Here mistertips will give you tips to fix error 500 on your wordpress website :

 
 
 

Tips 01 :  Change memory limit from your php.ini

  • If you have an access of PHP.ini file of the account/server then change the line in PHP.ini where line shows 32M to 256M :
    memory_limit = 256M;
  • If you do not have access of PHP.ini file then add this to an .htaccess file of your domain :
    php_value memory_limit 256M
  • Try to add this line to your wp-config.php file to increase allocated memory to PHP :
    define(’WP_MEMORY_LIMIT’, ‘256M’);

 

Tips 02 : Customizing .htaccess

  • Delete .htaccess then make new .httacees
  • Return the contents .htaccess such as default wordpress :

    # 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

  • If you still have Error 500, “refresh” your web with create refresh.html (empty page) and add some script on your .htaccess  :

    # DO NOT REMOVE THIS LINE AND THE LINES BELOW
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^yourdomain.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.yourdomain.com$
    RewriteRule ^$ http://www.yourdomain.com/refresh.html [R=301,L]
    # DO NOT REMOVE THIS LINE AND THE LINES ABOVE

    Try to open your domain, if your domain redirect to refresh.html, then you succeed. Go back to open your .htaccess, then remove the script above. Now you can open your domain without error 500 again.

 

Tips 03 :  Ask your Webhosting.

 

If you liked these wordpress tips, help mistertips spread this website.

Related Post :

Leave a Reply