Script installer upgrade MediaWiki: PHP module mysql is required .. .. could not find global php.ini file

I just tried to upgrade all MediaWiki instances on my server and received the error

PHP module mysql is required ..
.. could not find global php.ini file

. This is the first time that I received this error. Any idea what this is about?

Status: 
Active

Comments

Does the php.ini file exist anywhere in or under your /etc directory? It may have been deleted ..

There are three php.ini files under /etc:

/etc/php5/cgi/php.ini
/etc/php5/cli/php.ini
/etc/php5/apache2/php.ini

none of them though under /etc directly.

Which PHP execution mode are you using for this domain (it's set on the Website Options page) ?

The PHP execution mode is Apache mod_php (run as Apache's user) for all domains.

Any news on this installation error? I would love to upgrade my server installations ... ;)

Ok, I found a bug that can cause this - it will be fixed in the upcoming 6.00 Virtualmin release.

Status: Active » Fixed
Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

I just ran into a (seemingly) identical problem today. I posted a query at:

https://www.virtualmin.com/node/57041

before I found this thread. Any more info I could provide beyond what's in the other posting? Thanks.

Just ran into the same error again, although I thought I had this sorted out. I am using Virtualmin 6.03 Pro (which according to an earlier post should already have solved this issue). I checked my settings under Server Configuration -> PHP versions, found that 7.x were preselected and siwtched it back to 5.x - afterwards I have been able to run the install script.

I have 7.x on my system and it is not yet properly configured (running Ubuntu 14.04 LTS, which does not officiially support PHP 7.x; added the repository manually, did not dare to switch over to 7.x, because I feared misconfigurations and side effects).

I guess that is why the installation failed in the first place. This being said, my advice would be: check your PHP settings and make sure that your properly installed default PHP version is used. HTH.

I had the same error. I had to switch from FPM to FCGI to install the script. After which, I switched back to FPM.

globalcard's picture
Submitted by globalcard on Tue, 07/07/2020 - 07:39

PHP module mysqli is required .. .. could not find domain's php.ini file installing wordpress with vitualmin

globalcard - you might want to open a new ticket for your issue, since the original bug is pretty old and likely has a different cause

Ilia's picture
Submitted by Ilia on Sat, 07/11/2020 - 05:35

.. for all those seeing this error - PHP module mysql is required you need to install php-mysql extension.

apt-get install php-mysql

Note: If you have multiple PHP versions installed, then you would need to make sure that you install extension version according with the PHP version used by virtual-server. For instance, if PHP 7.2 is used, you would need to install php7.2-mysql package as well.