Author Topic: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031  (Read 45924 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Hey guys,

might be an easy solution but i am not able to access my new install of cwp.  i believe that everything installed ok. I did a fresh install on a VM of Centos 6.7 and then followed the CWP install direction to the letter.

I received the completed screen with addresses to reach the web server but nothing is working. I have stopped iptables.  With iptables stopped i can go to http://serverip:80 and i receive the test page but that will stop if i turn iptables back on.

I have also tried the following:
iptables -A INPUT -p tcp --dport 2030 -j ACCEPT

When i try to restart the cwpsrv i get the following errors:

[root@cwppanel ~]# service cwpsrv restart
Stopping cwpsrvd:                                          [FAILED]
Starting cwpsrvd: cwpsrvd: Syntax error on line 419 of /usr/local/cwpsrv/conf/httpd.conf: Syntax error on line 4 of /usr/local/cwpsrv/conf.d/mod_security.conf: Could not open configuration file /usr/local/cwpsrv/modsecurity-crs/modsecurity_             crs_10_config.conf: No such file or directory
                                                           [FAILED]


any ideas?

Cheers

Ozzy (Linux/CWP newbie please be kind!)
« Last Edit: November 06, 2015, 01:35:18 AM by ozwaldca »

Offline
**
Hi try turning off iptables completely , make sure your ISP hasnt blocked port 2030 and have a look at whats going on in Syntax error on line 419 of /usr/local/cwpsrv/conf/httpd.conf , it sounds like Apache isnt starting and thats why cwp isnt working

Temporary disable mod_sec

cd /usr/local/cwpsrv/conf.d/
mv mod_security.conf mod_security
service cwpsrv restart

Offline
*
HI i tried and receive the following :

[root@cwppanel ~]# cd /usr/local/cwpsrv/conf.d
[root@cwppanel conf.d]# mv mod_security.conf mod_security
[root@cwppanel conf.d]# service cwpsrv restart
Stopping cwpsrvd:                                          [FAILED]
Starting cwpsrvd: cwpsrvd: Could not reliably determine the server's fully qualified domain name, using cwppanel.xxxxxxx.local for ServerName
                                                           [  OK  ]

Looks like working fine.. isnt it?

Offline
*
No sir was not working still...  doing another fresh install but will have the same issue...  stay tuned.

should i be able to go to internal ip and hit the web server as well or just external?  i am using  ddns service would that affect it?

Offline
*
So fresh install ( with a snapshot this time)
and same issue.  am i able to access the server internally as to rule out my firewall?  (yes i have allowed the ports to be open)

i can access the server through ssh or vmware and i can reach the web server on port 80.

Any more ideas?

Cheers

Ozzy

Offline
*
all it says on line 419 is

 419 Include conf.d/*.conf

Offline
*
looks like someting did nit install properly.. installed namp and ran scan  came back with:
Is there a default install log?

[root@webpanel ~]# nmap -sT -O localhost

Starting Nmap 5.51 ( http://nmap.org ) at 2015-11-06 20:04 EST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000015s latency).
Other addresses for localhost (not scanned): 127.0.0.1
Not shown: 987 closed ports
PORT      STATE SERVICE
21/tcp    open  ftp
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
2222/tcp  open  EtherNet/IP-1
3306/tcp  open  mysql
10025/tcp open  unknown

Offline
**
Try changing the cwpadmin port to one on your list ( stop the existing service on that port first) restart cwp and see if the connection to the web url works ?

Offline
*
Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
« Reply #10 on: November 10, 2015, 02:21:05 AM »
Hi Glenn i can try that ...

Seems weird that after three fresh installs it behaves the same way.

cheers

Ozzy

Offline
**
Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
« Reply #11 on: November 10, 2015, 03:33:51 AM »
If you want then I can provide you teamviewer support with the fresh CWP installation. As you said that you have tried three times so that might be a problem with your OS template or some VPS configuration. If you want teamviewer support then PM me.

Offline
*
Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
« Reply #12 on: November 10, 2015, 01:23:55 PM »
PM has been sent!

Offline
*
Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
« Reply #13 on: November 11, 2015, 08:41:33 PM »
why on a fresh install following the instructions do i get this error when trying to restart the cwpserver service:


Starting cwpsrvd: cwpsrvd: Syntax error on line 419 of /usr/local/cwpsrv/conf/httpd.conf: Syntax error on line 4 of /usr/local/cwpsrv/conf.d/mod_security.conf: Could not open configuration file /usr/local/cwpsrv/modsecurity-crs/modsecurity_crs_10_config.conf: No such file or directory


when install cents i kept the default formatting.  Could that be causing an issue.  it looks like files may not have been installed?

Offline
*****
Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
« Reply #14 on: November 13, 2015, 07:25:41 AM »
Hello.

Nobody knows how did you install it and what errors did you have.
Just check if the directory /usr/local/cwpsrv/modsecurity-crs/ exists.
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services