How to change cwpsrvd Listen port (CWP)

Started by Administrator, July 07, 2014, 04:19:16 PM

Previous topic - Next topic

Administrator

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
nano /usr/local/cwpsrv/conf/cwpsrv.conf

to get Line number us this command
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.
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.



pixelpadre

I dont believe this post is valid in centos 7

crmgddn63

not work after upgrade cwp 0.9.0.188. how can i change this login port ?

thank you

crmgddn63

Quote from: crmgddn63 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

it's ok. i do it wrong :)

doc_denis

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:
sudo nano /usr/local/cwpsrv/conf/cwp-panels.conf

and change value port on firewall || puis changer les ports dans le firewall :
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 ;-)

dg1

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