Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-28, 21:00:45

Author Topic: Fresh installed kloxomr7 on centos7 problems  (Read 15676 times)

0 Members and 1 Guest are viewing this topic.

Offline idove

  • Valuable Member
  • *
  • Posts: 142
  • Karma: +0/-0
    • View Profile
Re: Fresh installed kloxomr7 on centos7 problems
« Reply #30 on: 2017-08-30, 09:53:59 »
Code: [Select]

[root@server ~]# ps aux|grep -e nginx -e hiawatha -e lighttpd -e httpd
root       505  0.0  0.2 242992 10192 ?        Ss   04:58   0:00 /usr/sbin/httpd -DFOREGROUND
apache     506  0.0  0.1 242988  4984 ?        S    04:58   0:00 /usr/sbin/httpd -DFOREGROUND
apache     507  0.0  0.1 275776  5760 ?        Sl   04:58   0:00 /usr/sbin/httpd -DFOREGROUND
apache     508  0.0  0.1 275776  5760 ?        Sl   04:58   0:00 /usr/sbin/httpd -DFOREGROUND
lxlabs    4402  0.0  0.0  61616  1764 ?        Ssl  05:07   0:01 /usr/local/lxlabs/kloxo/init/kloxo-hiawatha -c /usr/local/lxlabs/kloxo/init
root     32556  0.0  0.0 112648   988 pts/0    S+   10:04   0:00 grep --color=auto -e nginx -e hiawatha -e lighttpd -e httpd
[root@server ~]#



Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Fresh installed kloxomr7 on centos7 problems
« Reply #31 on: 2017-08-30, 12:16:11 »
Apache (httpd) already running well in your server.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline idove

  • Valuable Member
  • *
  • Posts: 142
  • Karma: +0/-0
    • View Profile
Re: Fresh installed kloxomr7 on centos7 problems
« Reply #32 on: 2017-08-30, 12:45:01 »
Thank you,
but I already notice that :).
I know you are very patience and help a lot, but I still have problem.
Problem is that it doesn't open web admin nor client domain again after reboot, and apache is stared.
So, httpd is started but it doesn't serve web pages. Is this related with tcp6 listen port or? Should it be tcp4?

On my old server with kloxo 6.5:
Code: [Select]

[root@server ~]# netstat -an | grep LISTEN
tcp        0      0 0.0.0.0:22               0.0.0.0:*                   LISTEN     
tcp        0      0 127.0.0.1:53                0.0.0.0:*                   LISTEN     
tcp        0      0 127.0.0.1:953               0.0.0.0:*                   LISTEN     
tcp        0      0 0.0.0.0:443                 0.0.0.0:*                   LISTEN     
tcp        0      0 127.0.0.1:7776              0.0.0.0:*                   LISTEN     
tcp        0      0 0.0.0.0:7777                0.0.0.0:*                   LISTEN     
tcp        0      0 0.0.0.0:7778                0.0.0.0:*                   LISTEN     
tcp        0      0 0.0.0.0:7779                0.0.0.0:*                   LISTEN     
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN     
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN     
tcp        0      0 :::21                       :::*                        LISTEN     
tcp        0      0 :::22229                    :::*                        LISTEN     
tcp        0      0 :::25                       :::*                        LISTEN     
tcp        0      0 ::1:953                     :::*                        LISTEN     
tcp        0      0 :::993                      :::*                        LISTEN     
tcp        0      0 :::995                      :::*                        LISTEN     
tcp        0      0 :::587                      :::*                        LISTEN     
tcp        0      0 :::110                      :::*                        LISTEN     
tcp        0      0 :::143                      :::*                        LISTEN     
tcp        0      0 :::465                      :::*                        LISTEN 

On new server it doens't listen port 80 nor 443 on tcp (tcp4) just tcp6, is that normal?

Code: [Select]

root@server ~]# netstat -an | grep LISTEN
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN     
tcp        0      0 77.81.247.151:53        0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:7776          0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:7777            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:7778            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:7779            0.0.0.0:*               LISTEN     
tcp6       0      0 :::3306                 :::*                    LISTEN     
tcp6       0      0 :::587                  :::*                    LISTEN     
tcp6       0      0 :::110                  :::*                    LISTEN     
tcp6       0      0 :::143                  :::*                    LISTEN     
tcp6       0      0 :::111                  :::*                    LISTEN     
tcp6       0      0 :::80                   :::*                    LISTEN     
tcp6       0      0 :::465                  :::*                    LISTEN     
tcp6       0      0 :::53                   :::*                    LISTEN     
tcp6       0      0 :::22                   :::*                    LISTEN     
tcp6       0      0 :::25                   :::*                    LISTEN     
tcp6       0      0 :::443                  :::*                    LISTEN     
tcp6       0      0 :::993                  :::*                    LISTEN     
tcp6       0      0 :::995                  :::*                    LISTEN     



