Security

Site Isolation for PHP Applications on a VPS

Published 2026-11-29 · Updated 2026-11-29 · 8 min read · Sora Panel team

Site isolation limits what one PHP application can access when multiple sites share a VPS. Separate operating-system identities, PHP workers, database credentials, secrets and writable paths; then test the boundaries and recognize that a shared kernel and privileged control plane remain common risks.

Separate site identities, PHP workers, credentials and writable paths, then test that one site cannot read or modify another. Choose separate virtual machines when the shared kernel or control plane creates an unacceptable risk; the stronger boundary costs more to operate.

Begin by mapping which sites share an operating system, database server, cache, deployment process and control panel. Separate the identities and resources that can be separated, then verify the actual permissions from an authorized test environment. Decide when a stronger boundary, such as a separate virtual machine, is worth its operational cost. The right answer depends on customer trust, data sensitivity and the consequences of a shared failure.

Illustration: separate application compartments sharing a server
Illustration, not a product screenshot.

Map the shared host and its trust boundaries

A typical multi-site server has a web server, PHP execution workers, application files, a database service, cache and background jobs. The control panel or deployment system may have broader authority than any application. If all sites execute as the same operating-system user or can read the same configuration directory, a flaw in one application can expose data belonging to others. A separate domain name by itself does not create an operating-system security boundary.

List each site, its owner, runtime identity, file paths, database account, cache access, scheduled jobs and backup destination. Include staging sites and old installations: they can retain production secrets or privileged access even after traffic moves elsewhere. Identify shared writable directories, common deployment keys and services that listen on a network interface. The inventory is a map to test, not proof that the configuration is safe.

BoundaryPreferred separationWhat to verify
Application processDistinct site user and PHP worker poolEffective user and access to another site's files
DatabaseDistinct database and least-privilege accountCross-database reads and writes are denied
Cache and queueScoped credentials or separate service instancesOther sites' keys and messages are inaccessible
Backups and deploymentScoped access and independent recoveryRestore succeeds without exposing another tenant

Write down which assets must remain shared and who can administer them. A privileged operating-system administrator, compromised kernel or panel with broad host privileges may cross application boundaries. If that risk is unacceptable, place the relevant workloads on separate hosts or virtual machines and isolate their management credentials as well. Containers can add boundaries, but their effectiveness depends on configuration and they generally share the host kernel.

Use vulnerability data as context, not a forecast

WordPress sites depend on core software, plugins and themes. Patchstack's annual reports document newly found ecosystem vulnerabilities: its 2022 report, report covering 2023, report covering 2024 and report covering 2025 provide the figures below. All viewed 29 November 2026.

WordPress ecosystem vulnerabilities reported by Patchstack

Annual report figures for discovery year; methodology and coverage may differ

  • 2022
    4,528
  • 2023
    5,948
  • 2024
    7,966
  • 2025
    11,334
Reported discoveries or entries across the WordPress ecosystem, not compromised websites, attacks or unique CVEs. 2022 and 2023 are database additions; 2024 and 2025 are ecosystem discoveries as described in the respective annual reports. One vulnerability can create multiple component entries. Discovery effort, coverage and reporting affect counts. Source: Patchstack annual State of WordPress Security reports; links in article, viewed 2026-11-29.
View chart data
Itemreported vulnerabilities or database entriesNote
20224,528
20235,948
20247,966
202511,334

These are reported ecosystem discoveries or database entries, not the number of compromised sites, attacks, unique CVEs or vulnerabilities in your installation. Patchstack explains that an issue affecting multiple components can produce multiple entries. Research attention, reporting practices and coverage also influence the counts, so a rise alone does not prove that WordPress became less secure. Apply a similar inventory discipline to other PHP applications and their dependencies, but do not treat these WordPress numbers as measurements of those applications.

The operational lesson is straightforward: when many independent components can need attention, patching every application instantly is not always possible. Isolation can reduce what an affected application can reach while the responsible team investigates and remediates it. It does not fix the underlying flaw, protect the affected site from its own compromised application identity, or replace timely updates. Remove unused components and record which sites actually use an affected dependency.

Separate users, files and PHP workers

Give each site an operating-system identity and configure its PHP worker pool to run as that identity where your hosting stack supports it. Separate application roots and ensure that another site's user cannot read private configuration, write executable files or access uploaded data. Apply the principle of least privilege to directories, deployment users and scheduled jobs. A web server account may need access to serve public files, but it should not gain unnecessary read or write access to private secrets.

