Algunos usuarios nos preguntaron si es posible cambiar el puerto cPanel 2082/2083 predeterminado en sus servidores. Si está buscando en Internet, verá muchas páginas web/artículos que le recomiendan:
- Inicie sesión en su servidor a través de SSH como root
- Edite el archivo /var/cpanel/cpanel.config en su editor de texto preferido.
- Buscar la línea
puerto=2082
y reemplace 2082 con el puerto deseado. - Reinicie el servicio de cPanel con reinicio de cpanel de servicio
Observe que este método ya no funciona. Al momento de escribir este artículo, junio de 2017, ¡no hay forma de cambiar los puertos predeterminados de cPanel (y WHM)!
Intentando agregar manualmente la línea port=xxxx línea en /var/cpanel/cpanel.config dará como resultado advertencias en el archivo de registro de cPanel /usr/local/cpanel/logs/error_log :
[2017-06-26 15:56:20 -0400] warn [restartsrv_cpsrvd] One or more key settings for "webcp.plothost.com" were either not found in cPanel & WHM’s server configuration file (/var/cpanel/cpanel.config), or were present but did not pass validation.
[2017-06-26 15:56:20 -0400] warn [restartsrv_cpsrvd] The following settings are obsolete and have been removed from the server configuration file:
[2017-06-26 15:56:20 -0400] warn [restartsrv_cpsrvd] port
[2017-06-26 15:56:20 -0400] warn [restartsrv_cpsrvd] Read the cpanel.config file documentation (https://go.cpanel.net/cpconfig) for important information about this file.