Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

WordPress Secure Updates & Installs Guide

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Keeping WordPress, its themes, and plugins updated is essential for security and performance, but the update process itself can introduce vulnerabilities if not done securely. This guide walks you through configuring secure update and installation practices, covering everything from enabling automatic updates to verifying file integrity, so you can minimize risk and keep your site safe.

What You'll Need

  • Administrator access to your WordPress dashboard.
  • FTP/SFTP or cPanel access to your hosting account (for manual checks and backups).
  • A backup solution (plugin or hosting-level) – essential before any update.
  • Basic familiarity with WordPress admin menus.

Step-by-Step

  1. Take a full backup. Before changing any update settings or running an update, create a complete backup of your files and database. Use a plugin like UpdraftPlus or your host’s backup tool. Store the backup off-site (e.g., cloud storage).
  2. Enable automatic background updates for minor core releases. By default, WordPress auto-updates minor security releases. To ensure this is active, add the following to your wp-config.php file (before the “That’s all, stop editing!” line):
    define( 'WP_AUTO_UPDATE_CORE', 'minor' );
    For major releases, use true instead of 'minor' – but only if you’re comfortable with potential compatibility breaks.
  3. Configure automatic updates for plugins and themes. Add these filters to your theme’s functions.php file or a site-specific plugin:
    add_filter( 'auto_update_plugin', '__return_true' );
    add_filter( 'auto_update_theme', '__return_true' );
    To selectively enable, use a more complex filter that checks the plugin slug.
  4. Set up email notifications for updates. WordPress sends emails when automatic updates occur. Ensure the email address in Settings → General is correct. You can also add a filter to send notifications for manual updates:
    add_filter( 'auto_core_update_send_email', '__return_true' );
  5. Enable SFTP for file transfers. When installing plugins/themes manually via FTP, always use SFTP (port 22) instead of plain FTP (port 21). If your host only offers FTP, request SFTP or use the WordPress admin uploader with a secure connection (HTTPS).
  6. Verify file integrity with checksums. Use a security plugin like Wordfence or iThemes Security to run a file integrity scan. These tools compare your core files against the official WordPress checksums and flag any modifications.
  7. Test updates on a staging site first. If your host offers a staging environment, clone your site there and run updates. Check for errors, broken layouts, and plugin conflicts before updating the live site.
  8. Update in a specific order. When updating manually, do it in this sequence: first backup, then WordPress core, then plugins, then themes. After each step, check that the site still works.
  9. Use a maintenance mode plugin. For major updates, put your site into maintenance mode so visitors see a “briefly unavailable” message instead of a broken page. Many backup plugins include this feature.
  10. Review update logs. After any update, check the “Updates” screen and your email for success/failure messages. Also check the server error log (via cPanel or hosting dashboard) for PHP errors.

Common Mistakes

  • Skipping backups. The most common and costly mistake. Always back up before any update, even minor ones.
  • Using FTP instead of SFTP. Plain FTP transmits credentials and files in cleartext, exposing them to interception.
  • Ignoring compatibility. Updating a plugin that’s incompatible with your PHP version or other plugins can cause fatal errors. Check the plugin’s changelog and your PHP version.
  • Updating everything at once. Batch updates increase the chance of conflicts. Update one component at a time and test.
  • Leaving default admin username. Not directly an update issue, but a weak admin account makes it easier for attackers to exploit any update vulnerability.

Tips

  • Keep your PHP version up to date – WordPress recommends PHP 7.4 or higher. Check via Tools → Site Health.
  • Use a security plugin to enforce strong passwords and two-factor authentication for admin accounts.
  • Schedule updates during low-traffic hours to minimize impact if something breaks.
  • After updating, clear any caching plugins and your browser cache to see the latest version.
  • If you use a managed WordPress host, they often handle core updates automatically – check their policy.

Troubleshooting

Update fails with “Download failed” or “Connection timed out.” This usually indicates a server or network issue. Retry after a few minutes. If it persists, check your server’s firewall or contact your host.

White screen after update. This is often a PHP fatal error. Access your site via FTP/SFTP and rename the recently updated plugin/theme folder to deactivate it. Then check the error log for details.

Automatic updates not happening. Verify that the constants are defined correctly in wp-config.php. Also ensure your server’s cron (WP-Cron) is running – you can check by installing a cron plugin or viewing wp-cron.php in a browser.

Email notifications not received. Check your spam folder. If missing, add a filter to log emails or use an SMTP plugin to ensure reliable delivery.

Plugin update breaks site. Restore your backup immediately. Then update the plugin on a staging site to identify the conflict before retrying on live.

Frequently Asked Questions

Should I enable automatic updates for everything?

It’s generally safe for minor core updates and well-maintained plugins, but major updates can break things. A staging site test is recommended before enabling auto-updates for major releases.

How do I know if my site is using SFTP?

Check your FTP client settings – if the port is 22 and the protocol is SFTP, you’re using it. Most hosts support SFTP; if not, ask them to enable it.

What is the difference between a backup and a snapshot?

A backup is a copy of your files and database that you can restore. A snapshot is a point-in-time image of your entire server, often provided by hosts. Both are useful, but backups are more portable.

Can I update WordPress manually without FTP?

Yes, you can upload the new version via the WordPress admin by downloading the zip file and using the “Upload Plugin” feature, but you must first delete the old core files – this is risky. FTP is safer for manual updates.

Why does my site show “Another update in progress”?

This happens when a previous update didn’t complete. Wait a few minutes, then delete the .maintenance file from your WordPress root directory if it’s still there.

Do I need to update plugins if they’re not used?

Unused plugins can still be exploited, so either delete them or keep them updated. If you don’t need them, remove them entirely.