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, 01:36:53

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - hoangsang

Pages: 1 ... 4 5 [6] 7
76
System:
Code: [Select]
A. Kloxo-MR: 6.5.0.f-2014020201

B. OS: CentOS release 5.8 (Final) x86_64

C. Apps:
   1. MySQL: mysql55-5.5.36-1.ius.el5
   2. PHP: php53u-5.3.28-1.ius.el5
   3. Httpd: --uninstalled--
   4. Lighttpd: --uninstalled--
   5. Nginx: nginx-1.5.10-1.el5
   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.5-1.el5

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

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:          7975       5003       2972          0        199       3593
   -/+ buffers/cache:       1209       6766
   Swap:         9983          0       9983
I'm need run site build by drupal. How to install Drupal with Kloxo-MR

77
Thanks!
I'm fixed; but after add domain web server auto stop nginx and start httpd :(.
Help me this problems :(

Sysinfo
Code: [Select]
A. Kloxo-MR: 6.5.0.f-2014020201

B. OS: CentOS release 5.8 (Final) x86_64

C. Apps:
   1. MySQL: mysql55-5.5.36-1.ius.el5
   2. PHP: php53u-5.3.28-1.ius.el5
   3. Httpd: httpd-2.2.26-2.el5
   4. Lighttpd: --uninstalled--
   5. Nginx: nginx-1.5.10-1.el5
   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.5-1.el5

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

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:          7975       5003       2972          0        199       3593
   -/+ buffers/cache:       1209       6766
   Swap:         9983          0       9983

78
After add domain, Kxolo-Mr show alert: could_not_add_mail [sh: /home/lxadmin/mail/bin/vadddomain and nginx auto stop, httpd auto start :(

Current Version:   6.5.0.f-2014020201
Web server running: nginx
Please help :(

79
Kloxo-MR Releases / Re: Need Kloxo-MR Tester
« on: 2013-02-21, 13:02:05 »
Access File Manager show error:

Could not Connect to the server localhost. This is most likely due to underlying network problem. Make sure that the server is accessible from this particular node by running telnet slave-id 7779

80
Kloxo-MR Technical Helps / Re: Update new version is error
« on: 2013-02-02, 13:10:52 »
Thanks!

It's worked.

81
Kloxo-MR Technical Helps / Re: Update new version is error
« on: 2013-02-02, 11:23:39 »
Quote from: "UCTServices"
What OS Version?
CentOS 5.8 x86_x64 :(

82
Kloxo-MR Technical Helps / Re: Update new version is error
« on: 2013-02-02, 11:08:17 »
After update successful is:
Iptables is stop, restart failed :(
php-fpm is stop, run service php-fpm start show php-fpm: unrecognized service

SOS help me!

83
Kloxo-MR Technical Helps / Update new version is error
« on: 2013-02-02, 09:55:15 »
I'm updating new version is show error:

Code: [Select]
Error: Missing Dependency: libmysqlclient.so.15(libmysqlclient_15) is needed by package lxphp-5.2.1-400.i386 (lxcenter-updates)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
YUM Gave Error... Trying Again...


84
I'm changed webserver to Apache, but error:
500 Internal Server Error

85
Quote from: "Anik"
Calculate by memory usage too. like if one php-fpm child process is taking 150 MB ram then 70 process will take 10,500 MB which will end up giving you 500 error and probably locking down the server. so choose wisely by using your brain. Good Luck.

I'm changed to:
Code: [Select]
pm.max_children = 15
pm.start_servers = 14
pm.min_spare_servers = 13
pm.max_spare_servers = 15
pm.max_requests = 1000

And view log:
[23-Jan-2013 01:45:30] WARNING: [pool bachngocsach] server reached pm.max_children setting (15), consider raising it

86
Quote from: "Anik"
Calculate by memory usage too. like if one php-fpm child process is taking 150 MB ram then 70 process will take 10,500 MB which will end up giving you 500 error and probably locking down the server. so choose wisely by using your brain. Good Luck.

Thanks. This my log
Code: [Select]
[22-Jan-2013 17:07:21] WARNING: [pool bachngocsach] server reached pm.max_children setting (5), consider raising it
[22-Jan-2013 17:08:22] WARNING: [pool bachngocsach] server reached pm.max_children setting (5), consider raising it
[22-Jan-2013 19:31:35] WARNING: [pool bachngocsach] server reached pm.max_children setting (5), consider raising it
[22-Jan-2013 19:46:54] WARNING: [pool bachngocsach] server reached pm.max_children setting (5), consider raising it
[22-Jan-2013 19:51:59] ERROR: unable to read what child say: Bad file descriptor (9)
[22-Jan-2013 20:46:03] WARNING: [pool bachngocsach] server reached pm.max_children setting (5), consider raising it
[22-Jan-2013 21:24:33] WARNING: [pool bachngocsach] server reached pm.max_children setting (5), consider raising it
[22-Jan-2013 21:47:16] WARNING: [pool bachngocsach] server reached pm.max_children setting (5), consider raising it
[22-Jan-2013 21:59:59] WARNING: [pool bachngocsach] server reached pm.max_children setting (5), consider raising it
[22-Jan-2013 22:07:46] WARNING: [pool bachngocsach] server reached pm.max_children setting (5), consider raising it
[22-Jan-2013 22:07:53] WARNING: [pool bachngocsach] server reached pm.max_children setting (5), consider raising it
[22-Jan-2013 22:29:44] ERROR: unable to read what child say: Bad file descriptor (9)
[22-Jan-2013 22:57:50] WARNING: [pool bachngocsach] server reached pm.max_children setting (5), consider raising it
[22-Jan-2013 23:25:17] WARNING: [pool bachngocsach] server reached pm.max_children setting (5), consider raising it
[23-Jan-2013 00:56:58] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:56:58] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:08] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:08] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:08] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:08] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:08] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:08] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:08] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:08] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:08] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:08] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:08] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:08] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:41] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:41] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 01:04:19] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 01:04:19] ERROR: unable to read what child say: Bad file descriptor (9)


