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:57:12

Author Topic: consider raising the MaxClients setting  (Read 17368 times)

0 Members and 1 Guest are viewing this topic.

Offline alexo

  • Junior Member
  • *
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: consider raising the MaxClients setting
« Reply #15 on: 2014-01-31, 15:50:16 »
Code: [Select]
service httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: (98)Address already in use: make_sock: could not bind to address                                          [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: consider raising the MaxClients setting
« Reply #16 on: 2014-01-31, 15:51:52 »
Try 'sh /script/fix-chownchmod' and then 'sh /script/restart-all' to see if any error/warning/alert found.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: consider raising the MaxClients setting
« Reply #17 on: 2014-01-31, 15:53:06 »
After running 'sh /script/fixweb; sh /script/restart-web' still found error, try reboot.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline alexo

  • Junior Member
  • *
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: consider raising the MaxClients setting
« Reply #18 on: 2014-01-31, 16:01:52 »
Code: [Select]
sh /script/restart-web
Stopping httpd:                                            [FAILED]
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]
Stopping php-fpm:                                          [  OK  ]
Starting php-fpm:                                          [  OK  ]

after reboot

Code: [Select]
sh /script/restart-web
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
Stopping php-fpm:                                          [  OK  ]
Starting php-fpm:                                          [  OK  ]

BTW, did i need to add this line ?
Code: [Select]
AddHandler application/x-httpd-php52 .php
Just now some of my sites are online and properly working (i hope) , but 1 site don't work (wordpress)

This is from this wordpress site .htaccess file

Code: [Select]
###Start Kloxo PHP config Area
### Please Don't edit these comments or the content in between. kloxo uses this to recognize the lines it writes to the the file. If the above line is corrupted, it may fail to recognize them, leading to multiple lines.
### begin content - please not remove this line

### MR -- attention
### 1. Move '#<Ifmodule !mod_php5.c>' until '#</Ifmodule>' on
###    above '###Start Kloxo PHP config Area'
### 2. Remove # in front of '#<Ifmodule !mod_php5.c>' and '#</Ifmodule>'
###    on point (1)
### 3. Remove # in front of 'AddHandler x-httpd-php52' to activate secondary-php
###    on point (1)
### 4. Or Remove # in front of 'AddHandler x-httpd-php' to activate primary-php
###    on point (1) if select suphp_worker/_event for primary-php

#<Ifmodule !mod_php5.c>
    #AddHandler x-httpd-php52 .php
    #AddHandler x-httpd-php .php
#</Ifmodule>

<Ifmodule mod_php5.c>
    php_value upload_max_filesize 16M
    php_value max_execution_time 180
    php_value max_input_time 180
    php_value memory_limit 64M
    php_value post_max_size 32M
    php_flag register_globals off
    php_flag display_errors off
    php_flag file_uploads on
    php_flag log_errors off
    php_flag output_buffering off
    php_flag register_argc_argv on
    php_flag magic_quotes_gpc off
    php_flag magic_quotes_runtime off
    php_flag magic_quotes_sybase off
    php_flag mysql.allow_persistent off
    php_flag register_long_arrays on
    php_flag allow_url_fopen on
    php_flag cgi.force_redirect on
    php_flag enable_dl on
</Ifmodule>

### end content - please not remove this line

###End Kloxo PHP config Area

I need to keep it, or this can be from previous kloxo version ?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: consider raising the MaxClients setting
« Reply #19 on: 2014-01-31, 16:06:21 »
Add 'AddHandler application/x-httpd-php52 .php' in .htacces file only need if you want running application in /home/<user>/<domain>/ under php 5.2 version. Without add this line that mean application will be running under php 5.3 version.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline alexo

  • Junior Member
  • *
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: consider raising the MaxClients setting
« Reply #20 on: 2014-02-01, 16:35:52 »
Thank you MRatWork

Now everythink working properly on my 2 VPS accounts.

thanks once again ! :-)

Offline kuldeep verma

  • Junior Member
  • *
  • Posts: 29
  • Karma: +0/-0
    • View Profile
    • http://www.zodichost.com
Re: consider raising the MaxClients setting
« Reply #21 on: 2014-02-21, 09:15:29 »
Ok. thx

