PHP Modules Not Showing

Occasionally, even with an up-to-date version of appcd, certain PHP modules may appear as missing or unavailable within a website's environment. This typically happens when the virtual filesystem (chroot) used by the website container hasn't been synchronized with the latest platform updates.

Resolution Steps

Step 1: Rebuild the Chroot Environment

Access your server via SSH as root and run the following command to refresh the system-level binaries available to the containers:

/usr/sbin/chrootbuilder

This process synchronizes the libraries and extensions from the host system into the template used for website isolation.

Step 2: Refresh the Website Container

Simply running the builder isn't enough; you must force the active website to "reload" its environment to recognize the changes.

  1. Navigate to the Website Dashboard in the control panel.
  2. Go to Settings > PHP Settings.
  3. Toggle the PHP version: switch it to a different version (e.g., from 8.1 to 8.2) and then immediately switch it back to your preferred version.
What this does

This toggle restarts the PHP daemon (LSPHP or PHP-FPM) for that specific site, ensuring it pulls the latest binary paths and modules updated by the chrootbuilder.