# The old PHP site, and the version it is stuck on.

> Managed hosting for a plain PHP site or a legacy CMS. PHP-FPM and MySQL run on a dedicated server. CodeHerder ships the PHP version upgrade.

Source: https://customhosted.com/host/php/

№ 01 What we host

Many PHP sites sit on a shared panel host. Someone edits them over FTP, and they run a PHP version that gets no security fixes. Here the site runs on a dedicated instance with a pinned PHP version. A push deploys it. CodeHerder then ships the version upgrade as a briefed change.

Revised 29 Nov 2026

When this isn't the right fit Is your site static HTML with a PHP include or two? Then a static rebuild costs less. Say so on the quote form and we quote that shape instead.

№ 02 The requirements

## What it needs to run

The shape of the workload, before any hosting decision gets made.

- **Runtime**: PHP-FPM, long-running
- **Build step**: Usually none. Composer install, if the site has a composer.json
- **Standing process?**: Yes: PHP-FPM, with a web server in front of it
- **Data store**: MySQL, or none for a site that keeps no data
- **Verdict**: Dedicated S

№ 03 How it runs

## How it runs here

The same management as every other tier we run, written in PHP's own terms.

- Provisioning — A dedicated instance with PHP-FPM and a web server in front of it. The PHP version comes from your site. We pin it, and we do not change it without a brief.
- Deploys — Push to main. The pipeline runs Composer if the site has a composer.json, then reloads PHP-FPM. Nobody uploads files over FTP to production.
- Data + backups — A managed MySQL tier next to the site, backed up every night. A site with no database needs no tier.
- TLS / DNS / monitoring — Certificates renew on their own and we manage DNS end to end. Monitoring restarts a crashed PHP-FPM pool and alerts a person. — [What a visitor sees during a restart →](https://customhosted.com/what-visitors-see)

№ 04 Moving it in

## Moving it in

Already running somewhere else? The full [migration playbook](https://customhosted.com/migrate) covers the general steps. Below is what is specific to PHP.

1. 1 — Get the code into a repository — The live server is often the only copy of the site. We copy the files off it, put them in a repository you own, and export the database.
2. 2 — We stand up a copy — We run the site on a staging copy. It uses the same PHP version as the old host, so nothing changes in the first move. You click through it first.
3. 3 — Cutover on your schedule — DNS and TLS switch over with little-to-no downtime. A rollback stays ready if anything looks wrong.

The real gotchas

- The live server is often the only copy of the site. Copy it off before any other step. The Repository page covers the starting states.
- PHP's own mail function calls the operating system's mail command, and that command cannot send from here. Point the site at an authenticated relay instead. See Email for the path.
- A cron job set in the old host panel does not move by itself. Write it as a crontab line on the instance. The Background jobs page covers the clock.
- Rewrite rules in an `.htaccess` file need a review. The web server in front of PHP-FPM may not read that file the same way.
- A site on PHP 5.6 may call the `mysql_*` functions. PHP 7.0 removed them. That code needs a rewrite before it runs on any supported PHP version.

№ 05 The loop

## The loop, on PHP

A PHP version upgrade is a bounded change. It has a start and an end, and a person can review it. That makes it a good size for a brief.

1. 01 — Build — CustomLabs — Bring the PHP site you already run. Or CustomLabs rebuilds it, as a new PHP app or as a static site.
2. 02 — Iterate — CodeHerder — Brief a PHP version upgrade, a fix or a new page in plain language. An agent opens a pull request against the real repository. A person reviews it.
3. 03 — Run — CustomHosted — PHP-FPM on one dedicated instance, with a managed database. We patch the operating system on a schedule.

An example brief

- **The brief**: Move the site from PHP 7.4 to 8.3 and fix what breaks.
- **What the pull request holds**: The version bump and the fixes for removed functions, in one pull request. Your tests run on it. If the site has no tests, the agent runs a page-by-page smoke check. A person reviews it before it merges.
- **What happens next**: [A human reviews and merges](https://customhosted.com/review). [It ships through the same pipeline](https://customhosted.com/deploys).
- **A real one**: [The site is blinding at night](https://customhosted.com/case-files#cf-01) (+751 −258 · 19 files · merged 2026-07-31).

№ 06 Which PHP version is it on?

## Which PHP version is it on?

Find your version in the table. The status column is worked out from the date this site was built, 29 Nov 2026. Nobody types it in.

| Branch | Security fixes end | Status on 29 Nov 2026 | What the move means |
| --- | --- | --- | --- |
| PHP 8.5 | 31 Dec 2029 | Active support until 31 Dec 2027 | It moves as it is. Nothing to plan yet. |
| PHP 8.4 | 31 Dec 2028 | Active support until 31 Dec 2026 | It moves as it is. Nothing to plan yet. |
| PHP 8.3 | 31 Dec 2027 | Security fixes only, until 31 Dec 2027 | It moves as it is. Plan the upgrade before the date. |
| PHP 8.2 | 31 Dec 2026 | Security fixes only, until 31 Dec 2026 | It moves as it is. Plan the upgrade before the date. |
| PHP 8.1 | 31 Dec 2025 | No security fixes since 31 Dec 2025 | It moves as it is. The upgrade is quoted on day one. |
| PHP 8.0 | 26 Nov 2023 | No security fixes since 26 Nov 2023 | It moves as it is. The upgrade is quoted on day one. |
| PHP 7.4 | 28 Nov 2022 | No security fixes since 28 Nov 2022 | It moves as it is. The upgrade is quoted on day one. |
| PHP 7.3 | 6 Dec 2021 | No security fixes since 6 Dec 2021 | It moves as it is. The upgrade is quoted on day one. |
| PHP 7.2 | 30 Nov 2020 | No security fixes since 30 Nov 2020 | It moves as it is. The upgrade is quoted on day one. |
| PHP 7.1 | 1 Dec 2019 | No security fixes since 1 Dec 2019 | It moves as it is. The upgrade is quoted on day one. |
| PHP 7.0 | 10 Jan 2019 | No security fixes since 10 Jan 2019 | It moves as it is. The upgrade is quoted on day one. |
| PHP 5.6 | 31 Dec 2018 | No security fixes since 31 Dec 2018 | It moves as it is. The upgrade is quoted on day one. |

Dates from [php.net/supported-versions.php](https://www.php.net/supported-versions.php), read on 24 Oct 2026.

**An end-of-life runtime can't be patched, only replaced.** Once a runtime stops receiving security updates upstream, there is no patch left to apply. We tell you ahead of time and quote the upgrade — we don't leave it running unpatched and quiet.

A site on an old branch is not turned away. It runs here, on the same PHP version, so the first move changes nothing about how the site behaves. We write the risk down. We quote the upgrade on day one, as a briefed change under the Agentic iteration — CodeHerder add-on. An agent opens it as one pull request, and a person reviews it. See [Patching](https://customhosted.com/patching) for the full patching policy.

Two removals cause most of the breakage. PHP 7.0 removed the `mysql_*` functions. PHP 8.0 removed `create_function()` and `each()`. A site that calls them needs a rewrite before it runs on a newer branch.

№ 07 A starting configuration

## A starting configuration

A production PHP site: a small dedicated instance, a starter database, and the iteration add-on.

- **Base plan**: Dedicated S
- **Iteration — CodeHerder loop**: +$25/mo
- **Managed database**: DB Starter — +$12/mo
- **Estimated total**: $66/mo

[Get this quoted →](https://customhosted.com/contact?plan=DD-S&amp;addons=AD-CH&amp;db=DB-STARTER&amp;src=php) [Size it differently on the estimator →](https://customhosted.com/#estimate)

№ 08 FAQ

## PHP questions

The questions this stack raises on its own. General hosting questions live on the homepage.

1. 01 My site runs PHP 7.4. Will you host it? Yes. PHP 7.4 gets no security fixes now. We move the site as it is, and we write the risk down. We quote the upgrade on day one, as a briefed change.
2. 02 Can we keep FTP? No. Production takes changes from a push to your repository. This keeps one copy of the site and a record of every change. A person who prefers files can still edit them locally and push.
3. 03 We have no tests. How do you know the upgrade works? The agent runs a page-by-page smoke check on the staging copy and lists what it checked in the pull request. A person reviews that list and clicks through the site before the merge.
4. 04 Do you run a hosting control panel? No. There is no control panel. You change the site through your repository, and we manage the server. Settings that lived in a panel become code or a crontab line.
5. 05 Can we use MySQL? Yes. A managed MySQL tier runs next to the site. We import your export, and the site connects with the same queries.

№ 09 See also

## Keep exploring

- [Leaving a control panel Coming from a panel host? Every button and where it went here.](https://customhosted.com/guides/leaving-a-control-panel)
- [Hacked The most common worry for a site like this. We rebuild a broken-into server and never clean it in place.](https://customhosted.com/hacked)
- [Recovery How a restore works, and how far back each backup reaches.](https://customhosted.com/recovery)
- [Patching What happens when a runtime stops getting security fixes, and who applies the rest.](https://customhosted.com/patching)
- [Repository What to do when the live server holds the only copy of the site.](https://customhosted.com/repository)
- [Email The path a PHP mail call sends through, and the records it needs.](https://customhosted.com/email)
- [Migrate How a move onto a dedicated instance works, step by step.](https://customhosted.com/migrate)

## Ready to start?

Tell us what you're running — one fixed monthly rate, within a business day.

[Get a quote →](https://customhosted.com/contact)
