Control Web Panel

WebPanel => Installation => Topic started by: ozwaldca on November 06, 2015, 01:24:13 AM

Title: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: ozwaldca on November 06, 2015, 01:24:13 AM
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!)
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: Glenn on November 06, 2015, 05:52:15 AM
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
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: brijendrasial on November 06, 2015, 08:15:16 AM
Temporary disable mod_sec

cd /usr/local/cwpsrv/conf.d/
mv mod_security.conf mod_security
service cwpsrv restart
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: ozwaldca on November 06, 2015, 12:43:05 PM
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  ]
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: brijendrasial on November 06, 2015, 03:12:52 PM
Looks like working fine.. isnt it?
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: ozwaldca on November 06, 2015, 08:11:48 PM
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?
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: ozwaldca on November 07, 2015, 12:38:17 AM
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
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: ozwaldca on November 07, 2015, 12:56:48 AM
all it says on line 419 is

 419 Include conf.d/*.conf
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: ozwaldca on November 07, 2015, 01:08:12 AM
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
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: Glenn on November 07, 2015, 06:52:52 PM
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 ?
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: ozwaldca 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
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: Farukh Khan 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.
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: ozwaldca on November 10, 2015, 01:23:55 PM
PM has been sent!
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: ozwaldca 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?
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: Igor S. 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.
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: ozwaldca on November 16, 2015, 01:27:16 PM
Hello thanks for the reply.

I am trying to install CWP on my home server running vmware 6. i have created a new VM with 8 GB RAM and 100GB drive.  I install CentOS 6.7 using the minimal install iso.  once that was installed and on the my network, i simply followed the instructions from the CWP web page to get CWP to install. 

There is obviously something wrong with the CWP install i just don't know how to figure it out.  i was hoping ti would be pretty straighforward. I am familiar with IIS and windows but wanted to give this a try.  so far it has not been kind to me. lol

any help is greatly appreciated.  I can always purchase support from CWP but was hoping not to spend my money on a simple install.

Cheers

Ozzy
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: ozwaldca on November 17, 2015, 02:21:59 AM
I am able to run chkconfig --list |grep httpd and get the following:

httpd           0:off   1:off   2:on    3:on    4:on    5:on    6:off

 so i know the httpd is running. i can also reach port 80.  I am new to linux so it might be a easy fix but any help is greatly appreciated.

cheers

Ozzy
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: ozwaldca on November 17, 2015, 08:57:49 PM
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.

here are the contents of my cwpsrv dir:


[root@webpanel ~]# cd /usr/local/cwpsrv/
[root@webpanel cwpsrv]# ls
apr       build    conf.d  icons    man      owasp-modsecurity-crs-master.zip
apr-util  cgi-bin  error   include  manual
bin       conf     htdocs  logs     modules


hope this helps
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: ozwaldca on November 19, 2015, 12:44:49 PM
Well this ends another attempt at a linux project.  i have been unable to get any help and i even contacted centos web panel directly and still nothing.  I have to say every time i try to moving the linux world this seems to be the case, back to windows i go.  At least it works and i can get support if need be.

I wish to thank those who have responded at least we tried. Maybe when the software is a bit more mature  i can try again.

cheers and thanks

Ozzy
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: Darkroom on November 19, 2015, 05:13:44 PM
did you try the command:

service cwpsrv start

?
try connecting with http on 2030 first.
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: ozwaldca on November 19, 2015, 10:53:19 PM
thanks for the reply. if you look at the original post you will see that i tried that and posted the results.

I wish it was that easy!

--Ozzy
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: ozwaldca on November 19, 2015, 10:55:47 PM
it looks like there is no mod_security folder? or the conf.d folder is empty

--ozzy
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: Igor S. on November 20, 2015, 08:10:38 AM
Hi.

We can not know about your server or folders.
Ask a system admin about it.
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: ozwaldca on November 20, 2015, 12:41:10 PM
i have emailed the CWP people directly and have not heard back have given them root access.

\i guess the question is why on a  fresh install would these folders not be created.  should i even be using 6.7?
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: Igor S. on November 24, 2015, 12:54:00 PM
Hi, course. You have to use CentOS 6.x
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: ozwaldca on November 24, 2015, 01:11:56 PM
i realize that centos 7 isn't supported yet  but does anyone else have issue with 6.7?

Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: GuardMoony on November 27, 2015, 11:11:55 AM
I've also done a fresh install with Centos 6.7  ( actually my 3rd attempt ). I followed the instruction like provided on the website.

These are the problems i found:

Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: Igor S. on November 27, 2015, 11:18:47 AM
Hello.

Would you like to use the CWP support service?
http://centos-webpanel.com/support-services
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: GuardMoony on November 27, 2015, 12:44:43 PM
Hello.

Would you like to use the CWP support service?
http://centos-webpanel.com/support-services

We don't necessary want support. We want working install scripts. Seeing that a default installation isn't working like it should on 6.7 and that 6.7 is the latest version on CentOS they should fix the scripts

Edit:

Just done a 4th install with saving the install log. It clearly show that after compiling the apache 2.2.17 it does a yum install of HTTPD with version 2.2.15 ...
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: Darkroom on November 29, 2015, 07:13:41 AM
I've also done a fresh install with Centos 6.7  ( actually my 3rd attempt ). I followed the instruction like provided on the website.

These are the problems i found:

  • port 2031 reply's as http not https
  • PHP doesn't seem to install correctly. Looks like the build fails and then i just gets a other version with yum when installing extra tools?
    Warning: file_get_contents(http://xxx.xxx.xxx.xxx/phpinfo.php): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found in /usr/local/cwpsrv/htdocs/resources/admin/modules/php_info.php(1) : eval()'d code(1) : eval()'d code on line 3
  • Installing Softaculous works. But when trying to open it, you just get back to the login page
  • Adding a user, The dns given to the users doesn't show up. If trying to add it again it says already in use

The http on port 2031happened to me as well. It was from using a 192.168.x.x address and network address translation. CWP doesn't support RFC1918 address and this was one place where it bit me. Check the file /usr/local/cwpsrv/conf.d/cwp-ssl.conf and make sure the cwp ssl server is listening on the right IP (change it if not). Also I changed my IP and shared IP and this file was not updated to reflect those changes. Once I was on a public IP with the correct configuration it worked fine. Others report it will work with NAT if you put the RFC1918 address it has in the config file.

The Softaculous is a known bug, should be fixed in the next version of Softaculous. In the mean time there is a workaround:
http://forum.centos-webpanel.com/softaculous/unable-to-access-softaculous-after-installation-via-cwp/
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: ozwaldca on November 30, 2015, 06:25:02 PM
thanks Darkroom

 i just reverted my snapshot and i am looking into those point now.  thanks for replying this thread.

Cheers

ozzy
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: ozwaldca on November 30, 2015, 07:45:55 PM
I've also done a fresh install with Centos 6.7  ( actually my 3rd attempt ). I followed the instruction like provided on the website.

These are the problems i found:

  • port 2031 reply's as http not https
  • PHP doesn't seem to install correctly. Looks like the build fails and then i just gets a other version with yum when installing extra tools?
    Warning: file_get_contents(http://xxx.xxx.xxx.xxx/phpinfo.php): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found in /usr/local/cwpsrv/htdocs/resources/admin/modules/php_info.php(1) : eval()'d code(1) : eval()'d code on line 3
  • Installing Softaculous works. But when trying to open it, you just get back to the login page
  • Adding a user, The dns given to the users doesn't show up. If trying to add it again it says already in use

Hi Darkroom,

i have tried reinstalling web panel and i still have the same issue. i tried accessing http: on port 2031 but no luck.  when i contacted support this is what they wrote for my case:
Quote
we have removed mod security configuration from the server as specified in the error message you sent.

Not really a fix but it allowed me access to the cwp
Title: Re: Fresh install of CWP on Centos 6.7 cannot access web server on 2030 or 2031
Post by: Darkroom on December 02, 2015, 03:57:04 AM
Reinstalling doesn't matter if you have a NAT'd IP. The install scripts somehow find your actual IP and put that in the /usr/local/cwpsrv/conf.d/cwp-ssl.conf file. I never told the install what my public IP was and it was still somehow set in that file. Sneaky.  ::)