Skip to content
SecurityPHP2Shell affects most WordPress sites. Am I affected? →
presscomet
Migration

Can you run WordPress without PHP?

WordPress itself is PHP, so the honest answer is “not WordPress core”. But you can run a WordPress site without PHP serving your visitors. There are four real ways to do it, each with a different trade-off. Here they are side by side, with a quick quiz to find yours.

By the Presscomet teamPublished 11 min read

On this page
  1. Why people ask
  2. The short answer
  3. The four options
  4. Side by side
  5. Which fits you?
  6. What moves, what doesn’t
  7. Next steps

Why people ask

Usually one of three things has just happened:

  • A PHP security scare. In October 2026, PHP2Shell put every site on unpatched PHP at risk, and WordPress owners discovered they depend on their host to patch something they’d never thought about.
  • A forced PHP upgrade. Your host retires an old PHP version, and an old plugin breaks. (Our guide to checking and updating your PHP version covers this.)
  • Speed. Every uncached WordPress request boots PHP, loads every plugin and queries MySQL. Caching plugins help, until they don’t. See why WordPress is slow.

All three come down to the same wish: keep what’s good about WordPress (the admin, the editor, the content, the URLs) and lose the part that keeps causing problems.

The short answer

WordPress core: no. It is a PHP application, and WordPress.org recommends running it on PHP 8.3 or newer with MySQL 8.0+ or MariaDB 10.11+. Nothing about that is going to change.

Your WordPress site: yes, in the sense that matters for security and speed: PHP doesn’t have to be the thing answering your visitors. The four ways to get there differ in how much of WordPress you keep and how much PHP is left somewhere in the stack.

The four options

1. Static export: WordPress stays, but private

A static-site plugin or crawler renders every page of your WordPress site to HTML files, which you upload to a CDN or static host. Visitors never touch PHP. WordPress keeps running somewhere private (your laptop, a locked-down server) for editing.

Good for brochure sites and blogs that rarely change. Watch out for anything dynamic: comments, contact forms and search need a third-party service, every edit needs a re-export, and the private WordPress still needs patching (it’s just no longer exposed to the internet).

2. Headless WordPress: PHP moves to the back room

WordPress becomes a content API. A separate front end (often a JavaScript framework) fetches content through the REST API or GraphQL and renders the pages.

Good for teams with developers who want full control of the front end, and stores that must keep WooCommerce. Watch out for the fact that PHP and MySQL are still there: you now run two systems with two deploy pipelines, and previews, forms and many blocks need extra work. More on this on our headless WordPress page.

3. Move to a different CMS

Export your content and rebuild on another platform. Good for sites that were going to be redesigned anyway, with editors who aren’t attached to wp-admin. Watch out for what doesn’t export cleanly — custom fields, shortcodes, block layouts, SEO settings, redirects — and for retraining everyone who edits the site. Plan URL redirects carefully, or rankings suffer.

4. A WordPress-compatible runtime with no PHP

This is the newest option and what Presscomet is: the WordPress admin, block editor, data model, URLs and REST API, rebuilt to run on Node.js with a single SQLite file instead of PHP and MySQL. It contains no WordPress PHP code; it reproduces how WordPress behaves. Public pages are served from a static cache and regenerated when content changes, and you can still export the whole site to static files.

Good for content sites (blogs, publications, marketing sites, docs, portfolios) whose editors like wp-admin. Watch out for its limits: PHP plugins and themes don’t run (common plugin jobs are built in instead, and your theme’s look is captured during migration), WooCommerce isn’t supported, multisite networks move one site at a time, and it’s a young project — version 0.1 shipped in October 2026.

Side by side

Ways to run a WordPress site without PHP serving visitors
QuestionStatic exportHeadlessOther CMSPresscomet
PHP on the public request path?NoNoDependsNo
PHP anywhere in the stack?Yes (private)Yes (backend)DependsNo
Editors keep wp-admin?YesYesNoYes (same screens)
Same URLs automatically?YesIf you build itManual redirectsYes, plus 301s
Forms, comments, searchNeed a serviceBuild each oneDependsBuilt in
PHP pluginsKeep working privatelyKeep working in backendReplacedDon’t run; common ones built in
WooCommerceNoYesDependsNo
Systems to runWP (private) + hostWP + front endNew CMSOne Node.js app (or static files)
Effort to switchLowHighHighLow (one-click import)

Which option fits your site?

