Control Web Panel

WebPanel => Installation => Topic started by: mta on May 10, 2017, 01:37:33 AM

Title: cannot access panel
Post by: mta on May 10, 2017, 01:37:33 AM
centos 7 / auto install (not eror)
ip:80 server test page working
Code: [Select]
Starting Nmap 6.40 ( http://nmap.org ) at 2017-05-10 01:30 UTC
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00014s latency).
Other addresses for localhost (not scanned): 127.0.0.1
Not shown: 986 closed ports
PORT      STATE SERVICE
21/tcp    open  ftp
22/tcp    open  ssh
25/tcp    open  smtp
53/tcp    open  domain
80/tcp    open  http
110/tcp   open  pop3
143/tcp   open  imap
465/tcp   open  smtps
587/tcp   open  submission
993/tcp   open  imaps
995/tcp   open  pop3s
2030/tcp  open  device2
3306/tcp  open  mysql
10025/tcp open  unknown
Device type: general purpose
Running: Linux 3.X
OS CPE: cpe:/o:linux:linux_kernel:3
OS details: Linux 3.7 - 3.9
Network Distance: 0 hops
Title: Re: cannot access panel
Post by: 24x7servermanagement on May 10, 2017, 05:24:36 AM
Try to disable iptables or csf to see if panel is working or not.

# service iptables stop

# csf -x
Title: Re: cannot access panel
Post by: mta on May 10, 2017, 10:02:09 AM
Code: [Select]
[root@a]# service iptables stop
Redirecting to /bin/systemctl stop  iptables.service
[root@a]# csf -x
csf and lfd have been disabled, use 'csf -e' to enable

*server test page work
* panel page not work (2030 or 2031 port)
Title: Re: cannot access panel
Post by: Administrator on May 10, 2017, 10:08:21 AM
try restarting cwp from command line
Code: [Select]
sh /scripts/restart_cwpsrv
Title: Re: cannot access panel
Post by: mta on May 10, 2017, 11:00:34 AM
Code: [Select]
[root@a]# sh /scripts/restart_cwpsrv
[root@a]#
No error no reaction :)
Title: Re: cannot access panel
Post by: Administrator on May 10, 2017, 06:49:46 PM
if cwp works but you can't access it then its firewall related issue, this can be company or provider blocking ACL.
Title: Re: cannot access panel
Post by: mta on May 10, 2017, 09:33:47 PM
port block ? ( u answer yes ; how to change port ? )

"google compute engine" using
Title: Re: cannot access panel
Post by: Igor S. on May 30, 2017, 10:29:11 AM
port block ? ( u answer yes ; how to change port ? )

"google compute engine" using

Hi, you have to ask your service provider about that
Title: Re: cannot access panel
Post by: mrgamaliel on September 05, 2017, 02:24:44 AM
I have same problem, i use 0.9.8.188
I tried restart service, reinstall cwp, but not working please help
Title: Re: cannot access panel
Post by: mrgamaliel on September 05, 2017, 02:25:43 AM
I have same problem, i use 0.9.8.188
I tried restart service, reinstall cwp, but not working please help
Title: Re: cannot access panel
Post by: studio4host on September 05, 2017, 11:08:09 AM
I have same problem, i use 0.9.8.188
I tried restart service, reinstall cwp, but not working please help

for start update your cwp since ver 188 is old
sh /scripts/update_cwp

then you should check if your port is listed there
if yes that could mean yo ur server provider has the port closed or your internet provider.

Also you can clean your iptables list to be sure that this issue is not a server system firewall related.
Code: [Select]
csf -x
iptables -F
service iptables save
Title: Re: cannot access panel
Post by: mrgamaliel on September 06, 2017, 04:55:41 AM
when i try to update, there show error

php fatal error:
the encode file /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php has expired.
in unknown in line 0
Title: Re: cannot access panel
Post by: studio4host on September 06, 2017, 07:38:36 AM
looks like you have too old version then which was not upgraded for a long time and you would need to do this manually.
I wouldn't recommend that you do this by yourself if you are not an experienced linux admin and the best would be that you contact cwp support.
Title: Re: cannot access panel
Post by: mrgamaliel on September 06, 2017, 07:52:11 AM
can you give me tutorial or link to upgrade cwp manually?
i will try upgrade manually, i dont have cwp support
Title: Re: cannot access panel
Post by: studio4host on September 06, 2017, 07:59:08 AM
you would need to do that by checking upgrade scripts and once you know what they are doing then you will also know what to do...as I said that is not for beginners.
Title: Re: cannot access panel
Post by: mrgamaliel on September 08, 2017, 07:26:44 AM
after 1 week, and i am too lazy to move 50 domain to new server, i found way to back my cwp admin panel.

1. i clone my vm and roll back to latest config that working well.
2. update cwp 0.9.8.188 to 0.9.8.268 using manual update, sh /script/update-cwp
3. and i found cwp using this link to update http://dl1.centos-webpanel.com/files/cwp2-latest
4. i back to error cwp server and try running script, sh /script/cwp2-latest
5. and finally my cwp running well i can open again my cwp admin page on 2030

Solved
Title: Re: cannot access panel
Post by: ishanjn05 on September 20, 2017, 06:59:08 AM
Hello,
I followed all of instructions (my server have Centos v7, So change command accordingly).
But for me port 2030 and 2031 both are not working. returning timeout error.   
I also check "iptables" and "Port" -

Port is listening -
   [root@xxxxxxxxxxxxxxxxxxxxx ~]# lsof -i :2030
   COMMAND PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
   cwpsrv  794 root   24u  IPv4  15146      0t0  TCP *:device2 (LISTEN)
   cwpsrv  796 root   24u  IPv4  15146      0t0  TCP *:device2 (LISTEN)
  cwpsrv  797 root   24u  IPv4  15146      0t0  TCP *:device2 (LISTEN)

----------------------------------------------
iptables configuration -

[root@xxxxxxxxxxxxxxxxxxxxx ~]# iptables -L -n
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
f2b-SSH    tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:22
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            state NEW tcp dpt:2030
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            state NEW tcp dpt:2031

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain f2b-SSH (1 references)
target     prot opt source               destination
REJECT     all  --  61.177.172.60        0.0.0.0/0            reject-with icmp-port-unreachable
RETURN     all  --  0.0.0.0/0            0.0.0.0/0

Can you please provide some guidance how can i resolve this problem?
Thanks in advance.
Title: Re: cannot access panel
Post by: studio4host on September 21, 2017, 01:09:11 PM
maybe your provider is blocking the custom ports so you need to contact them.
Title: Re: cannot access panel
Post by: botonakis on March 07, 2018, 05:23:36 PM
when i try to update, there show error

php fatal error:
the encode file /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php has expired.
in unknown in line 0

I had the same problem and I fixed it by just installing CWP again over it. I have CentOs 6.9 (Final)

Code: [Select]
cd /usr/local/src
wget http://centos-webpanel.com/cwp-latest
sh cwp-latest

It kept all the settings I had before. But to be sure copy all databases and files from your users.