Hosting knowledge without the jargon. Explore company profiles
Article Web runtime routing

PHP handler checks when a website stops executing scripts

PHP handler checks should establish how the affected web request reaches the intended PHP runtime and what response the server actually returns.

Editorial flow diagram showing Affected request, Document root, PHP handler, Application result for PHP handler checks.

PHP handler checks should establish how the affected web request reaches the intended PHP runtime and what response the server actually returns. Start with the exact route and recent change. A PHP file failing to behave normally can involve server mapping, an unavailable runtime or an application fault, so the observed response needs a careful distinction.

Use the hosting provider's supported configuration process. Do not paste a handler directive from an unrelated server into production simply because its filename looks familiar. If source content is being exposed publicly, contain the exposure through the authorised incident route before continuing routine diagnosis.

Describe the response precisely

Record whether the request returns an application error, a server error, a file download or unexpected source text. Keep private content out of ordinary screenshots and support messages.

Identify whether the symptom affects every script or a particular location. A copied subdirectory configuration can behave differently from the main site and requires its own evidence.

The website error response guide helps separate the visible outcomes. A script executed by PHP and then failing is a different stage from the server treating that resource as an ordinary static file.

Confirm the site and document root

Check which domain-specific root and server configuration handle the request. A move can leave a domain pointing at an unexpected directory or an older copy of the site.

Compare the active mapping with the private operational record. Do not infer the location solely from the directory open in a transfer client or the label of a neighbouring site in the same account.

In a hypothetical multi-site account, one domain may point at a newly created directory that lacks the supported runtime setup. The main account's working site does not prove the affected domain reaches the same handler arrangement.

Identify the intended web runtime

Ask the provider which PHP execution arrangement applies to the site and how it is configured. PHP supports several server interfaces, and the correct setup depends on the hosting platform.

Distinguish the web runtime from a command-line executable. A script running in a terminal does not establish that the web server routes incoming requests to PHP correctly.

The PHP upgrade preparation guide helps gather the expected runtime requirements. Verify the selected supported version without assuming the version menu alone proves the handler is functioning.

Review relevant server and local configuration

Have the authorised operator compare the current handler mapping and relevant directory rules with the platform's supported arrangement. Include recent deployment changes that may have replaced or introduced local configuration.

Avoid making multiple speculative edits at once. Preserve a suitable configuration reference and use the operator's supported narrow correction so the cause and recovery remain understandable.

If the platform manages the mapping centrally, do not override it casually in application files. A copied directive can conflict with the provider's runtime service or become obsolete after a platform change.

Separate execution from application failure

Once the intended runtime receives the request, inspect appropriate private diagnostics for any application error. A missing module or incompatible code is not the same problem as the server failing to invoke PHP.

Do not enable detailed public error output as a substitute for establishing the protected diagnostic route. The operator needs useful evidence while the visitor receives an appropriate response.

The website files and databases guide helps keep dependencies distinct. A database failure after execution should not trigger unrelated handler changes once the request path has been established.

Verify through a harmless supported check

Use the provider's approved test or an appropriately controlled minimal application route to establish execution. Avoid publishing a general runtime information page or a file containing real secret values as a test.

Confirm the expected result through the affected public hostname and directory. A successful check under a temporary or sibling hostname may follow a different configuration.

Then exercise a representative ordinary website task. The handler working is one prerequisite; the application still needs its supported configuration and dependencies to produce the intended service result.

Close diagnostics and record the mapping

Remove temporary test material and retain the identified cause, correction and verification. If actual source exposure occurred, complete the separate incident assessment with the responsible owner.

A sound resolution explains the route from domain and document root to runtime and application response. That record makes future moves and upgrades more predictable than an unexplained collection of local handler rules left behind after trial and error.

Frequently asked questions

Does command-line PHP working prove web execution is configured?

No. The web server's routing and runtime arrangement are separate. Verify through the affected hostname and supported web handler.

Should a handler directive be copied from another hosting account?

Not without confirming it matches the platform's supported arrangement. Use the provider's documented configuration and preserve a clear recovery reference.

Is source text exposure just an ordinary application error?

No. Contain the exposure through the authorised incident process and assess the information involved, while the responsible operator corrects the execution arrangement.