Website Without PHP
English (United States)US
  • English (United States)
  • Dutch (Netherlands)
Menu

mod_php

Also known as: Apache PHP module

mod_php is an older way of running PHP, in which PHP is built into Apache, the program that answers visitors, instead of running as a separate helper.

Read the explanation

PHP and versions Last updated:

mod_php is an older way of running PHP, in which PHP is built into Apache, the program that answers visitors, instead of running as a separate helper. It is one of the oldest ways to run PHP on the web, and it is still found on many servers, so it may be what your host uses.

What is mod_php?

mod_php is an Apache module, which means PHP runs inside the Apache web server process itself.

When Apache is configured with mod_php, the PHP interpreter is loaded into the web server. A request for a PHP page is handled in the same process that serves files, with no hand-over to another service. That is simple to set up, which is why it was the default on many hosting platforms for a long time.

The alternative is PHP-FPM, where PHP is a separate service and the web server forwards requests to it. With mod_php, PHP and the web server share one process and one set of permissions. That makes it harder to separate sites on one server and harder to give each site its own limits.

Why this matters for security

Because PHP lives inside the web server, a problem in PHP is a problem in the web server process. That is not a flaw in mod_php as such, but it shapes how serious a PHP vulnerability can be on this setup.

mod_php and the October 2026 vulnerabilities

Which PHP version does your site report?

We read only what your site already sends in public: the headers and the top of the homepage. No scan, no login.

On October 21, 2026, the PHP project released PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 for two critical vulnerabilities. According to php.net they can allow unauthenticated remote code execution, so an RCE that needs no login. php.net names all PHP installations serving web requests as at risk and considers the risk highest for mod_php. It mentions a demonstrated exploit, a proof that the attack works, in which an unauthenticated request triggers the attack before any application code runs.

php.net reports no exploitation in the wild. CISA added both vulnerabilities to its Known Exploited Vulnerabilities catalog on 26 October 2026, which does not say an attack succeeded. The current facts, with timestamps, are on the PHP2Shell page.

How to check your handler

Open a phpinfo page and look at “Server API”. “Apache 2.0 Handler” means mod_php. “FPM/FastCGI” means PHP-FPM.

Your hosting control panel often shows the same under the PHP settings. If you cannot find it, ask your host.

Then check the exact PHP version, including the patch number. The setup changes how the risk looks, but the fix is the same: a patched version. Write down both the handler and the version before you contact your host, so the conversation starts with facts instead of guesses, and ask them to confirm in writing which version is active for your domain after the update.

When to act

If you are on mod_php and the branch you use has a fixed release, update now and ask your host when they roll it out. If your host runs an older branch, ask what they can offer. Our PHP upgrade service takes your site to a supported version, and if your host cannot help, a PHP migration service can move the site to a host that can.

To see which PHP versions still get updates, read supported PHP versions. The guides per host show how to check the version with your host. If your site shows a server error after a change, read HTTP 500 in PHP.

Not sure how this applies to your site?

Ask a person to take a look. We check which PHP version your site runs and whether the fix is in, and tell you the next step.

Ask a person to take a look

Or have PHP updated right away: PHP update from $555 excl. VAT

Frequently asked questions

What is the difference between mod_php and PHP-FPM?

mod_php runs PHP inside the Apache process itself. PHP-FPM runs PHP as a separate service and the web server passes requests to it.

Do I use mod_php?

Your hosting panel or a phpinfo page tells you. If the Server API shows Apache 2.0 Handler, PHP runs as an Apache module. If it shows FPM/FastCGI, it does not.

Is mod_php affected by the October 2026 PHP vulnerabilities?

php.net names Apache with mod_php among the installations at risk and considers the risk highest for mod_php. It also mentions a demonstrated exploit, which is a proof that the attack works. php.net reports no exploitation in the wild. CISA added both vulnerabilities to its Known Exploited Vulnerabilities catalog on 26 October 2026; for that list, CISA counts attempted exploitation as well as successful exploitation.

Should I switch from mod_php to PHP-FPM?

That is a hosting decision. The first step is to update PHP to a fixed version. Whether to change handler afterwards depends on your server and your traffic.

Share this page

Ask your AI to explain

Opens the chat with a question about this page. An AI answer can differ; the sources above are leading.

This question is sent along: Summarise the confirmed facts on https://websitewithoutphp.com/en-us/glossary/mod-php/ in 5 short points, with the source per point.

  1. Domain
  2. Check
  3. Result
  4. Report

Which PHP version does your site run?

Enter your domain. We read only what your site already sends in public: the headers and the top of the homepage. No scan, no login.

We keep the domain and the result, never your IP address.