• Legacy PHP

Upgrade your old PHP site to PHP 8

Old PHP versions get no security fixes, and hosts are switching them off. I move your WordPress, Drupal or custom PHP site to PHP 8, fix what breaks before visitors see it, and keep a tested way back.

Signs your site needs a PHP upgrade

  • Your host sent a notice: the PHP version your site runs on is being retired.
  • You tried a newer PHP once and got a white screen or a fatal error.
  • The site depends on old plugins, modules or custom code that nobody has touched in years.
  • There is no staging copy and no backup you have actually restored.

How I upgrade a site to PHP 8

  1. 01

    Take stock

    Current PHP version and extensions, the platform and its add-ons, custom code and the error log. I list everything that uses functions changed or removed in PHP 8.

  2. 02

    Fix it on a copy

    A staging copy runs the target PHP version. Each incompatibility is fixed and checked there, with the real pages and forms clicked through.

  3. 03

    Rehearse the switch

    A scripted backup, the switch and a rollback are run end to end before the real day, so the steps and the downtime are known in advance.

  4. 04

    Switch and watch

    Production moves in a short maintenance window. Then I watch the error log and compare response times with the old version.

PHP 8 upgrade case study: a live online store

A wholesale food distributor runs its B2B ordering platform and CRM on Drupal 7 Commerce, which ran on PHP 7.4, which no longer gets security fixes. I moved production to PHP 8.5 with a scripted backup, a rollback plan and 12 seconds of maintenance mode.

01

Los Angeles food wholesale distributor · 2017 — present

Araks Inc

B2B ordering platform and CRM with a QuickBooks integration

Hover to scroll · click to enlarge

  • 60 → 93–99Homepage mobile PageSpeed score (LCP 12.2 → 2.0 s)
  • 16.8 → 2.1 sCatalog page load on a phone over 4G
  • 547 → 41 msCatalog search across 1,700 products
  • 7–13 → 0.5 sSigned-in checkout server response

Development · CRM · Integration · DevOps

A B2B ordering platform with a built-in CRM on Drupal Commerce: stores order from a catalog of about 1,700 products at their own prices, sales reps order for their stores, and staff manage leads, customers, vendors and sales in one system. It runs on a DigitalOcean server I set up and maintain. I built the QuickBooks Desktop integration from scratch and made the catalog, the ordering flow and the server fast and reliable.

Visit live site ↗

What I did

  • Hand-written QuickBooks Web Connector (SOAP / qbXML) endpoint: hourly price and stock sync for ~7,500 items, customer sync and automatic export of web orders, replacing manual CSV exchange.
  • CRM for the sales team: customer accounts with their own price levels, sales reps ordering for their stores, vendor accounts for restocking orders, wholesale leads with approval and one-time price-list links, branded customer emails with a send log, a live panel of signed-in customers with open cart totals, and a sales dashboard (sales by year, top customers, sales by rep).
  • Catalog: custom Drupal Views cache for per-customer price lists, a stale-while-revalidate public catalog rebuilt in the background with a render lock, and an index-based search that also matches item codes.
  • Core Web Vitals: deferred the analytics tag until interaction, server-rendered the mobile brand carousel, self-hosted fonts and jQuery, WebP with srcset and lazy loading for 1,700 catalog photos.
  • Technical SEO: clean URLs with ~3,900 automatic 301 redirects, XML sitemap and schema.org JSON-LD; Google Search impressions +98% the month after.
  • AI catalog module on the Gemini API that rewrote raw item names into clean product titles and descriptions.
  • Set up and run the production server on a DigitalOcean droplet: LAMP on Ubuntu behind Nginx, HestiaCP, Let’s Encrypt, HTTP/2 and TLS 1.3, tuned PHP-FPM and MariaDB.
  • Migrated production from PHP 7.4 to 8.5 (+38% throughput) with scripted backup and rollback and 12 seconds of maintenance mode; added encrypted off-site backups with a tested restore.
  • Drupal 7
  • Drupal Commerce
  • PHP 8.5
  • MariaDB
  • QuickBooks qbXML
  • SOAP
  • Gemini API
  • DigitalOcean
  • Nginx
  • Apache
  • HestiaCP

PHP upgrade cost

Pricing

Priced by the code, not the page count

A small WordPress site with current plugins takes far less work than a custom PHP application. Describe the site and its hosting for a ballpark price, or email me the host’s notice and I will tell you what it means for you.

PHP 8 upgrade FAQ

What happens if I do not upgrade PHP?

The site keeps working until your host removes the old version, which often happens on a fixed date. Until then it runs on a PHP release with no security fixes: PHP 7.4, for example, lost security support in November 2022.

Will upgrading to PHP 8 break my WordPress site?

Current WordPress core runs on PHP 8, so problems usually come from old plugins, themes or custom code. That is why the fixes happen on a staging copy first.

Can Drupal 7 run on PHP 8?

Yes, with up-to-date core and modules. The store above runs Drupal 7 on PHP 8.5. It buys time, but Drupal 7 itself no longer gets official updates, so plan the move to Drupal 11 too.

Will PHP 8 make my site faster?

Usually, yes. In the case above, uncached product pages went from 7.9 to 10.9 requests per second, 38% more, after the switch from PHP 7.4 to 8.5.

How much downtime does a PHP upgrade need?

With a rehearsed switch, seconds to minutes. The case above needed 12 seconds of maintenance mode; the backup and the rollback were scripted beforehand.

Can you upgrade a custom PHP application, not just a CMS?

Yes. The steps are the same: find what PHP 8 changed in your code, fix it on a copy, rehearse and switch. Describe the application and get a ballpark price.

How much does a PHP upgrade cost?

It depends on the amount of custom code and how many add-ons need fixes or replacements. Get a quick estimate, then I confirm an exact quote by email.

Related services