September 8, 2021 by Paul G. | Hosting, Plugins, WordPress Solutions

How to Install and Activate Plugins Via FTP Without Access to your WordPress Backend WP-Admin Dashboard

Shield Image

Imagine, your website is down and you need to install or activate a certain plugin, maybe you simply don’t have login access and time is of the essence. Trying to upload the plugin doesn’t do the trick, it’s not showing up as activated. This can be quite the pickle.

If you can relate to this scenario then keep reading, this is the perfect article for you.

In this tutorial, we will show you how to install and activate a WordPress plugin via FTP when you don’t have access to the wp-admin dashboard.

But first, what is FTP?

FTP is a protocol for transferring files over the internet. To use this protocol you’ll need to install an FTP program onto your computer, such as Filezilla, and connect your computer to your website via FTP by entering your login credentials.

You can get these credentials in your hosting dashboard, from your webmaster, or from your hosting company’s support team.

Note: If no port is specified and your login info isn’t connecting, try port# 21.

Once you’ve logged in to your WordPress installation using FTP, navigate to the “plugins” folder. You’d want to upload your plugin’s folder into that directory.

Remember – always backup before making any changes or updates! 😉

Next, navigate and log into phpMyAdmin. This is where you access the database of your WordPress install. phpMyAdmin is usually found in the dashboard of your hosting account. If you can’t access it there are tools you can use on your local device such as the phpMyAdmin free software tool where you’d need your database credentials to log in.

Again, you can get these credentials in your hosting dashboard, from your webmaster, or from your hosting company’s support team.

Find the database name that corresponds to the one you’d like to edit and click the plus icon to open its contents. Scroll down that list until you find the table name that ends with “options.”

How to use phpMyAdmin to modify fields in database tables

There are a few options when trying to find the right row:

  1. In the options table, click on the column heading “option_name” to sort the table rows by name. This should make active_plugins the first table row.
  2. Use the “Filter rows” box and type in “active_plugins”. Be sure to set your “Number of rows” to 500 so that it looks at all of the rows, not just the ones showing on the screen.
  3. Enter the following command in the SQL tab in the very top menu of the options screen:
    • SELECT* FROM wp_options WHERE option_name=’active_plugins’

Click the Edit link on the active_plugins row.

There might or might not be content in this field, and it might look confusing, we know.

Let’s break it down for you.

This is an example (cleaned up and easily read by a human) of an entry with active plugins:

A:5;{
i:0;s:19: “Akismet/Akismet.php”;
i:1;s:43:”dashboard-widgets-suite/dashboard-widgets.php”;
i:2;s:31:”disable-embeds-disable/disable-embeds.php”;
i:3;s:32:”disable-emojis/diable-emojis.php”;
}

This is WordPress database code so we’d need to keep the syntax(format).

Let’s take this example:

i:0;s:19: “Akismet/Akismet.php";

0 stands for the first item in the list so it has an index (i) of 0 and the string value (s) is 19 characters. It is one of the active active_plugins.

Note: A;5 { means there are 5 active plugins on the site.

To activate your plugin you’d want to follow the same format so if you’d like to add and activate another plugin, such as Shield Security, you’d add something like this to that input:

i:6;s:32:"wp-simple-firewall/icwp-wpsf.php";

As you can see we entered the name of the plugin directory followed by a slash (/) and the plugin file. Since it is going into the example above, we gave it an index value of 6 (i:6).

We want to keep the values in ascending order so that it looks good and has correct syntax.

If there is any whitespace you need to remove it before you save or it won’t work correctly.

Your end result (in this example) would then look like this:

A:5;{i:0;s:19: “Akismet/Akismet.php”;i:1;s:43:”dashboard-widgets-suite/dashboard-widgets.php”;i:2;s:31:”disable-embeds-disable/disable-embeds.php”;i:3;s:32:”disable-emojis/diable-emojis.php”;i:6;s:32:"wp-simple-firewall/icwp-wpsf.php";}

If everything looks good, hit “Go” at the bottom right of your screen.

There you have it, your plugin should be installed and active on your site, yay!

If there are any other issues be sure to run through all these steps again. Keep in mind, sometimes there are other code issues in your site that might be causing issues such as malware or broken code.

If you have any specific issues and still need help reach out to a WordPress backend developer so they can troubleshoot it.

We hope this article helped.

Comment below if it did and we’d love to know if you’ve ever ran into this type of issue and why!

Hello dear reader!

If you want to level-up your WordPress security with ShieldPRO, click to get started today. (risk-free, with our no-quibble 14-day satisfaction promise!)

You'll get all PRO features, including AI Malware Scanning, WP Config File Protection, Plugin and Theme File Guard, import/export, exclusive customer support, and much, much more.

We'd be honoured to have you as a member, and look forward to serving you during your journey towards powerful, WordPress security.

Try ShieldPRO Today →

ShieldPRO Testimonials
@captzeanie2016's Gravatar @captzeanie2016

Works great

A very good plugin

@ma3ry's Gravatar @ma3ry

Excellent Plugin

I have been using Simple Custom CSS plugin for many years. It is stable, easy and I love that it colour codes to show your errors. Absolutely five stars for this one!

@swier's Gravatar @swier

Still (after three years)very pleased

Hi, Have been this tool for over three years now. Still very pleased with it. certainly with all the extra’s! Just moved to a new provider. Now even faster!

@gfields108's Gravatar @gfields108

Excellent security plugin

This plugin works very well. You may have to adjust the Transgression Limit in the IP Manager to be more lenient. I had some clients locked out of their sites.

Leave a Comment

Your email address will not be published. Required fields are marked *

Click to access the login or register cheese