Kalo di documentation cpanel katanya default pm udah ondeman, tapi kalo di cek di file php-fpm.yaml gak ada pm, apa perlu ditambahkan?Kebanyakan jika kebanyakan website aktif. Mungkin 5 untuk setiap user. Pilih pm-nya ondemand saja.
Kalo di documentation cpanel katanya default pm udah ondeman, tapi kalo di cek di file php-fpm.yaml gak ada pm, apa perlu ditambahkan?Kebanyakan jika kebanyakan website aktif. Mungkin 5 untuk setiap user. Pilih pm-nya ondemand saja.
ini malah gak seting apa2. server saya yg lain pake php-cgi juga lancar, tapi yg satu ini malah php-cgi loadnya tinggi banget padahal user masih sedikit sampai klien pada ngeluh.saya masih di php-cgi
ga tau kenapa php-fpm sering banget trobel
mungkin saya nya yang gak bisa settingnya hehe
[php53m-admin]
;listen = 127.0.0.1:57797
listen = /opt/configs/php-fpm/sock/php53m-admin.sock
listen.backlog = 65536
listen.allowed_clients = 127.0.0.1
listen.owner = admin
listen.group = admin
listen.mode = 0666
user = admin
group = admin
pm = ondemand
pm.max_children = 6
pm.start_servers = 2
pm.min_spare_servers = 2
pm.max_spare_servers = 2
pm.max_requests = 1000
pm.process_idle_timeout = 10s
;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 = 10240
rlimit_core = 0
;chroot = /home/admin
;chdir = /
catch_workers_output = yes
security.limit_extensions = .php .php3 .php4 .php5 .phar
env[HOSTNAME] = $HOSTNAME
env[PATH] = /bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp
env[OSTYPE] = $OSTYPE
env[MACHTYPE] = $MACHTYPE
env[MALLOC_CHECK_] = 2
php_flag[zlib.output_compression] = off
php_admin_value[disable_functions] = exec,passthru,shell_exec,system,proc_open,popen,show_source
php_flag[display_errors] = on
php_flag[file_uploads] = on
php_admin_value[upload_max_filesize] = 16M
php_flag[log_errors] = on
php_flag[output_buffering] = off
php_flag[register_argc_argv] = on
php_admin_value[max_execution_time] = 120
php_admin_value[max_input_time] = 120
php_admin_value[memory_limit] = 128M
php_admin_value[post_max_size] = 32M
php_flag[allow_url_fopen] = on
php_flag[allow_url_include] = off
php_admin_value[session.save_path] = /home/kloxo/client/admin/session
php_flag[cgi.force_redirect] = on
php_flag[enable_dl] = on
php_admin_value[open_basedir] = /home/admin/:/tmp/:/usr/share/pear/:/home/kloxo/client/admin/session/:/home/kloxo/httpd/script/:/home/kloxo/httpd/disable/:/usr/bin
php_admin_value[max_input_vars] = 3000
php_admin_value[date.timezone] = "America/Los_Angeles"
Darimana anda tahu php-fpm down?.Setelah aktifkan php-fpm cpu load turun drastis, reaksi klien juga langsung kelihatan. Tapi ya itu masalahnya kadang service php-fpm nya down trus up lagi. Meskipun php-fpm down sepertinya web tetep up.
di cpanel cuma gini seting poolnyaIni contoh php-fpm config untuk user admin di Kloxo-MR 7.0:
Code:[php53m-admin] ;listen = 127.0.0.1:57797 listen = /opt/configs/php-fpm/sock/php53m-admin.sock listen.backlog = 65536 listen.allowed_clients = 127.0.0.1 listen.owner = admin listen.group = admin listen.mode = 0666 user = admin group = admin pm = ondemand pm.max_children = 6 pm.start_servers = 2 pm.min_spare_servers = 2 pm.max_spare_servers = 2 pm.max_requests = 1000 pm.process_idle_timeout = 10s ;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 = 10240 rlimit_core = 0 ;chroot = /home/admin ;chdir = / catch_workers_output = yes security.limit_extensions = .php .php3 .php4 .php5 .phar env[HOSTNAME] = $HOSTNAME env[PATH] = /bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin env[TMP] = /tmp env[TMPDIR] = /tmp env[TEMP] = /tmp env[OSTYPE] = $OSTYPE env[MACHTYPE] = $MACHTYPE env[MALLOC_CHECK_] = 2 php_flag[zlib.output_compression] = off php_admin_value[disable_functions] = exec,passthru,shell_exec,system,proc_open,popen,show_source php_flag[display_errors] = on php_flag[file_uploads] = on php_admin_value[upload_max_filesize] = 16M php_flag[log_errors] = on php_flag[output_buffering] = off php_flag[register_argc_argv] = on php_admin_value[max_execution_time] = 120 php_admin_value[max_input_time] = 120 php_admin_value[memory_limit] = 128M php_admin_value[post_max_size] = 32M php_flag[allow_url_fopen] = on php_flag[allow_url_include] = off php_admin_value[session.save_path] = /home/kloxo/client/admin/session php_flag[cgi.force_redirect] = on php_flag[enable_dl] = on php_admin_value[open_basedir] = /home/admin/:/tmp/:/usr/share/pear/:/home/kloxo/client/admin/session/:/home/kloxo/httpd/script/:/home/kloxo/httpd/disable/:/usr/bin php_admin_value[max_input_vars] = 3000 php_admin_value[date.timezone] = "America/Los_Angeles"
--
_is_present: 1
pm_max_children: 10
pm_max_requests: 20
pm_process_idle_timeout: 10
Dapat email Failed apache_php_fpm, dan pernah sekali pas cek di service status kebetulan pas apache_php_fpm down, lalu saya cek web ternyata masih up. sempat juga pantau htop agak lama, nemu proses php-cgi jalan sesaat oleh user yg sudah diaktifkan php-fpm. Apa kalau php-fpm down otomatis pindah ke php-cgi ya tuan?Darimana anda tahu php-fpm down?.
lsapi sih udah pake sejak awal setupknp ga pake mod_lsapi saja
Kalo pake CL mending pake mod_lsapi jadi kayaknya php fpm ga kepake lglsapi sih udah pake sejak awal setup
LSapi dilepas memangnya? apakah ada kendalama lsapi?lsapi sih udah pake sejak awal setup
nggak coba pake nginx atau vernish ??ini malah gak seting apa2. server saya yg lain pake php-cgi juga lancar, tapi yg satu ini malah php-cgi loadnya tinggi banget padahal user masih sedikit sampai klien pada ngeluh.
Setelah aktifkan php-fpm cpu load turun drastis, reaksi klien juga langsung kelihatan. Tapi ya itu masalahnya kadang service php-fpm nya down trus up lagi. Meskipun php-fpm down sepertinya web tetep up.