- Newest
- Most votes
- Most comments
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:
-
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.
-
Navigate to the plugins directory: Once connected via SSH, navigate to the WordPress plugins directory, which is typically located at /wp-content/plugins/.
-
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.
-
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.
-
Check permissions: Ensure that you're using sudo when running commands, as you might encounter "permission denied" errors otherwise.
-
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
Relevant content
asked a year ago
- AWS OFFICIALUpdated 2 years ago
