Author Topic: How to change cwpsrvd Listen port (CWP)  (Read 38258 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
How to change cwpsrvd Listen port (CWP)
« on: July 07, 2014, 04:19:16 PM »
If you need to change cwpsrv Listen port you can do that by editing following files:

Here you can edit default cwp admin ports 2030,2031,2086,2087
Code: [Select]
nano /usr/local/cwpsrv/conf/cwpsrv.conf
to get Line number us this command
Code: [Select]
grep -n listen /usr/local/cwpsrv/conf/cwpsrv.conf
don't forget that you need to add your new ports in CSF Firewall and restart cwpsrv using this command.
Code: [Select]
sh /scripts/restart_cwpsrv

For user panel you can edit this file
/usr/local/cwpsrv/conf.d/users.conf

Note that these changes are not recommended as update can overwrite them.


« Last Edit: June 13, 2018, 07:56:28 AM by Administrator »
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
***
Re: How to change cwpsrvd Listen port (CWP)
« Reply #1 on: May 24, 2017, 10:46:39 PM »
I dont believe this post is valid in centos 7

Offline
*
Re: How to change cwpsrvd Listen port (CWP)
« Reply #2 on: June 18, 2017, 05:13:26 PM »
not work after upgrade cwp 0.9.0.188. how can i change this login port ?

thank you

Offline
*
Re: How to change cwpsrvd Listen port (CWP)
« Reply #3 on: June 18, 2017, 08:56:42 PM »
not work after upgrade cwp 0.9.0.188. how can i change this login port ?

thank you

it's ok. i do it wrong :)

Offline
*
Re: How to change cwpsrvd Listen port (CWP)
« Reply #4 on: June 24, 2017, 11:44:47 AM »
Hi, my experience on english and french for my friends.

for change access port for CWP version"0.9.8.333" || Pour changer le port d'accès à CWP version "0.9.8.333"

please, save original files before change !  || attention de sauvegarder les fichiers de configuration avant de modifier !

change value 2030 and 2031 on : || changer les valeurs 2030 et 2031 dans:
Code: [Select]
sudo nano /usr/local/cwpsrv/conf/cwp-panels.conf
and change value port on firewall || puis changer les ports dans le firewall :
Code: [Select]
sudo nano /etc/csf/csf.conf
remove old ports and add new ports || supprimer et ajouter les nouveaux ports :

on "Allow incoming TCP ports"
and "Allow outgoing TCP ports"
and "allow incomming IPv6 ports"
and "allow outgoing IPv6 ports"

one reboot and enjoy ;-)

Offline
*
Re: How to change cwpsrvd Listen port (CWP)
« Reply #5 on: June 13, 2018, 05:43:32 AM »
It seems in newer versions of CWP (0.9.8.667 or newer), older instructions are not applicable anymore.

The file to edit is: /usr/local/cwpsrv/conf/cwpsrv.conf

HTTP / NON SSL ports are around lines 16-17

HTTPS / SSL ports are around lines 47-48

CSF (firewall) configuration file to edit is unchanged: /etc/csf/csf.conf