我们有大约4台服务器,每台服务器都有多个网站托管在其中。
我们希望使用cpanel更新所有这些服务器的所有网站。因此,我们应该在所有4台服务器上安装cpanel,还是可以从单个cpanel实例控制所有4台服务器?如果是,是如何实现的?
发布于 2017-02-06 19:43:17
只需在一台服务器上安装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';更改user、password和host以进行连接
https://stackoverflow.com/questions/42066783
复制相似问题