是否可以使用cpanel控制另一台服务器的数据



我们有大约 4 台服务器,每台服务器都托管着多个网站。

我们希望使用 cpanel 更新所有这些服务器的所有网站。为此,我们应该在所有 4 台服务器中安装 cpanel 还是可以从单个 cpanel 实例控制所有 4 台服务器?如果是,如何?

只需在一台服务器中安装 cpanel,在更改 phpMyAdmin 文件夹中的值config.inc.php后,您就可以处理来自所有 4 台服务器的数据库。

此文件将包含如下内容,

/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';
/* Bind to the localhost ipv4 address and tcp */
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';

更改要连接的userpasswordhost

相关内容