A site fails because a PHP extension is off
A site can fail with Class "Redis" not found when an extension it needs is off for its PHP version. One command lists the extensions, and another turns on the one the site needs.
Symptoms
The page returns 500 Internal Server Error. The domain's PHP log, shown by urbestack-domain-log --name example.com --type php, contains this line.
[30-Nov-2026 08:28:20 UTC] PHP Fatal error: Uncaught Error: Class "Redis" not found in /home/USER/files/web/example.com/public_html/r.php:1The same kind of error can occur with other extensions. The message names a class or function from the extension the site needs.
Cause
Each installed PHP version has its own extension settings. Those settings apply to every site on that version.
Extensions such as redis and memcached are off until an administrator turns them on.
Resolution
List the extensions and their states for each installed PHP version.
urbestack-php-ext-listFind the site's PHP version in the
php_runningfield of urbestack-domain-list. Turn on the extension for that version. This example turns onredisfor PHP 8.4. UrbeStack installs the extension's package and the packages it needs, then reloads PHP for that version.urbestack-php-ext-set --name redis --on --version 8.4Use
--all-versionsto turn on the extension for every installed version.Run urbestack-php-ext-list again to check that
redisis on for the site's PHP version.