Operating System & Version
CLOUDLINUX 7.9
cPanel & WHM Version
v98.0.9

Userr020

Member
Oct 8, 2020
8
0
1
Finland
cPanel Access Level
Root Administrator
Hi,


Phpmyadmin display the wrong php version 7.3.30? I don't have installed php 7.3 version. I have installed to server just php versions 7.4 and php 8.0.

How fix this? Check screenshots

php -v (PHP 7.4.24)

----------

Second question... phpMyAdmin display the "Server connection: SSL is not being used".

I need use this method so enable SSL or another method better? Connecting phpMyAdmin to a MySQL server over SSL

config.inc.php add this line after applicable server stuff: $cfg['Servers'][$i]['ssl']=true;
 

Attachments

Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,505
2,605
363
cPanel Access Level
Root Administrator
Hey there! PHPMyAdmin uses cPanel's internal PHP, which is currently 7.3. This allows the cPanel and WHM tools to still function in case something happens with the public Apache and PHP on the server.

Can you let me know how you're connecting to PHPMyAdmin? If you connect through cPanel with an SSL, I would also expect that connection to be secured.
 

Userr020

Member
Oct 8, 2020
8
0
1
Finland
cPanel Access Level
Root Administrator
Yes, I connect connect through cPanel with an SSL.

phpMyadmin site use SSL cerfiticate "cPanel (powered by Sectigo)" and the browser shows that ssl works.


But I added line
Code:
$cfg['Servers'][$i]['ssl'] = true;
to configuration file /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php

You will then see in phpMyAdmin (Connect: "SSL is used without certification authority") Check screenshot


So I need add more configuration? I'm not sure what is path for (ssl_key), (ssl_cert) and (ssl_ca)?

Code:
// IP address of your instance
$cfg['Servers'][$i]['host'] = '8.8.8.8';
// Use SSL for connection
$cfg['Servers'][$i]['ssl'] = true;
// Client secret key
$cfg['Servers'][$i]['ssl_key'] = '../client-key.pem';
// Client certificate
$cfg['Servers'][$i]['ssl_cert'] = '../client-cert.pem';
// Server certification authority
$cfg['Servers'][$i]['ssl_ca'] = '../server-ca.pem';
// Disable SSL verification (see above note)
$cfg['Servers'][$i]['ssl_verify'] = false;
 

Attachments