What i did is ->

Code: [Select]
cp ~lxcenter.conf.tpl custom.~lxcenter.conf.tpl
nano custom.~lxcenter.conf.tpl

and make such modifications

Code: [Select]
Timeout 150
KeepAlive <?php echo $keepalive?>

MaxKeepAliveRequests 100
KeepAliveTimeout 15

<IfModule prefork.c>
    StartServers 2
    MinSpareServers <?php echo $minspareservers?>
    MaxSpareServers <?php echo $maxspareservers?>
    ServerLimit 256
    MaxClients  512

    <IfVersion >= 2.4>
        MaxRequestWorkers <?php echo $maxspareservers?>
        MaxConnectionsPerChild <?php echo $maxrequestsperchild?>

    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 512
        MaxRequestsPerChild <?php echo $maxrequestsperchild?>

    </IfVersion>
    MaxMemFree 2
    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

<IfModule itk.c>
    StartServers 2
    MinSpareServers <?php echo $minspareservers?>
    MaxSpareServers <?php echo $maxspareservers?>
    ServerLimit      256
    MaxClients       512
    <IfVersion >= 2.4>
        MaxRequestWorkers <?php echo $maxspareservers?>
        MaxConnectionsPerChild <?php echo $maxrequestsperchild?>

    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 256
        MaxRequestsPerChild <?php echo $maxrequestsperchild?>

    </IfVersion>
    MaxMemFree 2
    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

<IfModule worker.c>
    StartServers 2
    MinSpareThreads <?php echo $minsparethreads?>
    MaxSpareThreads <?php echo $maxsparethreads?>
    ServerLimit      250
    MaxClients       512
    ThreadsPerChild 25
    <IfVersion >= 2.4>
        MaxRequestWorkers 150
        MaxConnectionsPerChild 0
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 250
        MaxRequestsPerChild 0
    </IfVersion>

    ThreadStackSize 8196
    MaxMemFree 2
    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

<IfModule event.c>
    StartServers 2
    MinSpareThreads <?php echo $minsparethreads?>
    MaxSpareThreads <?php echo $maxsparethreads?>
    ServerLimit      250
    MaxClients       250
    ThreadsPerChild 25
    MaxRequestsPerChild 0
    ThreadStackSize 8196
    <IfVersion >= 2.4>
        MaxRequestWorkers 150
        MaxConnectionsPerChild 0
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 250
        MaxRequestsPerChild 0
    </IfVersion>

    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

Include /home/apache/conf/defaults/*.conf
Include /home/apache/conf/domains/*.conf
Include /home/apache/conf/webmails/*.conf


restart it

Code: [Select]
top - 17:22:06 up 1 day,  2:57,  1 user,  load average: 0.03, 0.05, 0.01
but it's impossible to open any page on my websites.

Code: [Select]
[root@server tpl]# sh /script/sysinfo

A. Kloxo-MR: 6.5.0.f-2014013101

B. OS: CentOS release 5.10 (Final) i686

C. Apps:
   1. MySQL: mysql55-5.5.35-1.ius.el5
   2. PHP: php52-5.2.17-6.ius.centos5
   3. Httpd: httpd-2.2.26-1.el5
   4. Lighttpd: --uninstalled--
   5. Nginx: --uninstalled--
   6. Qmail: qmail-toaster-1.03-1.3.35.mr.el5
      - with: courier-imap-toaster-4.1.2-1.3.14.mr.el5
   7. Dns: bind-9.9.4-1.P2.el5

D. Php-type (for Httpd/proxy): mod_php_ruid2

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:          3072       2125        946          0          0       1622
   -/+ buffers/cache:        502       2569
   Swap:            0          0          0

BTW, even 1 week ago this account work properly under Kloxo old panel :-(




Server limit  value should be greater than maxclient.
Cheapest VPS provider With Managed Services
Zodichost.com - A Division of Extreme iTech Pvt. Ltd.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: consider raising the MaxClients setting
« Reply #22 on: 2014-02-21, 09:17:59 »
Because secondary dns using suphp, ownership and permissions are crucial factors. Run 'sh /script/fix-chownchmod' to fix this issue.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.067 seconds with 18 queries.

web stats analysis