• So this early morning I’m having a joyous time trying to import a backup of my local wordpress website. Trying to update my local server from what it was running to the latest version of Ubuntu Server. I installed LAMP with Apache2, PHP7.0, coming from php5 (I can’t imagine that is the issue, but it may be?)

    Anyways I had everything backed up, but when I went to import it all I’m getting 404 on the main index.php and any posts. However I am able to get into /wp_admin/ no problem. I can see all my posts there, and all the content associated with it. Yet I cannot access any of the actual pages. This may be a php issue or apache issue or even a mysql issue, I’m not entirely sure. I don’t see why I can’t just import my posts and be on my way? Especially since when I installed wordpress it showed the default page/post no problem. So what could be the issue?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Could it be your permalinks ? The .htaccess file is not correct.
    So Login to the dashboard, go to Settings > Permailinks, choose the required style and SAVE, you have to do the SAVE even if the setting is not changed otherwise the .htaccess file is not updated.

    Otherwise look at your server logs, and PHP logs.

    Thread Starter killerxtreme

    (@killerxtreme)

    Oh sorry I meant to add this to my original post. I’ve checked permalinks, doesn’t change anything. I’ll have to check my logs to see if anything is coming up.

    Thread Starter killerxtreme

    (@killerxtreme)

    I think I may have figured it out, when I backed up my mysql database then imported it into the new system there was a small difference. Within my mysql database I had to change a line that kept pointing at /var/www/ to now point to the new /var/www/html/

    go figure.

    If that doesn’t stop triggering 404 error. You can try running the following commands in terminal
    user@users-desktop:~$ a2enmod rewrite
    user@users-desktop:~$ sudo service apache2 restart

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Importing a WordPress Backup failing.’ is closed to new replies.