PHP error category

CLI

Command-line PHP.

CLI errors arise when command-line php affect an executing PHP application or its supporting service. Use the exact signature and runtime context to narrow the cause before changing configuration.

The guides in this category separate code defects from environment differences, show focused diagnostics, and favor site-scoped corrections that preserve unrelated applications.

Guides in this category

Title Pattern Severity
Cron uses the wrong PHP path /bin/sh: %s: No such file or directory error
PHP CLI argc or argv is missing Warning: Undefined variable $argv warning
PHP CLI loads a different php.ini Loaded Configuration File => %s warning
php command not found %s: php: command not found error
PHP shebang bad interpreter %s: %s: bad interpreter: No such file or directory error

Helpful tools