Submitted by Vince42 on Fri, 07/28/2017 - 11:21 Pro Licensee
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
Submitted by JamieCameron on Fri, 07/28/2017 - 20:16 Comment #1
Does the
php.ini
file exist anywhere in or under your/etc
directory? It may have been deleted ..Submitted by Vince42 on Sat, 07/29/2017 - 15:49 Pro Licensee Comment #2
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.Submitted by JamieCameron on Sun, 07/30/2017 - 01:40 Comment #3
Which PHP execution mode are you using for this domain (it's set on the Website Options page) ?
Submitted by Vince42 on Mon, 07/31/2017 - 14:59 Pro Licensee Comment #4
The PHP execution mode is Apache
mod_php
(run as Apache's user) for all domains.Submitted by Vince42 on Mon, 08/07/2017 - 15:17 Pro Licensee Comment #5
Any news on this installation error? I would love to upgrade my server installations ... ;)
Submitted by JamieCameron on Mon, 08/07/2017 - 18:19 Comment #6
Ok, I found a bug that can cause this - it will be fixed in the upcoming 6.00 Virtualmin release.
Submitted by JamieCameron on Mon, 08/07/2017 - 18:19 Comment #7
Submitted by IssueBot on Mon, 08/21/2017 - 18:30 Comment #8
Automatically closed - issue fixed for 2 weeks with no activity.
Submitted by richb-hanover on Sun, 05/06/2018 - 20:10 Pro Licensee Comment #9
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.
Submitted by mxgroup on Wed, 06/13/2018 - 18:20 Comment #10
I also have this issue, please help. See my post: https://www.virtualmin.com/comment/797224#comment-797224
Submitted by richb-hanover on Sat, 06/16/2018 - 11:35 Pro Licensee Comment #11
Any updates on this? I added more info to the report at: https://www.virtualmin.com/node/57041 Thanks!
Submitted by Vince42 on Sun, 06/24/2018 - 08:38 Pro Licensee Comment #12
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.
Submitted by watermark on Wed, 06/27/2018 - 10:39 Pro Licensee Comment #13
I had the same error. I had to switch from FPM to FCGI to install the script. After which, I switched back to FPM.
PHP module mysqli is required .. .. could not find domain's php.ini file installing wordpress with vitualmin
Submitted by JamieCameron on Fri, 07/10/2020 - 21:38 Comment #15
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
.. for all those seeing this error - PHP module mysql is required you need to install php-mysql extension.
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.