MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: onemanarmy on 2013-02-13, 19:34:16
-
Hello,
I am using 6.5.0 candidate and i want to optimize apache because of high traffic.
My settings - Nginxproxy - djbdns - php53u - fcgid_event(secondary php enabled)
thank you
-
For fcgid:
1. copy /home/apache/tpl/php5.fcgi.tpl to /home/apache/tpl/custom.php5.fcgi.tpl
2. Open custom.php5.fcgi.tpl and change:
$maxchildren = '2';
$maxrequests = '500';
to (for example)
$maxchildren = '10';
$maxrequests = '1000';
3. run 'sh /script/fixphp'
Running 'sh /script/apache-optimize' only importance for mod_php/_ruid2/_itk.
For Php-fpm/_worker/_event, mod_php/_ruid2/_itk and suphp/_worker/_event have different ways.
-
Reload php-fpm too: /etc/init.d/php-fpm reload
-
Reload php-fpm too: /etc/init.d/php-fpm reload
Fcgid not need php-fpm. Only php-fpm_worker/_event need it.