Skip to content

I can't loginto my WordPress dashboard due to bad plugin

0

Hi there, I am new to AWS and VPS so that I do not know how to delete WordPress plugin since I can not log into my main wordpress dashboard, is there anything that I can do? please, thanks!

asked 2 years ago186 views

1 Answer
0

If you're unable to log into your WordPress dashboard due to a problematic plugin, there are a few steps you can take to resolve this issue:

  1. Access your WordPress files via SSH: You can connect to your AWS instance using SSH. This method allows you to directly access and modify your WordPress files.

  2. Navigate to the plugins directory: Once connected via SSH, navigate to the WordPress plugins directory, which is typically located at /wp-content/plugins/.

  3. Rename or remove the problematic plugin: To deactivate a plugin without accessing the dashboard, you can rename its folder. This effectively deactivates the plugin. Use a command like:

    sudo mv plugin-folder-name plugin-folder-name-deactivated

    Replace "plugin-folder-name" with the actual name of the plugin you suspect is causing issues.

  4. Use WP-CLI (if available): If WP-CLI is installed on your server, you can deactivate plugins using command-line instructions. For example:

    sudo wp plugin deactivate plugin-name

    Replace "plugin-name" with the actual name of the plugin.

  5. Check permissions: Ensure that you're using sudo when running commands, as you might encounter "permission denied" errors otherwise.

  6. Verify changes: After deactivating the plugin, try accessing your WordPress dashboard again. If successful, you can then properly manage your plugins through the dashboard interface.

Remember to be cautious when modifying files directly on your server. It's always a good idea to have a backup of your WordPress site before making any changes.

If you continue to have issues, you may want to check your file and folder permissions, as incorrect permissions can sometimes cause similar problems with WordPress functionality.

Sources
Activate a WordPress plugin | AWS re:Post
Trying to disable a plugin through ssh but it says permission denied | AWS re:Post
Wordpress Issues Lightsail | AWS re:Post

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.