Four yes/no questions. The ranking updates as you answer and explains itself, so you can disagree with it.

Interactive

Which option fits your site?

0/4 answered

Do you sell with WooCommerce (or another PHP e-commerce plugin)?
Does the site depend on custom or niche PHP plugins that you can’t replace?
Do editors need the WordPress admin and block editor they already know?
Does the public site need live features: comments, forms, members, search?

Answer any question to see the options ranked for your site.

If you pick option 4: what moves and what doesn’t

A Presscomet migration reads your site through the REST API (with an application password), a WXR export, an SQL dump or a small companion plugin, and it only ever reads your WordPress site. Here’s what comes across, based on the migration docs:

  • URLs: slugs, permalink structure, category and tag bases, old-slug redirects, feeds and pagination keep their paths. Anything that can’t keep its URL gets a 301.
  • Content: block markup, classic content, shortcodes, reusable blocks, revisions, custom post types and taxonomies, custom fields and ACF values.
  • Users: roles, capabilities and application passwords; existing passwords keep working.
  • Plugins: active plugins are matched to 19 bundled equivalents and their settings imported — Yoast SEO and Rank Math titles, Contact Form 7 forms, Redirection rules, ACF field groups and more.
  • Theme: bundled default themes render natively; any other theme is captured as it renders today, so pages look the same on day one.

What doesn’t come across

Custom PHP code doesn’t run: niche plugins without a built-in equivalent, custom shortcodes registered in PHP, and theme features that only exist in PHP need replacing. WooCommerce stores aren’t supported. The free site check lists your active plugins and what replaces each before you commit to anything.

And honestly: removing PHP removes PHP’s vulnerabilities, not all vulnerabilities. A Presscomet site still needs updates, strong logins and backups. Our security checklist marks which items still apply.

Next steps

Sources

Facts checked against these sources on October 23, 2026. Things change quickly; the vendor advisory always wins.

  1. [1]WordPress requirements — WordPress.org
  2. [2]REST API Handbook — WordPress Developer Resources
  3. [3]Supported PHP versions — PHP.net
  4. [4]PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 security releases — PHP.net

Frequently asked questions

Can WordPress run without PHP?

WordPress core cannot: it is written in PHP and WordPress.org recommends PHP 8.3 or newer. You can, however, serve a WordPress site without PHP on the public request path, by exporting it to static files, by using it headless behind a separate front end, or by moving to a WordPress-compatible runtime that has no PHP.

Can WordPress run without MySQL?

Standard WordPress expects MySQL or MariaDB. There are community SQLite integrations for WordPress itself. A WordPress-compatible runtime such as Presscomet stores the same WordPress-shaped data in a single SQLite file, so there is no database server at all.

Is headless WordPress PHP-free?

No. In a headless setup the WordPress backend still runs on PHP and MySQL; only the public pages are rendered by a separate front end. It removes PHP from page rendering, not from your stack, so you still patch and secure it.

Is a static WordPress site secure?

The public part is about as safe as a website gets, because visitors only receive files. WordPress still runs somewhere to edit content, so keep it private and patched. Forms, comments and search need a separate service.

Do my plugins work on Presscomet?

PHP plugins don’t run. Presscomet bundles 19 plugins that replace the most common ones (SEO, forms, SMTP, security, redirects, custom fields, cookie consent, backups and more), and migration imports their settings. Custom or niche PHP plugins need replacing. WooCommerce is not supported.

Can I go back to WordPress from Presscomet?

Yes. Export a standard WXR file from Tools › Export and import it into any WordPress site. Migration never changes your original site, so you can also keep it running until you’re sure.

Keep WordPress. Lose the PHP.

Presscomet keeps your wp-admin, editor, URLs and content, and serves pages without PHP or MySQL. Check your site for free, then migrate in one click — your old site is only ever read.

Check my site
  • SecurityPHP2Shell and WordPress: are you affected, and how do you fix it?

    Two critical bugs in PHP itself put almost every WordPress site on an affected runtime until the host patches it. Here’s what happened in plain English, a checker that tells you whether you’re affected, and step-by-step fixes for every kind of hosting.

  • MigrationYour WordPress site as plain files

    Static export renders every public URL — archives, feeds, sitemaps and the 404 page — so you can host on Netlify, Vercel, GitHub Pages or S3.

  • MigrationHow one-click migration works

    What happens between pasting your WordPress URL and switching DNS: four importers, plugin mapping, and theme capture.