March 2, 2023, 2:54pm
Operating system Debian Linux 11
Webmin version 2.013
Virtualmin version 7.5
When running the Install Script phpmyadmin
Failed to install script : This script cannot be installed, as no compatible PHP versions were found.
The install of Debian and Webmin is new…
Is there still a problem of compatibility between apache and virtualmin / webmin ?
March 2, 2023, 3:00pm
What’s the PHP version you’re currently running?
March 2, 2023, 3:06pm
There is 7.4, 8.2
But the web site setting on Virtualmin offers only one option for PHP
PHP options for this domain
PHP script execution mode Disabled
March 2, 2023, 3:10pm
That may be the problem. Try to install a newer PHP version on your server.
March 2, 2023, 3:15pm
Try changing between PHP modes and see if you get the option to select PHP versions.
March 2, 2023, 3:16pm
Where can I change PHP mode on Virtualmin Webmin ?
March 2, 2023, 3:44pm
Server Configuration > PHP Options
March 2, 2023, 4:01pm
It was empty. Only Disabled shown.
But I add more PHP modules to Debian And now it is ok !
Thank you, you put me in the right direction.
apt-get install php8.2 php8.2-fpm php8.2-mysql libapache2-mod-php8.2 libapache2-mod-fcgid -y
apt-get install php8.2-zip
March 2, 2023, 4:11pm
Some Debian maintainer keeps a list of all php package versions. I just went through this. You can then chose based on what’s needed.
deb https://packages.sury.org/php/ bullseye main
March 2, 2023, 4:12pm
But still after installing phpmyadmin via Virtualmin,
Still a 404 error when reaching with the URL provided by the phpmyadmin script.
Is that an Apache config that should be done manually ?
March 2, 2023, 4:37pm
Also if I set a second website with a first letter before the first website, then Accessing the first leads to the second // even if I try to disable it.
It is so difficult to use Virtualmin with Apache. I know that it is even more difficult with Nginx.
So how come with 2 site created by Virtualmin Apache leads to the wrong site ?
March 2, 2023, 4:56pm
I’ve never used Virtualmin and Apache. So I can’t provide much help. But I have to disagree with your nginx comment. It works great for me. Although I haven’t tested phpMyAdmin installer recently. This is how I setup servers,
Install Virtualmin with Nginx, PHP v8 and MySQL 8 on Ubuntu 20.04 Server to host super-fast websites. This tutorial includes newbie proof step-by-step commands
Est. reading time: 6 minutes
March 2, 2023, 5:03pm
I wish I could keep Nginx but it is too difficult with Drupal sites. This is why I move back to Apache2.
March 3, 2023, 9:37am
No I didn’t use this method.
I will do it now. Thank you ;-).
This link gives a good guideline w/ Checking Configuration
I can see that Apache does not support HTTP/2 : Missing Apache mod_http2 module
But in the Virtualmin Documentation I cannot see a process for Apache mod_http2.
I find it strange as PHP-FPM is activated :
The following PHP execution modes are available : fpm
The following PHP-FPM versions are available : 7.4.33 (php7.4-fpm) 8.1.16 (php8.1-fpm) 8.2.3 (php8.2-fpm)
Not to mention that phpMyAdmin has modest PHP requirements:
It’s absolutely unnecessary to have to run to some unofficial repo to get the latest version of PHP 8 for Debian 11
By all signs, you simply haven’t installed PHP and Apache properly
Whats that mean, the repo I posted is the only way to add PHP versions with Virtualmin, that why it in the documentation of Virtualmin.
I’ll rephrase what I was trying to say:
Debian 11 comes with PHP-7.4
phpMyAdmin is happy with PHP-7.4
For the sake of phpMyAdmin , there’s no need to install multiple PHP versions
phpMyAdmin works fine with Apache
I don’t see how installing multiple PHP versions can/could address the OP’s issue, but at the same time, the OP didn’t succeed very well in describing/diagnosing their issue (as I suggested)