WP Recover
WP - Recover is a script to allow easy recovery when you accidentally do something stupid in Wordpress.
The only function currently is to allow you to reset the Site URL parameter if you have changed it in the web interface and are then unable to log in if you have entered it incorrectly.
The sript is released under the GPLv3 license and is free for anyone to use.
If you have issues with the script, or wish to request a feature please log a bug at http://jira.opensourcebattlefield.com/browse/WPRECOVER.
Download
Usage
1. Upload recover.php to your root wordpress folder (the same folder that wp-config.php exists in).
2. Open your wp-config.php file however you would like and get the first five charaters of the AUTH_KEY string (excluding the ' )
3. In a web browser access http://www.yoursite.com/yourwordpressfolder/recover.php
4. Enter the new URL for your site (ensuring it is in the format 'http://www.yoursite.com/yourwordpressfolder' without the '')
5. Select which option you would like to update either the "home" option or the "siteurl" option or both.
6. Click Submit
7. Once you receive a confirmation message DELETE recover.php from your wordpress folder. Leaving it there is a DRASTIC security risk.
8. If you try to update one of the options and you are still unable to access your blog correctly try the "both" option.
** Can't Find AUTH_KEY in wp-config... See below **
1. In a web browser open up https://api.wordpress.org/secret-key/1.1/salt
2. Copy the contents of the page that come out it will look something similar to this:
define('AUTH_KEY', 'R_cLF7iD_Ve<Km!C:SQ@ pyZAH<-wn.)*bEI18zqXe@@}+JS~fBv^vr|p:Gc^&4<');
define('SECURE_AUTH_KEY', '`[cU.|~)@1K}?XWMnH.Sr%iJ_DSlyO-,P+Y~8C,zb_Nual?qyUxfr-P|{!}*||*s');
define('LOGGED_IN_KEY', '|VeJ$| !&~0,zLjN-Mm;2ZpjO|p8B2;*zG:Be-jaRF-; :h(liAD+_#6YndQNhUo');
define('NONCE_KEY', 'b<mGz]P2M6G?g~y0Ii?3||uH8p{(,+fes;Vl#2:rQ*Rf8_3G$7^akiw@jQjN{P)B');
define('AUTH_SALT', 's$1NGY;gNs0kRjW +Sn`fH%=!7HdH[zz_>_MG2HZ$uuzUhL?_+$FvHdS?J)S331^');
define('SECURE_AUTH_SALT', 'GK#=SA1XF8V&*+3F+ZrukN,L=+o|JBGoyuh?|De;SLP*LiKURGtq28Gk4c-K)b:y');
define('LOGGED_IN_SALT', '@O2spK(S.-BSh@}2)-~LGGEt |P&7=00`JXOV-FmYr2&#U^Ggl-rv}7i53b1,+m^');
define('NONCE_SALT', '-I(?FAf.~FPd2)Mnha;%Ws88bsx}*/Gt](aAw+I-t++v,>+7=c3}p|1@UNh.RiYv');
3. Copy these into your wp-config.php file in your wordpress folder (you can put them after the line "define('DB_COLLATE', '');"
4. Note down the first five characters of the AUTH_KEY string above (in this case it would be R_cLF )
5. Run the instructions under Usage above
6. The above lines that are generated using the wordpress API are used by newer versions of Wordpress. You may not have some or all
of these if the version you originally installed did not define these. You should not experience any issues by adding these, they
are primarily used for encrypting Cookies.
Comments (2)
Jul 05
Anonymous says:
Thanks for this interesting script. Everything to install it is well explained ...Thanks for this interesting script. Everything to install it is well explained
but
what about the day something is broken at our site ?
What I have to do to recover ?
Please explain what kind of url to recover the broken site... ;-)
Thanks
Jul 09
stuart says:
Hi Anonymous, Not sure if I completely understand your query but I hope this an...Hi Anonymous,
Not sure if I completely understand your query but I hope this answers it:
The URL that you need to use is the full URL to the wordpress folder on your site. So for example if your wordpress blog exists in www/blog (sometimes known as public_html/blog) then you would use the URL http://www.yoursite.com/blog
If however your wordpress installation exists the root folder (i.e. www or public_html) then the URL you should use is http://www.yoursite.com
Hope that answers your question.
Stuart
Add Comment