Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Wordpress 500 Internal Server Error
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Wordpress 500 Internal Server Error

Hi

I have just moved my wordpress blog from one cpanel server to other by using backup and WHM restore, now all webpages are giving 500 Internal Server Error. I have added below lines in .htaccess by that some page get start loading but wp-admin and other old pages still giving 500 error. Can anyone help me on this.

BEGIN WordPress


RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

END WordPress

Thanks in advice for your help.

Comments

  • Your host can help you

    If you have root access, check Apache error log

    Paste the log here

  • Backup and whm restore usually don't lead to any website issues. You might wanna check the backup logs from old server if the backup was successful. It at times saves incomplete backups too.

  • agoldenbergagoldenberg Member, Host Rep

    Change permissions on your .htaccess to 777 login to WordPress back end save permalinks should fix it.

  • Most likely you didn't enable mod_rewrite. So enable it using the following command

    a2enmod rewrite

    and then reload or restart Apache2 and I hope it will fix your problem.

  • jarjar Patron Provider, Top Host, Veteran
    edited January 2014

    There is only one place that can provide the answer.

    /usr/local/apache/logs/error_log

    I don't recommend trying a bunch of random fixes, just get the answer from the logs and make the necessary change. Share the error log entry here if you need help interpreting it.

    • Check under what user apache is running. Your files might simply have the wrong permission. 644 for files and 755 for folders are safe as default.

    Create a test.php with the content below.

     <?php echo shell_exec('whoami'); ?> 
    • Check if mod_rewrite is enabled. Info. since WP 3.0
     # BEGIN WordPress
    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    
    # END WordPress
    
  • dhamaniasaddhamaniasad Member
    edited January 2014
    • Rename .htaccess this file to __htaccess
    • Upload an empty file and rename it to .htaccess
    • Change the permissions on .htaccess to 666 (rw-rw-rw)
    • Set permalinks to a different setting, save it, then switched it back to your usual setting.
    • Change the .htaccess file permissions back to 644 (rw-r--r--)

    I've had this problem before when I moved a few WP blogs, and IIRC, these are the steps that I followed.

Sign In or Register to comment.