• Hello guys hope you are doing fine.
    So i had my website running okay but for last 3/4 days it was showing 500 internal server error.I did everything i could like .htaccess fix/renaming plugin folder/php memory increase/wp content and include file replacement .. but still no luck. so freshly installed wordpress again. My question is how do i get it exactly like it was before? Cause i had a edited theme(spent lotta time making it the way i like) and some posts.
    i have all the files and sql file.what could be easy way to import my theme along with all data to my new wp site?

    Thanks.Hope i made myself clear.Any suggestion would be appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You can use phpMyAdmin to import the .sql file to your new install.

    Chances are that editing your themes files is what caused the 500 error. You may want to take a look at your server error logs to see if they provide any insight into this.

    FWIW, you should always make changes to themes via a child theme, rather than editing original theme files. It helps to avoid problems like this.

    Thread Starter ledokt

    (@ledokt)

    @kjodle thanks for the reply.Well i just did that with my localhost and it just doesnt load the site accurately and i cant even access dashboard.I guess its a bad idea to use a live sites data and database in localhost. Is there anyway to actually fix that 500 internal server error? because if its fixed i dont have to go through all the hassle to setup everything again and again.

    I had a 500 error also, ended up being php-xml not being installed when I moved it all to a VM. Is that all you changed? You were “just editing themes” and bam it broke? Doesnt make sense, you’re leaving out something you were doing.

    Yes, in theory you can restore your site like you said. mysqldump the database, import it into a new db. Copy over your wp directory and fire it up. It can also be a theme causing the problem. I had a working copy of my site but when I brought it over,white screen. So I disabled the theme and installed twentyfifteen theme or something like that. When I previewed my previous theme I noticed the white screen and then looked at php errors, apache, site errors, etc..

    Edit your wp-config.php and enable WP_DEBUG..
    define( ‘WP_DEBUG’, true );

    Access site and see what errors you get.

    Is there anyway to actually fix that 500 internal server error?

    500 errors are fairly generic. Checking your server error logs will give you the most information about it, but even then you may still not know the root cause.

    I guess its a bad idea to use a live sites data and database in localhost.

    Not necessarily. But your local server and your online server are set up differently.

    Edit your wp-config.php and enable WP_DEBUG..

    This is always a good idea when attempting to deal with WordPress issues. However, in the case of a 500 error, you may not even be able to get to a screen where this information is displayed.

    you’re leaving out something you were doing

    It’s possible that you are. Taking good notes is always a good idea. (It is advice that I need to take myself more often.)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘how to recover wp site from a crash site data?’ is closed to new replies.