Beberapa pengguna bertanya kepada kami apakah mungkin untuk mengubah port cPanel 2082/2083 default di server mereka. Jika Anda mencari di internet, Anda akan melihat banyak halaman web/artikel yang merekomendasikan Anda untuk:
- Masuk ke server Anda melalui SSH sebagai root
- Edit file /var/cpanel/cpanel.config di editor teks pilihan Anda.
- Cari baris
port=2082
dan ganti 2082 dengan port yang diinginkan. - Restart layanan cPanel dengan service cpanel restart
Perhatikan bahwa metode ini tidak berfungsi lagi. Saat artikel ini ditulis – Juni 2017 – tidak ada cara untuk mengubah port cPanel (dan WHM) default!
Mencoba menambahkan baris port=xxxx . secara manual baris di /var/cpanel/cpanel.config akan menghasilkan peringatan di file log 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.