PHP and Node.js on arm64 servers: what works and what to check first
5 min read
Arm servers such as Hetzner's CAX line offer the same cores and memory as the x86 models. What runs on them without changes, the few things that do not, how to check your own stack in ten minutes, and how to move.
Arm servers are no longer exotic. Hetzner's CAX line, AWS Graviton, and Ampere machines at other providers run ordinary Linux and ordinary web stacks. For PHP and Node.js applications the question is rarely "does it work?" and usually "which one thing in my stack has no arm64 build?".
We checked the facts below on 12 November 2026 against the package repositories and container registries themselves.
In short
- PHP and Node.js themselves run the same on arm64. Your PHP and JavaScript code does not care about the CPU.
- Ubuntu 26.04's packages, Ondřej Surý's PHP repository and the official Node.js builds all exist for arm64.
- Ten popular container images we checked all had an arm64 build.
- What breaks is compiled code from third parties: proprietary PHP extensions, old binaries, private container images built only for x86.
- An arm64 server cannot run an x86 container image at normal speed. Check
docker manifest inspectbefore you move.
The servers
On Hetzner's cost-optimised cloud page the Arm and x86 lines mirror each other:
| Arm (Ampere) | x86 (Intel/AMD) | vCPU | Memory | NVMe disk |
|---|---|---|---|---|
| CAX11 | CX23 | 2 | 4 GB | 40 GB |
| CAX21 | CX33 | 4 | 8 GB | 80 GB |
| CAX31 | CX43 | 8 | 16 GB | 160 GB |
| CAX41 | CX53 | 16 | 32 GB | 320 GB |
Both lines include 20 TB of traffic. On the day we looked, the page listed them for the locations NBG1 and HEL1 and showed the models as temporarily unavailable, without prices, so we do not quote prices here. Compare them on the provider's price list on the day you order; availability of both lines changes.
Note the word vCPU. These are shared cores on both lines. For steady, heavy load, dedicated-core models behave differently from either.
What works without changes
The operating system. Ubuntu and Debian publish every package for arm64. apt install nginx php8.5-fpm postgresql mariadb-server valkey-server gives the same versions as on x86.
Other PHP versions. packages.sury.org/php has the same PHP branches for arm64 as for amd64 on Ubuntu 26.04, from 5.6 to 8.5. See Ondřej's PHP PPA on Ubuntu 26.04.
Node.js. The official builds include linux-arm64 for every current release, and so do the NodeSource and distribution packages.
Common container images. We asked the registry which architectures each image has:
docker manifest inspect n8nio/n8n:latest | grep architecture
| Image | arm64 |
|---|---|
| n8nio/n8n | yes |
| vaultwarden/server | yes |
| louislam/uptime-kuma | yes |
| gitea/gitea | yes |
| metabase/metabase | yes |
| grafana/grafana | yes |
| getmeili/meilisearch | yes |
| adminer | yes |
| ghost | yes |
| nextcloud | yes |
What to check before you move
1. Proprietary PHP extensions. Loaders for encoded PHP code (ionCube, SourceGuardian) and vendor extensions are compiled binaries. Check that the vendor publishes an aarch64 build for your PHP version. If your application is delivered encoded, this alone can decide.
2. npm packages with native code. Most popular ones (sharp, bcrypt, better-sqlite3, esbuild) ship arm64 binaries. A rare or old one compiles from source during npm install, which needs a compiler and time, or fails. Run npm ci on an arm64 machine once and read the output.
3. Your own container images. An image built on an x86 laptop or CI runner is x86 only. On an arm64 server it stops with exec format error. Build for both:
docker buildx build --platform linux/amd64,linux/arm64 -t registry.example.com/app:1.2 --push .
4. Third-party images you depend on. Check each with docker manifest inspect. Small projects sometimes publish x86 only.
5. Downloaded binaries. Scripts that fetch tool-linux-amd64 from a release page need the arm64 file instead. Search your deployment scripts for amd64 and x86_64.
6. Your CI. If you build on x86 and deploy to arm64, the build either cross-compiles or runs under emulation, which is slow. Native arm64 runners exist at most CI services.
A ten-minute test
Before moving anything, create the smallest arm64 server for an hour:
uname -m # aarch64
git clone <your repository> && cd app
composer install # or: npm ci
Then start the application and run its tests. If this passes, the move is an ordinary server migration. If it fails, the error names the one component that needs attention.
Is it faster?
It depends on the workload, and we did not benchmark. Treat a general claim in either direction with care. What you can do in an hour is run your own application on both server types and compare response times under the same load. That number is the only one that applies to you.
Moving
There is no in-place conversion from x86 to arm64. Create a new server and move the sites one at a time: copy the files and a database dump (dumps are portable between architectures; raw data directories should not be copied across), test under a temporary address, then switch DNS. The steps are the same as in Upgrading Ubuntu 24.04 to 26.04 with PHP sites.
With Zefily
Zefily supports amd64 and arm64 servers alike. The agent, the PHP versions it installs (7.3 to 8.5 on Ubuntu 26.04, built for both architectures) and the web stack are the same on both, and you can create a Hetzner server from the panel and connect it in one step. See Supported systems and Connect a server.
Frequently asked questions
Does PHP work on arm64 servers?
Yes. Ubuntu and Debian package PHP for arm64, and packages.sury.org has the same PHP branches for arm64 as for amd64. PHP code itself does not depend on the CPU.
Does Node.js run on arm64?
Yes. The official Node.js builds include linux-arm64. Check only the npm packages with native code that your application uses.
What does exec format error mean in Docker?
The image was built for another CPU architecture. On an arm64 server you need an image with a linux/arm64 build.
How do I check whether a container image supports arm64?
Run docker manifest inspect with the image name and look for an entry with architecture arm64.
Can I convert an x86 server to arm64?
No. Create a new arm64 server and migrate the sites to it with file copies and database dumps.
See Container apps for the apps Zefily installs on both architectures.