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-03-29, 00:56:09

Author Topic: Optimize apache  (Read 4787 times)

0 Members and 1 Guest are viewing this topic.

Offline onemanarmy

  • Valuable Member
  • *
  • Posts: 128
  • Karma: +0/-0
    • View Profile
Optimize apache
« 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
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Optimize apache
« Reply #1 on: 2013-02-13, 19:42:49 »
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:
Code: [Select]
   $maxchildren = '2';
    $maxrequests = '500';
to (for example)
Code: [Select]
   $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.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Optimize apache
« Reply #2 on: 2013-02-14, 03:30:00 »
Reload php-fpm too: /etc/init.d/php-fpm reload
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Optimize apache
« Reply #3 on: 2013-02-14, 09:07:55 »
Quote from: "Spacedust"
Reload php-fpm too: /etc/init.d/php-fpm reload
Fcgid not need php-fpm. Only php-fpm_worker/_event need it.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


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

Page created in 0.047 seconds with 21 queries.

web stats analysis