MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: homer72 on 2017-06-06, 14:07:03

Title: Need Help
Post by: homer72 on 2017-06-06, 14:07:03
Hello sir

i have few issues with panel
 first off login to ip:7777 connection was reset
second i cant get     Apache Web Server  to start


Code: [Select]
A. Control Panel:
   - Kloxo-MR: 7.0.0.c-2017060101
   - Web: hiawatha-10.6.0-f.1.mr.el6.x86_64
   - PHP: php56s-5.6.30-2.ius.centos6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.9 (Final) x86_64
   - Hostname: VPS.Twistedvps.tk
C. Services:
   1. MySQL: MariaDB-server-10.0.31-1.el6.x86_64
   2. PHP:
      - Installed:
        - Branch: php56w-cli-5.6.30-1.w6.x86_64
        - Multiple:
          * php52m-5.2.17-102.mr.el6
          * php53m-5.3.29-1.ius.centos6
          * php54m-5.4.45-1.ius.centos6
          * php55m-5.5.38-1.ius.centos6
          * php56m-5.6.30-2.ius.centos6
          * php70m-7.0.19-1.ius.centos6
      - Used: --PHP Branch--
      - Multiple: enable
   3. Web Used: nginx
     - Hiawatha: hiawatha-10.6.0-f.1.mr.el6.x86_64
     - Lighttpd: lighttpd-1.4.45-1.el6.x86_64
     - Nginx: nginx-1.13.1-1.el6.ngx.x86_64
     - Apache: httpd24u-2.4.25-3.ius.centos6.x86_64
       - PHP Type: php-fpm_worker
       - Secondary PHP: off
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: djbdns
     - Bind: bind-9.9.9-1.mr.el6.x86_64
     - DJBDns: djbdns-1.05-17.4.mr.el6.x86_64
     - NSD: nsd-4.1.16-1.el6.x86_64
     - PowerDNS: pdns-4.0.3-1.el6.MIND.x86_64
     - Yadifa: yadifa-2.2.3-1.mr.el6.x86_64
   6. Mail: qmail-toaster-1.03-1.3.56.mr.el6.x86_64
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.x86_64
      - smtp: qmail-toaster-1.03-1.3.56.mr.el6.x86_64
      - spam: --uninstalled--
   7. FTP: pure-ftpd
      - pure-ftpd: pure-ftpd-1.0.37-1.mr.el6.x86_64
   8. Stats: awstats
      - awstats: kloxomr-stats-awstats-7.6-1.mr.noarch
D. Memory:
             total       used       free     shared    buffers     cached
Mem:          4096        617       3478          2          0        296
-/+ buffers/cache:        320       3775
Swap:            0          0          0
E. Disk Space:
Filesystem         Size  Used Avail Use% Mounted on
/dev/ploop25547p1  118G  5.1G  107G   5% /

Title: Re: Need Help
Post by: MRatWork on 2017-06-06, 14:23:03
1. Login to port 7777 must use https:// and port 7778 must use http://
2. For website use 'php56m' for 'php used' instead 'php branch' in 'webserver configure'.
Title: Re: Need Help
Post by: homer72 on 2017-06-06, 14:33:15
Apache Web Server faild to start
Title: Re: Need Help
Post by: MRatWork on 2017-06-06, 14:38:58
Inform here 'sh /script/restart-web' message.
Title: Re: Need Help
Post by: homer72 on 2017-06-06, 14:42:28
*** Process for HTTPD service ***
  - Process: restart
Stopping httpd:                                            [FAILED]
Starting httpd: AH00526: Syntax error on line 47 of /etc/httpd/conf.d/~lxcenter.conf:
ThreadsPerChild takes one argument, Number of threads each child creates
                                                           [FAILED]
Title: Re: Need Help
Post by: MRatWork on 2017-06-06, 14:54:04
Inform here 'cat /etc/httpd/conf.d/~lxcenter.conf' first.

And then try select 'medium' or 'high' for 'apache optimize' in 'webserver configure'.
Title: Re: Need Help
Post by: homer72 on 2017-06-06, 14:56:01
Timeout 150
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15

<IfModule prefork.c>
    StartServers 2
    MinSpareServers 2
    MaxSpareServers 4
    ServerLimit 4
    <IfVersion >= 2.4>
        MaxRequestWorkers 4
        MaxConnectionsPerChild 4000
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 4
        MaxRequestsPerChild 4000
    </IfVersion>
    MaxMemFree 2
    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

<IfModule itk.c>
    StartServers 2
    MinSpareServers 2
    MaxSpareServers 4
    ServerLimit 4
    <IfVersion >= 2.4>
        MaxRequestWorkers 4
        MaxConnectionsPerChild 4000
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 4
        MaxRequestsPerChild 4000
    </IfVersion>
    MaxMemFree 2
    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

<IfModule worker.c>
    StartServers 2
    MinSpareThreads 2
    MaxSpareThreads 4
    ThreadsPerChild 25    ServerLimit 4
    <IfVersion >= 2.4>
        MaxRequestWorkers 100
        MaxConnectionsPerChild 0
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 100
        MaxRequestsPerChild 0
    </IfVersion>

    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