Separate PHP-FPM pools make execution identities and resource settings easier to distinguish, but a pool name alone is not a security boundary. Verify the effective user, socket permissions, directory traversal permissions and group memberships. Review any global service account used by workers, deployment tools or cron jobs: it can silently reconnect sites that appear isolated in the panel. PHP configuration restrictions can be useful defense in depth, but should not be treated as a substitute for operating-system permissions.

Keep writable upload and cache directories distinct from the code deployment path where practical. Apply supported application and web-server settings to reduce the chance that uploaded content is executed as code. Read-only application code can reduce accidental changes, but applications and plugins may need legitimate write access; document exceptions and test upgrades. Avoid setting broadly writable permissions simply to make an installation work.

Resource exhaustion also matters. Set sensible per-site process and memory limits where supported and monitor capacity. These controls reduce competition for shared resources but cannot guarantee availability if the whole host, storage or network fails. Agree in advance how to respond when a site exceeds its allocation instead of raising every limit without understanding the cause.

Scope databases, caches and secrets

Give each application its own database and account, with only the privileges required for its normal operation. Deployment or migration tasks may need additional privileges; consider a separate controlled identity for them rather than keeping broad privileges in the runtime configuration. Ensure backups and scheduled tasks use the intended credentials, and remove obsolete accounts. Separate database names alone do not help if all sites share an unrestricted database administrator credential.

Cache and queue services deserve the same attention. A prefix is an organizational convention, not necessarily an access-control boundary. Determine whether the service actually enforces per-site authentication and key or channel restrictions. Where it cannot, use separate instances or a different isolation design appropriate to the risk. Protect service listeners from public access, but do not assume a private network alone prevents one compromised site from reaching another site's data.

Store environment files, API tokens, signing keys and backup credentials so only the relevant identity and authorized operators can access them. Scope external service credentials to the individual application where possible. A shared cloud account with broad permissions can defeat otherwise careful host separation. Avoid including production secrets in staging or test copies, and rotate credentials if a site or deployment system is compromised.

Test isolation without endangering customers

Use a disposable environment that mirrors the production permission model. With explicit authorization, test that the site identity can perform its normal application tasks and cannot read another site's private files or access another database. Test both read and write paths, background jobs and deployment workflows. Verify cache or queue permissions using non-sensitive test data. Record the identity used, expected denial and observed result; a successful login as an administrator does not test a site's restricted identity.

Inspect the effective configuration rather than relying solely on a control-panel label. Check that workers really run under the expected users, that shared groups do not grant accidental access and that service sockets are appropriately restricted. A permission failure in an isolation test should lead to a configuration correction and a repeated test. Avoid experimenting against customer data or using destructive commands on production. If an exception is necessary, document its scope, owner and compensating controls.

Repeat the tests after changing the panel, runtime, deployment process or shared service. New convenience tools may introduce an account with access to every site. Test the ability to restore a site without overwriting a neighbor, and verify that customer data remains private in the restore environment. Separate backup encryption keys and deletion authority where your risk model requires stronger protection.

Choose a stronger boundary when needed

Different sites may have different requirements. Internal projects with a common owner might accept a shared VPS with site-level controls; unrelated customers with sensitive data or strict contractual obligations may need separate virtual machines, separate administrator accounts and independent backup policies. A dedicated host or managed service changes the responsibility split, but does not eliminate the need to understand provider access, updates, monitoring and recovery.

Compare the cost of additional servers with the consequences of a shared kernel, panel, network or credential compromise. Consider operational complexity too: more machines mean more updates, monitoring and recovery procedures. Decide which dependencies must be independent, including DNS, backup accounts and administrator identities. Test the chosen design against the actual threat model, not a generic label such as isolated.

For a broader management-plane review, use the VPS control panel security checklist. For operational context on WordPress hosting, see the WordPress VPS operations checklist. Sora Panel is not released yet. Read how it works on the homepage.

Frequently asked questions

Does a separate PHP-FPM pool isolate a site by itself?

No. Check the worker identity, file and socket permissions, shared credentials, databases and services as well.

Does a database name or cache prefix enforce isolation?

Not by itself. Database privileges and cache authorization must actually prevent access to other sites' data.

Can isolation replace plugin updates?

No. It can limit cross-site exposure but does not remove the vulnerability or protect the affected application from its own compromised identity.

When should sites use separate virtual machines?

Consider separate virtual machines and independent management credentials when a shared host or kernel would create unacceptable cross-customer or business risk. Weigh the additional operations cost against the consequences of a shared compromise.

Sources

Sora Panel is not released yet. Read how it works on the homepage.