| SYSTEM INFORMATION | |
|---|---|
| OS type and version | Ubuntu Linux 24.04.4 |
| Webmin version | 2.621 |
| Virtualmin version | 8.1.0 GPL |
| Webserver version | what is this? |
| Related packages | SUGGESTED |
I’m running a Virtualmin server with different virtual server.
On a test.domain.ext virtualmin server I used the Manage Web Apps tool to Install Wordpress.
This caused issue to PHP on other virtual server.
What seems happened:
I run PHP 8.4 for all virtual server.
After the Wordpress installation made by the Manage Web Apps section seems my helpdesk.domain.ext that run freescout was served by PHP 8.4 but PHP 8.5 on SSH infact the info.php was showing PHP 8.4 but on SSH as client PHP the version PHP 8.5 was set by default not by me.
On the domain helpdesk.domain.ext, FreeScout CLI jobs (such as automatic email fetching) were failing with the error: could not find driver (SQL: select * from options ...).
This happened because the default PHP version for the CLI was PHP 8.5, while the site and FreeScout were configured to use PHP 8.4 via PHP-FPM.
I suppose the cause of this issue was because I used the Manage Web Apps on test.domain.ext to install Wordpress. After this I started to have issue on helpdesk.domain.ext this broken completely FreeScout as PHP start to have issues.
Although the pdo_mysql module was installed and available for PHP-FPM, the CLI did not load it, causing any command run via CLI (artisan, cron jobs, queue workers) to fail with the PDO error.
After setting PHP 8.4 as the default CLI version for the helpdesk user, the PDO drivers were properly loaded, and FreeScout jobs started working correctly.
sudo update-alternatives --config php
Likely cause: Installing WordPress via Virtualmin’s “Manage Web Apps” may have changed the user’s default PHP version to 8.5, creating a mismatch between the web server PHP version (8.4) and the CLI version (8.5), which caused PDO/MySQL-related CLI commands to fail.
I just report this issue because let cause downtime and let me work for more then an hour to diagnose and fix this.

