Skip to main content

Here are the steps to deactivate a single WordPress plugin using SSH in Linux on an AWS Lightsail instance. This can be used in other platforms as well.

  1. Log in to your AWS Lightsail instance using SSH.

  2. Navigate to the WordPress installation directory. This can be found in the ‘htdocs’ directory if you installed WordPress using the default settings. Use the following command to navigate to the directory:

cd /opt/bitnami/apps/wordpress/htdocs/

3. Once you are in the WordPress installation directory, navigate to the wp-content directory:

cd wp-content/

4. Navigate to the plugins directory:

cd plugins/

5. Find the directory of the plugin you want to deactivate. You can list all the plugins using the ls command. For example, if you want to deactivate the hellodolly plugin, use the following command:

mv hellodolly hellodolly.disabled

6. Once you have renamed the plugin directory, the plugin will be deactivated. You can verify this by visiting your WordPress site and checking if the functionality provided by the plugin is no longer available.

That’s it! You have successfully deactivated a single WordPress plugin using SSH in Linux on an AWS Lightsail instance. If you want to reactivate the plugin, simply rename the directory back to its original name.

Share the love in comments or ask us something.

Follow us on

YouTube

Instagram

shivam sagar

Shiv has been working at Brandviser Melbourne as a lead web solution and marketing consultant.

One Comment

  • Hi Shivam,

    Thanks for this tutorial, it was straight to the point and easy to understand. I was already thinking it would be very difficult for me to delete a plugin without accessing the wordpress dashboard.

Leave a Reply