<IfModule event.c>
    StartServers 2
    MinSpareThreads 2
    MaxSpareThreads 4
    ThreadsPerChild 25
    ServerLimit 4
    MaxRequestsPerChild 0
    <IfVersion >= 2.4>
        MaxRequestWorkers 100
        MaxConnectionsPerChild 0
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 100
        MaxRequestsPerChild 0
    </IfVersion>

    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

Include /opt/configs/apache/conf/defaults/*.conf
Include /opt/configs/apache/conf/domains/*.conf

### selected: default ###
Title: Re: Need Help
Post by: homer72 on 2017-06-06, 15:03:23
same mo change
Title: Re: Need Help
Post by: homer72 on 2017-06-06, 15:05:09
when i click save for Apache Memory Optimize to hight or medium goes back to default
Title: Re: Need Help
Post by: MRatWork on 2017-06-06, 15:05:48
For '/etc/httpd/conf.d/~lxcenter.conf', change:
Code: [Select]
    ThreadsPerChild 25    ServerLimit 4
to:
Code: [Select]
    ThreadsPerChild 25
    ServerLimit 4
and then 'sh /script/restart-web'.

Yes, it's bug and will be fixed in next update.
Title: Re: Need Help
Post by: homer72 on 2017-06-06, 15:12:20
ok that worked thank you sir one more thing i am getting hit hard for shh i changed shh port and disable password can u tell me what firewall to install
Title: Re: Need Help
Post by: MRatWork on 2017-06-06, 15:16:28
I still think Kloxo-MR doesn't need special firewall because certain port already have 'built-in' firewall.

But, still better change port for panel, ssh and ftp.
Title: Re: Need Help
Post by: homer72 on 2017-06-06, 15:18:05
ok one more issue www.domain not working have look

http://twisteddark.cu.cc/ works
http://www.twisteddark.cu.cc/ not working
Title: Re: Need Help
Post by: homer72 on 2017-06-06, 15:20:22
works for main server www.twistedvps.tk  but not for client
Title: Re: Need Help
Post by: MRatWork on 2017-06-06, 15:26:05
Look like missing 'CNAME record' for 'www' for twisteddark.cu.cc. Check to https://intodns.com/twisteddark.cu.cc
Title: Re: Need Help
Post by: homer72 on 2017-06-06, 15:30:44
how to i fix it
Title: Re: Need Help
Post by: MRatWork on 2017-06-06, 15:38:34
Try select yadifa or nsd for dns in 'switch programs'.

And then check your domains in intodns.com.
Title: Re: Need Help
Post by: homer72 on 2017-06-06, 15:46:15
nope same thing
Title: Re: Need Help
Post by: MRatWork on 2017-06-06, 15:49:02
Inform here your dns template and dns settings.
Title: Re: Need Help
Post by: homer72 on 2017-06-06, 15:52:33
here setting default
Title: Re: Need Help
Post by: MRatWork on 2017-06-06, 16:11:59
Look like ok now. No issue for access www or non-www.
Title: Re: Need Help
Post by: homer72 on 2017-06-06, 16:12:59
could it be my client has to domain under one client?
Title: Re: Need Help
Post by: homer72 on 2017-06-06, 16:15:01
ok will keeo eye on it thank for all your help
Title: Re: Need Help
Post by: murshed on 2017-06-13, 16:10:17
Yesterday I have got this issue. Just replace this from another server.
Replace this, it works for me.

Code: [Select]
Timeout 150
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15

<IfModule prefork.c>
    StartServers 2
    MinSpareServers 63
    MaxSpareServers 127
    ServerLimit 127
    <IfVersion >= 2.4>
        MaxRequestWorkers 127
        MaxConnectionsPerChild 4000
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 127
        MaxRequestsPerChild 4000
    </IfVersion>
    MaxMemFree 2
    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

<IfModule itk.c>
    StartServers 2
    MinSpareServers 63
    MaxSpareServers 127
    ServerLimit 127
    <IfVersion >= 2.4>
        MaxRequestWorkers 127
        MaxConnectionsPerChild 4000
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 127
        MaxRequestsPerChild 4000
    </IfVersion>
    MaxMemFree 2
    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

<IfModule worker.c>
    StartServers 2
    MinSpareThreads 54
    MaxSpareThreads 109
    ThreadsPerChild 25
    ServerLimit 109
    <IfVersion >= 2.4>
        MaxRequestWorkers 2725
        MaxConnectionsPerChild 0
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 2725
        MaxRequestsPerChild 0
    </IfVersion>

    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

<IfModule event.c>
    StartServers 2
    MinSpareThreads 54
    MaxSpareThreads 109
    ThreadsPerChild 25
    ServerLimit 109
    MaxRequestsPerChild 0
    <IfVersion >= 2.4>
        MaxRequestWorkers 2725
        MaxConnectionsPerChild 0
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 2725
        MaxRequestsPerChild 0
    </IfVersion>

    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

Include /opt/configs/apache/conf/defaults/*.conf
Include /opt/configs/apache/conf/domains/*.conf

### selected: high ###