sega — 2012-01-30T05:14:41-05:00 — #1
It appears I've screwed up my WP.
I was installation some security plug-ins advised and those plug-ins now stop me from accessing the admin menu. I tried to restore the SQL but this still did not fix it. I think the plug-ins must have hid the login URL for security measures. I know I should have known better, but I thought an SQL restoration would have solved it, which it has not. I've also deleted the plug-ins in the directory,which still did not do anything. Even though it's my own site I still feel I need to solve this.
The installed plug-ins I installed were:
- Plugin CHAP Secure Login
- Plugin Login Lockdown
- Plugin AskApache Password Protect
- Plugin WP-DB-Backup
- Plugin WP-Security-Scan
I don't know if there is somewhere in the SQL database which allows me to see the URL for the admin. I think I've really done it this time!
aussiejohn — 2012-01-30T06:05:16-05:00 — #2
It might be worth checking the permissions on the /wp-admin directory and checking the .htaccess file to see if there are any rewrites there preventing you from accessing /wp-admin in the normal fashion.
sega — 2012-01-30T07:54:34-05:00 — #3
/wp-admin, /wp-content and /wp-includes are set to 755. I really want to debug this and get this fixed.
molona — 2012-01-30T09:42:42-05:00 — #4
Well, if you can't do anything at all...then remove the offending plugins, get to your admin account and log in, disable them all, and after that re-enable one by one to know who did the job!.
How to remove the plugins? Well, it is a bit drastic but this is as easy as using your FTP account and removed them from the wp-content\plugins folder.
kohoutek — 2012-01-30T09:46:04-05:00 — #5
By removing the plugin files, you don't remove the plugin data in your db, though, so I'd clean up the database as well.
sega — 2012-01-30T12:51:07-05:00 — #6
I've deleted the plug-ins in the WP plug-ins folder in the FTP, I've also replace the SQL database with a backup. Is there a way I can find the login page in SQL, maybe this would help. The problem is still not resolved after all this, so I am puzzled on what else to do, apart from creating a completely fresh WP installation.
aussiejohn — 2012-01-30T15:41:05-05:00 — #7
So /wp-admin doesn't redirect you to /wp-login.php?
I know AskApache PassPro messes with your .htaccess files. So it might be worth checking both the wordpress root folder and the /wp-admin folder and removing the AA PassPro sections from their .htaccess files.
sega — 2012-01-30T15:58:08-05:00 — #8
Nope I get a 404 error. I too think the error is AskApache PassPro, I will work on it and see what I find.
sega — 2012-01-31T06:26:00-05:00 — #9
Thanks for your advice. AskApache certainly did do something in the .htaccess file. I removed all the code it added but it did not fix it.
- Replaced the wp-config files with older files
- Replaced the SQL database
- Replaced the .htaccess files
- Deleted the security plug-ins
This situation reminds of when I use to set passwords which were too complex for anybody to remember, in the end I would end up forgetting the password.
There is one thing left to do, which I feel would be inevitable at this stage, and this is to completely replace WP installation and start from the beginning. I will eventually isolate the problem. I feel one of the plug-ins changed the location of the WP-admin and WP-login locations, to an undisclosed URL.
Edit: Found this post - http://wordpress.org/support/topic/askapache-password-protect-problem-1. Seams to be the offending plug-in. I will reset the plug-ins folder and see how it goes.
sega — 2012-01-31T07:48:42-05:00 — #10
I've now managed to log in with this /wp-login.php?redirect_to=http%3A%2F%2Fwww.exampledomainname.com%2Fwp-admin%2F&reauth=1, but when you're logged in you still can't make edits as I get the 404 message. I've reset the plug-ins folder too, but still no hope.
sega — 2012-01-31T08:04:09-05:00 — #11
I've since fix the issue. AskApache created a .htaccess file in the /wp-admin folder which cause the issue. Once deleting this it worked okay. Never using that plug-in again