- AuthorPosts
- December 17, 2020 at 1:41 pm #32312Philip ThompsonGuest
I have a failed site and a good backup. The problem is that when I restore at new hosting, the site kind of restores, but you can’t login. Everytime you try to login the site asks you to download wp-login.php file. It doesn’t appear to be the file. It appears that php won’t run. The new site host is apache and the old one was ngix i believe. How do I get the restore to work? I have created a wordpress site and then added plugin and then added backup archive. It just spins a long time and eventually you kind of get the site, but you can never login. Only asked to download wp-login.php.
December 17, 2020 at 1:56 pm #32329Joseph WKeymasterHi Philip!
The problem you described could be related to the PHP configuration in your .htaccess file. There should be some code in that file that sets the application handler for specific PHP versions and the code in that file could be set to the wrong version, especially if your previous web server was using a different PHP version than your current one. The code should look something like this:
AddHandler application/x-httpd-php71.php
Once that code is updated to match your current server’s PHP version you should be able to login as expected. If you need any help making that modification then your hosting provider is your best option, they have all of the access necessary to make these changes on your behalf.
Please let us know if you have any other questions for us!
December 18, 2020 at 5:29 pm #32378Philip ThompsonGuestThis didn’t work. I have transferred to new host from siteground to dreamhost. I backed up site and then installed WordPress at new site. Installed total upkeep premium using key again and uploaded backup to site. Database encryption key was put in from old site and verified. I select backup archive and it imeadiatly prompts me to download file admin.php. I have tried save and cancel and both end up leaving a spinning small wheel on plugin. I try to click anywhere else and it keeps prompting to download php files. Is my site gone?
December 18, 2020 at 6:10 pm #32386Jesse OwensKeymasterHi Philip-
From what you’ve described, it sounds like when you do your backup restoration, it’s also restoring the .htaccess file from your old host, which might have used a different PHP handler than your new host.
If you can’t find the
Addhandler
line to delete from your restored .htaccess, another thing you can do is to try using the WordPress Default .htaccess rules.First, make sure to make a copy of the .htaccess you’re using now, you can name it something like
.htaccess.bak
, and then make a new .htaccess file using just the default code:# BEGIN WordPress RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress
Here are DreamHost’s instructions for editing the .htaccess file. If you’re still stuck, I highly recommend contacting DreamHost Support so they can help you out directly.
- AuthorPosts
- The topic ‘Site Migration’ is closed to new replies.