Can I send you on PM or skype my data to connect via SSH to check directly? Will it be faster?
Thank you.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Fresh installed kloxomr7 on centos7 problems
« Reply #33 on: 2017-08-30, 12:53:22 »
Inform here 'ifconfig; ip addr list'.

If possible better use CentOS 6 instead CentOS 7.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline idove

  • Valuable Member
  • *
  • Posts: 142
  • Karma: +0/-0
    • View Profile
Re: Fresh installed kloxomr7 on centos7 problems
« Reply #34 on: 2017-08-30, 12:58:53 »
Code: [Select]
[root@server log]# ifconfig; ip addr list
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 77.81.xxx.xxx  netmask 255.255.248.0  broadcast 77.81.xxx.255
        inet6 fe80::f816:3eff:fef6:81f  prefixlen 64  scopeid 0x20<link>
        ether fa:16:3e:f6:08:1f  txqueuelen 1000  (Ethernet)
        RX packets 1693290  bytes 107026703 (102.0 MiB)
        RX errors 0  dropped 14  overruns 0  frame 0
        TX packets 29140  bytes 6420663 (6.1 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 3067  bytes 171948 (167.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3067  bytes 171948 (167.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether fa:16:3e:f6:08:1f brd ff:ff:ff:ff:ff:ff
    inet 77.81.xxx.xxx/21 brd 77.81.247.255 scope global dynamic eth0
       valid_lft 82970sec preferred_lft 82970sec
    inet6 fe80::f816:3eff:fef6:81f/64 scope link
       valid_lft forever preferred_lft forever

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Fresh installed kloxomr7 on centos7 problems
« Reply #35 on: 2017-08-30, 13:11:54 »
Inform here 'cat /opt/configs/apache/conf/globals/portnip.conf'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline idove

  • Valuable Member
  • *
  • Posts: 142
  • Karma: +0/-0
    • View Profile
Re: Fresh installed kloxomr7 on centos7 problems
« Reply #36 on: 2017-08-30, 13:14:26 »
Code: [Select]

[root@server ~]# cat /opt/configs/apache/conf/globals/portnip.conf
Define port 80
Define portssl 443
Define ip *
[root@server ~]#



Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Fresh installed kloxomr7 on centos7 problems
« Reply #37 on: 2017-08-30, 13:21:15 »
Try change '*' in 'Define ip *' to your real IP in '/opt/configs/apache/conf/globals/portnip.conf' and then run 'sh /script/restart-web'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline idove

  • Valuable Member
  • *
  • Posts: 142
  • Karma: +0/-0
    • View Profile
Re: Fresh installed kloxomr7 on centos7 problems
« Reply #38 on: 2017-08-30, 14:30:44 »
OK,
now it does listen on tcp4:

Code: [Select]

netstat -an | grep LISTEN
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN     
tcp        0      0 77.81.xxx.xxx:80        0.0.0.0:*               LISTEN     
tcp        0      0 77.81.xxx.xxx:53        0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN     
tcp        0      0 77.81.xxx.xxx:443       0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:7776          0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:7777            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:7778            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:7779            0.0.0.0:*               LISTEN     
tcp6       0      0 :::3306                 :::*                    LISTEN     
tcp6       0      0 :::587                  :::*                    LISTEN     
tcp6       0      0 :::110                  :::*                    LISTEN     
tcp6       0      0 :::143                  :::*                    LISTEN     
tcp6       0      0 :::111                  :::*                    LISTEN     
tcp6       0      0 :::465                  :::*                    LISTEN     
tcp6       0      0 :::53                   :::*                    LISTEN     
tcp6       0      0 :::22                   :::*                    LISTEN     
tcp6       0      0 :::25                   :::*                    LISTEN     
tcp6       0      0 :::993                  :::*                    LISTEN     
tcp6       0      0 :::995                  :::*                    LISTEN     


But it still doesn't work?! Anyway, it works via server, direct connection via server, using lynx?!


Anyway after adding IP address to /opt/configs/apache/conf/globals/portnip.conf now it stops logging this errors in /var/log/maillog:

Code: [Select]

Aug 30 14:44:24 server pop3-ssl: tcpserver: fatal: unable to bind: address already used
Aug 30 14:44:25 server pop3-ssl: tcpserver: fatal: unable to bind: address already used
Aug 30 14:44:26 server pop3-ssl: tcpserver: fatal: unable to bind: address already used
Aug 30 14:44:27 server pop3-ssl: tcpserver: fatal: unable to bind: address already used
Aug 30 14:44:28 server pop3-ssl: tcpserver: fatal: unable to bind: address already used
Aug 30 14:44:29 server pop3-ssl: tcpserver: fatal: unable to bind: address already used
Aug 30 14:44:30 server pop3-ssl: tcpserver: fatal: unable to bind: address already used





Anyway,
from my home:
Code: [Select]
idove@idove-pc:~$ nc -v -w5 myserver.com 80
nc: connect to myserver.com port 80 (tcp) failed: No route to host
idove@idove-pc:~$ nc -v -w5 myserver.com 443
nc: connect to myserver.com port 443 (tcp) failed: No route to host
idove@idove-pc:~$ nc -v -w5 myserver.com 22
Connection to myserver.com 22 port [tcp/ssh] succeeded!
SSH-2.0-OpenSSH_6.6.1

From server itself:

Code: [Select]


[root@server ~]# nc -v -w5 myserver.com 80
Ncat: Version 6.40 ( http://nmap.org/ncat )
Ncat: Connected to 77.81.xxx.xxx:80.
^C
[root@server ~]# nc -v -w5 myserver.com 443
Ncat: Version 6.40 ( http://nmap.org/ncat )
Ncat: Connected to 77.81.xxx.xxx:443.
^C
[root@server ~]# nc -v -w5 myserver.com 22
Ncat: Version 6.40 ( http://nmap.org/ncat )
Ncat: Connected to 77.81.xxx.xxx:22.
SSH-2.0-OpenSSH_6.6.1
^C
[root@server ~]#


Tommorow, I will be smarter, I'm not letting go ;).
« Last Edit: 2017-08-30, 15:27:39 by idove »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Fresh installed kloxomr7 on centos7 problems
« Reply #39 on: 2017-08-30, 15:55:14 »
Run:
Code: [Select]
yum clean all
yum update -y
sh /script/fix-configs-files
cp -f /opt/configs/apache/conf/globals/portnip.conf /opt/configs/apache/conf/globals/custom.portnip.conf
sh /script/fixweb
sh /script/restart-web

So, your portnip.conf is 'custom.portnip.conf' (no changed/overwrited if running fixweb)
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline idove

  • Valuable Member
  • *
  • Posts: 142
  • Karma: +0/-0
    • View Profile
Re: Fresh installed kloxomr7 on centos7 problems
« Reply #40 on: 2017-08-30, 20:25:03 »
After running all of this commands,  the same problem persist :(.
All services are working, only web service don't work.

Acctualy it does work but only from server itself (via lynx), out of server web service it isn't working ;(.

What can be problem, is it combined centos7 + kloxoMR +  Openstack cloud vps problem or?
Maybe my problem in installation? :)

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Fresh installed kloxomr7 on centos7 problems
« Reply #41 on: 2017-08-30, 20:28:57 »
Don't know about Openstack. Inform your domain and or IP (you can send to PM).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline idove

  • Valuable Member
  • *
  • Posts: 142
  • Karma: +0/-0
    • View Profile
Re: Fresh installed kloxomr7 on centos7 problems
« Reply #42 on: 2017-08-31, 11:51:37 »
MratWork thanks for your kind and patience help. You did it.

Last problem it seems was firewalld, which blocks 80 and 443 ports ;(.
Anyway:
Code: [Select]
systemctl status firewalld (check status of frirewalld)
systemctl stop firewalld (stops firewalld)
systemctl disable firewalld (disable, prevent to start firewalld again after reboot)

Also I changed back portninp.conf back to (in my case custom.portnip.conf), and it is fine, listening on tcp6.
Code: [Select]
Define port 80
Define portssl 443
Define ip *
# Define ip 0.0.0.0 (was before)

All we/I need to do was:
Code: [Select]
chkconfig httpd on
systemctl daemon-reload
sh /script/restart-web

and disable firewalld.

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.088 seconds with 18 queries.

web stats analysis