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.