# ☁️ HostlessWP moves a running WordPress site to Cloudflare Workers with one command

All Today · published 2026-11-27T10:14:57Z · https://all-today.com/product/74eb146c-77c8-48a3-ae36-779e6ede26a1?lang=en

![HostlessWP project page preview](https://img.all-today.com/d/26927100df8b4c60a1560fab24b6c82d/0T7N2brJDRoq9AeHXdLzsx0FkZwnvO4IKb2-hG0joCk.jpg)

- ☁️ The open-source tool HostlessWP moves an existing WordPress site, with its plugins, theme and MySQL database, onto Cloudflare Workers.
- ⚙️ PHP 8.3 runs as WebAssembly inside the Worker; WordPress core is not modified and the database stays with its current host.
- 🧪 It first deploys to a test address; the old site keeps running until you switch the domain.
- 💶 Free (GPL); small sites fit Cloudflare's free tier, the project says; still an early preview.

☁️ Running a WordPress site usually means looking after a server: the operating system, the web server and PHP all need updates. The independent open-source project [HostlessWP](https://hostlesswp.com/) aims to take that away: the command `npx hostlesswp`, run where the wp-config.php file lives, moves a running site with its plugins, theme and database onto Cloudflare Workers, Cloudflare's serverless platform. The project says it is not made by Cloudflare. ⚙️ Unlike a static export, the site keeps real PHP: PHP 8.3 runs as WebAssembly inside the Worker, so checkout, comments, search and logins are meant to keep working. The MySQL database stays on its current host and is connected through Cloudflare Hyperdrive, while media goes to storage such as R2. The tool first sets up a test address; the old site stays untouched until you switch the domain yourself. HostlessWP is free (GPL-2.0-or-later); small sites run on the free Workers plan, the project says, larger ones on the paid plan at $5 a month. It is explicitly an early preview, version 0.1.0.

🧰 **What you need.** According to the project page, the requirements are a Cloudflare account, a MySQL database with SSL, an S3-compatible bucket such as Cloudflare R2 and Node.js 20 or later. The tool checks each of these before it does anything, explains every step and compares the active plugins with a list of tested ones, flagging any it does not know. The database connection runs either over the internet with SSL or through a Cloudflare Tunnel from the existing server.

📍 **How it picks a location.** HostlessWP finds out where the database is and runs the Worker close to it, so that every query has a short way to travel. In the sample output on the project page the database is in Virginia; the tool packages two code bundles and almost 3,900 static files, precompiles about 1,700 PHP scripts and reports the site live at a workers.dev address. Pages not served from the cache run through real PHP with OPcache.

🔌 **What works and what does not yet.** The project says the 30 most-installed plugins from the WordPress directory load, and a real WooCommerce checkout was tested end to end. Not supported yet are Multisite installations, installing plugins from the admin area and the Imagick image library. Anyone who regularly tries plugins in the dashboard or runs a network of several sites is not the audience yet.

🔒 **Security and the way back.** Code inside the Worker is read-only, there is no SSH access, and uploaded files never run as PHP. Code is kept per deployment and media sits in replicated object storage. To go back, you point the domain at the old host again; since the database never moved, nothing needs to be copied back. Otherwise, deleting the Worker is enough.

🧭 **Who it suits.** HostlessWP is aimed at owners of small and medium WordPress sites who want to stop maintaining a server but do not want a static copy or a headless rebuild. A database host is still needed, and the project is young: for a business-critical site it is wise to test the workers.dev address thoroughly before switching the domain. 🧪

## Sources

- [HostlessWP project page](https://hostlesswp.com/)
- [HostlessWP listing](https://nextbigproduct.com/product/hostlesswp)

---
This post was selected, researched, written and rated by AI. The AI can be wrong: check the sources.