ERROR: unable to read what child say: Bad file descriptor (9)
hichic :(

87
Quote from: "Anik"
Quote from: "hoangsang"
Quote from: "Anik"
depending on your server configuration, you should consider increasing the values. specially the php-fpm one.

You can specific value examples?

that will depend on circumstances, but you can first increase the maxchildren to something 12/15, 5 is really not good for you.

I'm changed to:
Code: [Select]
pm.max_children = 70
pm.start_servers = 50
pm.min_spare_servers = 40
pm.max_spare_servers = 55
pm.max_requests = 1000

But access by Chrome is very slow :(

88
Quote from: "Anik"
depending on your server configuration, you should consider increasing the values. specially the php-fpm one.

You can specific value examples?

89
Quote from: "Anik"
what is the config you are using?
nginx.conf
Code: [Select]
user nginx;

worker_processes 8;
worker_rlimit_nofile 100000;

pid /var/run/nginx.pid;

events {
    worker_connections 2048;

    use epoll;
}


http {
    add_header Cache-Control public;

    server_names_hash_max_size 1024;
    server_names_hash_bucket_size 128;

    client_header_buffer_size 2k;

client_max_body_size 32M;

    include '/etc/nginx/conf.d/*.conf';
}


/etc/php-fpm.d/default.conf
Code: [Select]
[default]
listen = 127.0.0.1:50048
listen.backlog = -1
listen.allowed_clients = 127.0.0.1
user = apache
group = apache
pm = dynamic
pm.max_children = 5
pm.start_servers = 1
pm.min_spare_servers = 1
pm.max_spare_servers = 2
pm.max_requests = 500
;pm.status_path = /status
;ping.path = /ping
;ping.response = pong
request_terminate_timeout = 0
request_slowlog_timeout = 0
slowlog = /var/log/php-fpm/slow.log
rlimit_files = 1024
rlimit_core = 0
;chroot =
;chdir = /var/www
catch_workers_output = yes
security.limit_extensions = .php .php3 .php4 .php5

env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp

;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f webmaster@domain.com
;php_flag[display_errors] = off
php_admin_value[error_log] = /var/log/php-fpm/error.log
php_admin_value[session.save_path] = /var/lib/php/session
php_admin_flag[log_errors] = on
php_admin_value[memory_limit] = 64M


/home/nginx/conf/globals/php-fpm.conf
Code: [Select]
   ### MR -- just enough remove # below for enable nginx cache
    #fastcgi_cache fcache;
    fastcgi_cache_valid 200 1h;
    fastcgi_cache_valid 301 1h;
    fastcgi_cache_valid 302 1h;
    fastcgi_cache_valid any 1m;

    ### MR -- must be using nginx with including ngx_purge_cache
    ### must be using special nginx (nginx with ngx_purge_cache include
    location ~ /purge(/.*) {
        ### MR -- just enough remove # below for enable purge_cache
        #proxy_cache_purge pcache "$scheme://$host$1$request_method";
        allow 127.0.0.1;
        deny all;
    }

    ### MR -- for userdir (access with http://ip/~user
    location ~ ^/~([^/]+)/(.+.php)$ {
        if (!-f /home/$1/public_html/$2) {
            rewrite ^ 404;
        }
   
        alias '/home/$1/public_html/$2';

        fastcgi_pass 127.0.0.1:$fpmport;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
 
    }

    ### MR -- for userdir (access with http://ip/~user
    location ~ ^/~(.+?)(/.*)?$ {
        alias '/home/$1/public_html$2';

        autoindex on;
    }

    location ~ .php$ {
        include fastcgi_params;

        fastcgi_pass   127.0.0.1:$fpmport;
        fastcgi_index  index.php;

        fastcgi_param  REDIRECT_STATUS 200;
        fastcgi_split_path_info ^(.+.php)(/.+)$;

        fastcgi_param SCRIPT_FILENAME $rootdir$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_script_name;
        fastcgi_param PHP_ADMIN_VALUE 'sendmail_path=/usr/sbin/sendmail -t -i';
        fastcgi_param PHP_ADMIN_VALUE 'sendmail_from=$domain';
    }

    location / {
        limit_conn addr 25;

        ## MR - increasing upload size to 15M
        client_max_body_size 15M;
        client_body_buffer_size 128k;

        try_files $uri $uri/ /index.php;
    }


90
Quote from: "Anik"
if you are using php-fpm it needs to tune the config. like the max children, requests etc.
how is the sites traffic and servers hardware?
monthly
                     rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
       Dec '12     40.58 GiB |  375.32 GiB |  415.90 GiB |    1.30 Mbit/s
       Jan '13     20.22 GiB |  245.32 GiB |  265.54 GiB |    1.20 Mbit/s
     ------------------------+-------------+-------------+---------------
     estimated     29.18 GiB |  354.03 GiB |  383.21 GiB |

   daily
                     rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
     yesterday    924.33 MiB |   10.97 GiB |   11.87 GiB |    1.15 Mbit/s
         today    342.13 MiB |    3.74 GiB |    4.07 GiB |  822.78 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated       711 MiB |    7.78 GiB |    8.47 GiB |

And server hardware:
Chipset: 2 x Intel Quad Core E5504 Xeon CPU, 2.0Ghz
RAM: 4 x 2Gb DDR3 ECC
HDD: SAS 3.5", 15k rpm, RAID 10

Pages: 1 ... 4 5 [6] 7

MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix

Page created in 0.03 seconds with 20 queries.

web stats analysis