Skip to content
Updates and recovery Advanced

WordPress Updates on Shared Hosting

Shared hosting limits break WordPress updates in predictable places. What each limit does to an update, and a routine that works on cheap plans.

WordPress Updates on Shared Hosting

Most updates that fail on shared hosting do not fail because of a bad plugin. They fail because the host does exactly what it was configured to do: stop a PHP process after 30 seconds, refuse it more than 128 MB of memory, or cap the number of files the account may hold. The same update that takes four seconds on your staging server can die halfway through on a €5 plan, and leave the site in a state nobody tested.

Anyone who looks after client sites meets these plans sooner or later. This article explains what a WordPress update actually asks of the server, which limit breaks which step, and the routine I use on sites where I cannot change the hosting. For the wider process across many sites, see the guide on how to update WordPress safely at scale.

What one update asks of the server

When you click Update in wp-admin, WordPress does the whole job inside a web request. It downloads the zip to a temporary file, unpacks it into wp-content/upgrade, moves the current plugin folder aside to wp-content/upgrade-temp-backup (since WordPress 6.3), copies the new files into place and cleans up. A core update does the same for thousands of files and writes a .maintenance file to the site root, so visitors see the familiar “Briefly unavailable for scheduled maintenance” message while the files are swapped.

How many updates share one request depends on where you click. The Update now link on the Plugins screen sends one request per plugin. The Update Plugins button on Dashboard > Updates runs every selected plugin in a single request, one after the other. On a plan with a 30-second ceiling that difference decides whether the tenth plugin gets updated or the process is killed while copying the sixth.

Five limits that break updates

Execution time

Shared plans usually set max_execution_time to 30 or 60 seconds. WordPress asks for more time during a core update by calling set_time_limit(), but a host can disable that function, and many enforce a hard ceiling outside PHP altogether, in the PHP-FPM pool or in the proxy in front of it. PHP’s own setting has no say there.

A killed process is the worst kind of failure. WordPress restores the copy it moved aside only when it sees the error itself; a worker that the host terminates from outside gets no chance to clean up. You end up with part of the new version on disk, or an empty plugin folder. With core there is one small mercy: WordPress ignores a .maintenance file older than ten minutes, so a site stuck on the maintenance message comes back on its own. Its files may still come from two versions.

Memory

On shared hosting memory_limit is typically 128 MB or 256 MB. In wp-admin WordPress tries to raise its own limit to WP_MAX_MEMORY_LIMIT, 256 MB by default, but only where the host lets PHP change the value. A limit set with php_admin_value or locked in the control panel stays where it is. Unpacking is the hungry step. WordPress uses the ZipArchive extension when it is loaded and falls back to PclZip, which reads the archive into memory. With a page builder and a dozen admin plugins already loaded, a big zip such as WooCommerce can push it over the edge. The result is a white screen, or an “Allowed memory size exhausted” line in the error log.

Disk space and file count

For a moment during each update the server holds the zip, the unpacked copy and the old version in its backup folder. That is roughly three times the plugin’s size and three times its file count. Cheap plans often cap inodes as well as gigabytes, and backup archives kept in wp-content eat into both. The symptom is “Could not create directory” or “Could not copy file”, which sounds like a permissions problem and usually is not.

File ownership and FS_METHOD

Before it writes anything, WordPress decides how to write. get_filesystem_method() creates a temporary file in wp-content and compares its owner with the owner of WordPress’s own files. If they match, it writes directly. If they do not, it asks for FTP credentials.

Most modern shared hosting runs PHP as the account user, so the owners match and you never see the form. Older setups run PHP as the web server user. The quick fix you will find everywhere is define( 'FS_METHOD', 'direct' ); in wp-config.php. The form goes away, but every updated file now belongs to the web server user: you cannot edit or delete it over FTP, and other accounts running as that user can. FTP credentials in wp-config.php work too, at the cost of a plain-text password in a file that leaks more often than people think. My advice: ask the host to switch the PHP handler, and if they cannot, treat it as a reason to move the site.

WP-Cron and loopback requests

WordPress’s own automatic updates, and a lot of the work plugins do after an update, run on WP-Cron. WP-Cron is not a real scheduler. It runs when a visitor loads a page and WordPress fires a request at its own wp-cron.php. On a site with little traffic that happens rarely. On a host whose firewall blocks requests from the server to itself, it never happens, and Site Health reports that the loopback request failed.

WooCommerce runs its database updates in the background through Action Scheduler, which rides on WP-Cron, so a shop with broken cron can show a database update “in progress” for days. The fix is cheap: set define( 'DISABLE_WP_CRON', true ); and add a cron job in the control panel that requests https://example.com/wp-cron.php?doing_wp_cron every five minutes. Nearly every shared host offers cron jobs, even without SSH.

A routine that works on cheap plans

On a site where I cannot change the hosting, I do this. It is slower than Update all, and fails far less often.

  1. Check the limits and the free space before you start. If the account sits at 90 percent of its disk or inode quota, clear out old backup archives first.
  2. Back up what you are about to change: at minimum the plugin folders involved and the database, because plugins such as WooCommerce change tables when they update.
  3. Update the heavy items on their own: core, WooCommerce, the page builder. Do them from the Plugins screen, one request each, not as part of a bulk run.
  4. Do the small plugins after that, a few at a time.
  5. After each heavy update, load the front end and wp-admin, look for a “database update required” notice and run it, and read the error log for new fatal errors.
  6. Clear the page cache and any combined CSS and JavaScript, so you test the new version and not a cached copy of the old one.

If one plugin keeps timing out, upload the new version as a zip through Plugins > Add New Plugin > Upload Plugin or replace the folder over SFTP. Both skip the download step. When a failed update has already taken the site down, why WordPress plugin updates fail covers the causes, and safe WordPress updates without WP-CLI covers recovery when you have no shell.

When the plan is the problem

Some sites run on a plan that is simply too small for what they do. A shop that cannot update WooCommerce within 30 seconds will also struggle with backups and with checkout on a busy Saturday. Say so to the client, with numbers. If you spend an extra hour a month nursing updates on a site at €75 an hour, a hosting plan that costs €10 a month more is the cheaper option for both of you.

For the sites that stay where they are, the tooling has to fit the plan rather than the other way round. That is the constraint WP Octo’s worker plugin was built around: it does its work in small steps that each fit inside 30 seconds and 128 MB, and the site contacts the platform itself, so a host firewall that blocks incoming requests does not stop updates or backups. The features page lists what runs that way.

Read also