MRatWork Forum by Mustafa Ramadhan - [ASK] mengubah parameter max_input_vars pada php-fpm_event

Sponsor:
Server and Web Integrator
Link:
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:

MRatWork Forum | Please login or register. | 2017-11-07, 22:45:10

- MRatWork Forum by Mustafa Ramadhan »
- Language Specific Discussions »
- Indonesia Users »
- [ASK] mengubah parameter max_input_vars pada php-fpm_event

« previous next »

- Print

Pages: [1] Go Down

### Author Topic: [ASK] mengubah parameter max_input_vars pada php-fpm_event (Read 1189 times)

0 Members and 1 Guest are viewing this topic.

#### anasmcguire

- Junior Member
- Posts: 37
- Karma: +0/-0
- Gender:

##### [ASK] mengubah parameter max_input_vars pada php-fpm_event

« on: 2014-09-27, 01:04:52 »
Om Musthafa, bagaimana cara mengubah parameter max_input_vars?
Saya mengikuti petunjuk pada kloxo-mr-technical-helpsmax_input_vars.html kemudian saya buat file baru dengan nama '/home/php-fpm/tpl/custom.php53-fpm-pool.conf.tpl' (modifikasi dari php53-fpm-pool.conf.tpl) dengan menambahkan 'php_admin_value[max_input_vars] = 3000'. Kemudian saya jalankan 'sh /script/fixphp' dan 'sh /script/restart-web'. Namun, nilai max_input_vars pada phpinfo() masih tetap 1000.
Code: [Select]

    [root@vps ~]# sh /script/sysinfo

    A. Kloxo-MR: 6.5.0.f-2014091101

    B. OS: CentOS release 6.5 (Final) i686

    C. Apps:
       1. MySQL: mysql55-5.5.37-1.ius.el6.i686
       2. PHP: php53u-5.3.28-3.ius.el6.i686
       3. Httpd: httpd-2.2.27-1.mr.e6.i386
       4. Lighttpd: --uninstalled--
       5. Nginx: nginx-1.7.4-1.el6.ngx.i386
       6. Qmail: qmail-toaster-1.03-1.3.38.mr.el6.i386
          - with: courier-imap-toaster-4.1.2-1.3.16.mr.el6.i386
       7. Dns: djbdns-1.05-17.3.mr.el6.i686

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

    E. Memory:
                    total       used       free     shared    buffers     cached
       Mem:          1003        650        353          0          2        209
       -/+ buffers/cache:        438        565
       Swap:         1023          0       1023

Logged
Kloxo-MR emang markotop!!!

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: [ASK] mengubah parameter max_input_vars pada php-fpm_event

« Reply #1 on: 2014-09-27, 05:16:43 »
Perlihatkan isi custom file anda.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### anasmcguire

- Junior Member
- Posts: 37
- Karma: +0/-0
- Gender:

##### Re: [ASK] mengubah parameter max_input_vars pada php-fpm_event

« Reply #2 on: 2014-09-27, 05:51:59 »
Code: [Select]

    <?php
        $userinfo = posix_getpwnam($user);

        if ($user === 'apache') {
            // MR -- for future purpose, apache user have uid 50000
            $fpmport = 50000;
            $openbasedir = "/home/kloxo/httpd/:/tmp/:/usr/share/pear/:/var/lib/php/session/";
        } else {
            $userinfo = posix_getpwnam($user);
            $fpmport = (50000 + $userinfo['uid']);
            $openbasedir = "/home/$user/:/tmp/:/usr/share/pear/:/var/lib/php/session/:".
    		"/home/kloxo/httpd/script/:/home/kloxo/httpd/disable/";
        }

        if ($user == 'apache') {
            $pool = 'default';
        } else {
            $pool = $user;
        }

        $startservers = '4';
        $minspareservers = '2';
        $maxspareservers = '4';
        $maxchildren = '6';
    ?>
    [<?php echo $pool; ?>]
    ;listen = 127.0.0.1:<?php echo $fpmport; ?>

    listen = /home/php-fpm/sock/<?php echo $user; ?>.sock
    listen.backlog = 65536
    listen.allowed_clients = 127.0.0.1
    listen.owner = <?php echo $user; ?>

    listen.group = <?php echo $user; ?>

    listen.mode = 0666
    user = <?php echo $user; ?>

    group = <?php echo $user; ?>

    pm = dynamic
    pm.max_children = <?php echo $maxchildren; ?>

    pm.start_servers = <?php echo $startservers; ?>

    pm.min_spare_servers = <?php echo $minspareservers; ?>

    pm.max_spare_servers = <?php echo $maxspareservers; ?>

    pm.max_requests = 1000
    ;pm.status_path = /status
    ;ping.path = /ping
    ;ping.response = pong
    request_terminate_timeout = 120s
    request_slowlog_timeout = 30s
    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
    php_admin_value[open_basedir] = <?php echo $openbasedir; ?>
    php_admin_value[max_input_vars] = 5000

Logged
Kloxo-MR emang markotop!!!

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: [ASK] mengubah parameter max_input_vars pada php-fpm_event

« Reply #3 on: 2014-09-27, 06:13:25 »
Tambahkan spasi:
dari:
Code: [Select]

    php_admin_value[open_basedir] = <?php echo $openbasedir; ?>
    php_admin_value[max_input_vars] = 5000

ke:
Code: [Select]

    php_admin_value[open_basedir] = <?php echo $openbasedir; ?>

    php_admin_value[max_input_vars] = 5000

Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### anasmcguire

- Junior Member
- Posts: 37
- Karma: +0/-0
- Gender:

##### Re: [ASK] mengubah parameter max_input_vars pada php-fpm_event

« Reply #4 on: 2014-09-27, 06:37:41 »
tetap sama om, masih 1000
Apakah bisa saya mengubahnya manual di /home/httpd/domain.com/php.ini?
Logged
Kloxo-MR emang markotop!!!

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: [ASK] mengubah parameter max_input_vars pada php-fpm_event

« Reply #5 on: 2014-09-27, 07:10:01 »
Setelah ubah, apakah jalankan fixphp dan restart-web?.
Bisa, ubah di custom.php.ini.tpl.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### anasmcguire

- Junior Member
- Posts: 37
- Karma: +0/-0
- Gender:

##### Re: [ASK] mengubah parameter max_input_vars pada php-fpm_event

« Reply #6 on: 2014-09-27, 08:23:47 »
sudah om. Tapi tetap sama.
Akhirnya sama gunakan yang custom.php.ini.tpl dan berhasil. Akan tetapi, Local Value dan Master Value menjadi 5000. Bagi saya sih gpp, yang penting udah meningkat. Makasih om
Logged
Kloxo-MR emang markotop!!!

- Print

Pages: [1] Go Up
« previous next »

- MRatWork Forum by Mustafa Ramadhan »
- Language Specific Discussions »
- Indonesia Users »
- [ASK] mengubah parameter max_input_vars pada php-fpm_event

Top 4 Global Search Engines: Google Bing Baidu Yahoo

- Design By SMFSimple.com
- SMF 2.0.14 | SMF © 2017, Simple Machines

Page created in 0.053 seconds with 19 queries.

Mirror created by MasterkinG32.CoM