← Back to team overview

ius-coredev team mailing list archive

[Bug 1237617] Re: Unable to start php54-fpm

 

/etc/php-fpm.conf

[global]
pid=/var/run/php-fpm/php-fpm.pid
error_log=/var/log/php-fpm/error.log
log_level=error

;emergency_restart_threshold=0
;emergency_restart_interval=0
;process_control_timeout=0

emergency_restart_threshold=10
emergency_restart_interval=1m
process_control_timeout=10s

daemonize=yes

include=/etc/php-fpm.d/*.conf

/etc/php-fpm.d/admin.conf

[admin]
;listen = 127.0.0.1:51006
listen = /home/php-fpm/sock/admin.sock
listen.backlog = 65536
listen.allowed_clients = 127.0.0.1
user = admin
group = admin
;pm = dynamic
pm = ondemand
pm.max_children = 16
;pm.start_servers = 8
;pm.min_spare_servers = 4
;pm.max_spare_servers = 8
pm.max_requests = 1000

;pm.status_path = /status
;ping.path = /ping
;ping.response = pong
request_terminate_timeout = 120s
request_slowlog_timeout = 90s
slowlog = /var/log/php-fpm/slow.log
rlimit_files = 2048
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@xxxxxxxxxx
;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] = /home/admin/:/tmp/:/usr/share/pear/:/var/lib/php/session/:/home/kloxo/httpd/script/:/home/kloxo/httpd/disable/
php_admin_value[session.save_path] = /home/admin

-- 
You received this bug notification because you are a member of IUS Core
Development, which is subscribed to IUS Community Project.
https://bugs.launchpad.net/bugs/1237617

Title:
  Unable to start php54-fpm

Status in IUS Community Project:
  New

Bug description:
  /etc/init.d/php-fpm start
  Starting php-fpm: [09-Oct-2013 19:47:55] ERROR: An another FPM instance seems to already listen on /home/php-fpm/sock/mareklipski.sock
  [09-Oct-2013 19:47:55] ERROR: FPM initialization failed
                                                             [FAILED]

  I have to do killall -9 php-fpm; pkill -o php-fpm; then restart with
  /etc/init.d/php-fpm restart

  This happens every 10-30 minutes and all pages display Internal Server
  Error at this time.

  I was using remi repo before and it did not happen.

  It seems remi is using a bit different init.d script:
  http://files.tinypic.pl/i/00455/h1n609bja2xz.jpg

To manage notifications about this bug go to:
https://bugs.launchpad.net/ius/+bug/1237617/+subscriptions


References