WordPress Security on a cPanel Server: A Practical Hardening Guide
A step-by-step guide to securing business WordPress sites on cPanel: safe updates with WP Toolkit, plugin hygiene, correct file permissions, tidy admin accounts and stronger login protection.
Securing WordPress on a cPanel server comes down to five habits: keep WordPress core, plugins and themes updated (WP Toolkit makes this much easier where your host provides it), remove anything you do not use, set correct file permissions, keep admin accounts few and personal, and put real protection in front of the login page. None of these steps needs special software or a large budget, but together they close most of the doors attackers use against small business websites. This guide walks through each one in the order we apply them when we take over a site.
Why WordPress on cPanel needs its own checklist
WordPress itself is actively maintained, and the official hardening documentation is clear that older versions do not receive security fixes. The risk usually sits around the core: outdated plugins, abandoned themes, shared admin passwords and files left writable by the web server. On a cPanel server there is an extra layer to think about, because one cPanel account often hosts several sites, and one neglected site can become the way in for the others in the same account.
The good news is that cPanel gives you tools to manage most of this from one place, especially WP Toolkit, which many hosts include with cPanel & WHM. Its exact features depend on your version and on whether your host offers the standard or the Deluxe edition, so check what you see in your own cPanel before planning around a specific feature.
Step 1: Updates you can actually keep up with
Know what WordPress already does on its own
According to WordPress's own upgrade documentation, minor core releases (the security and maintenance ones) update automatically by default. Major core releases update automatically only on fresh installs made with WordPress 5.6 or later. Plugins and themes are not updated automatically unless you turn that on, apart from rare cases pushed by the WordPress.org security team for critical issues.
That means the parts most likely to be vulnerable, plugins and themes, are the parts that are left to you.
Use WP Toolkit to centralize updates
If your cPanel has WP Toolkit, open it and review every installation it detects:
- WordPress core: leave automatic minor (security) updates on for production sites. WP Toolkit's documentation advises against disabling core autoupdates.
- Plugins and themes: the setting WP Toolkit recommends is "Defined individually, but security updates are autoinstalled", so security fixes go in even for plugins whose regular updates you prefer to review by hand.
- Vulnerability checks: current versions of WP Toolkit compare core, plugins and themes against public vulnerability databases and flag affected sites with a severity score. Treat a "Security risk" tag as a task for today, not next month.
- Smart Updates (Deluxe): this premium feature tests an update on a temporary clone of the site and only applies it to the live site if it does not detect problems such as PHP errors. It is useful, but the documentation is explicit that it does not replace backups.
Back up before you update
WordPress recommends backing up before updating, and verifying that the backup is usable. On cPanel, confirm that your account backups (or JetBackup, if your host provides it) include both the files and the database, and that you know how to restore a single site.
Step 2: Plugin and theme hygiene

Every plugin is code from a different author running with full access to your site. A short, well-maintained list is much safer than a long one.
- Delete, do not just deactivate. The WordPress hardening guide says to remove plugins you are not using. Deactivated plugin files still sit on the server and can still be reached.
- Remove unused themes. Keep the active theme and one current default theme for troubleshooting.
- Install only from trusted sources. Use the WordPress.org directory or well-known vendors. "Nulled" (pirated) premium plugins are a common way malware gets installed.
- Check that each plugin is still maintained. Look at the last update date and whether it is tested with your WordPress version. Replace plugins that have been abandoned.
- Avoid overlapping plugins. Two security plugins, two caching plugins or three form builders add risk and slow the site without adding value.
Step 3: File permissions and configuration
The official WordPress hardening guide gives a simple baseline:
| Item | Recommended permission |
|---|---|
| Directories | 755 |
| Files | 644 |
wp-config.php |
400 or 440 (readable only by you and the web server) |
On most cPanel servers PHP runs as the account owner (for example with PHP-FPM or suPHP), so files should be owned by the cPanel user, not by root or nobody. If you have shell access, the WordPress documentation shows how to reset permissions with find and chmod; run this only on the site's own directory, and test the site afterwards.
Two configuration changes are worth making in wp-config.php:
- Disable the built-in file editor with
define( 'DISALLOW_FILE_EDIT', true );. This stops anyone who gets into the dashboard from editing PHP files directly from the browser. WordPress notes it will not stop every attack, but it removes an easy one. - Keep secrets out of reach. Never leave copies such as
wp-config.php.bakorwp-config.oldin the web root, because the web server may serve them as plain text.
WP Toolkit's Security Measures section can apply a set of hardening changes for you, such as turning off XML-RPC pingbacks and checking the security of the wp-content folder. WP Toolkit applies the measures it considers critical to new installations automatically; for existing sites, back up, apply the critical measures first, test the site, then add the recommended ones. Some measures can be reverted if they break a plugin.
Step 4: Admin accounts and roles
- One person, one account. Shared logins make it impossible to know who changed what and hard to remove access when someone leaves.
- Avoid obvious usernames such as "admin" or "webmaster", as the WordPress hardening guide recommends.
- Give the lowest role that works. Content writers need Author or Editor, not Administrator.
- Review the user list every quarter and after every staff or agency change. Remove accounts you do not recognize and check for unexpected Administrator accounts, which can be a sign of compromise.
- Use unique, long passwords stored in a password manager, and separate the cPanel password from the WordPress one.
Step 5: Protect the login page
The WordPress login page is the most attacked URL on most sites. Layer the defenses:
- Turn on two-factor authentication for every account with Editor rights or higher. WordPress recommends two-step authentication in its hardening guide.
- Limit login attempts. Use a reputable plugin or, better, server-side protection. If your server runs Imunify360 or a web application firewall, it can block brute-force attempts before they reach WordPress.
- Add an extra gate for
/wp-admin/when it makes sense, such as HTTP password protection or allowing access only from your office IP. WordPress notes that this can breakadmin-ajax.php, so test carefully. - Force HTTPS so passwords never travel in clear text. On cPanel, AutoSSL and the Force HTTPS Redirect toggle make this simple.
- Disable XML-RPC if nothing on your site uses it (some mobile apps and integrations do).
A monthly WordPress security routine
- Review WP Toolkit for pending updates and vulnerability alerts.
- Confirm last night's backup exists and test a restore every quarter.
- Check the user list for unknown or unnecessary accounts.
- Delete unused plugins and themes.
- Look at the server's malware scanner reports for the account.
Get help securing your WordPress sites
If your business runs WordPress on cPanel and nobody owns these tasks, Core Florida IT can review your sites, apply the hardening steps and set up a routine that keeps them current. We support businesses across Miami-Dade and South Florida, with remote support nationwide. Request a free IT assessment and we will tell you where your sites stand.


