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.

Status:
Closed (fixed)
»
Active

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.