You are not logged in.

#1 2011-04-12 10:49:55

lawful_evil
Member
Registered: 2010-03-16
Posts: 13

small bug in the php-fpm package, fix included

I had to mkdir /var/run/php-fpm.

# /usr/sbin/php-fpm
[12-Apr-2011 03:34:26] ERROR: bind() for address '/var/run/php-fpm/php-fpm.sock' failed: No such file or directory (2)
[root@satik ~]# ls /var/run
cherokee.pid  crond.pid  daemons  dbus  dhcpcd  dhcpcd-eth0.pid  syslog-ng.ctl  syslog-ng.pid  utmp
[root@satik ~]# mkdir /var/run/php-fpm
[root@satik ~]# /usr/sbin/php-fpm

now cherokee php setup works

whoever is that package maintainer should perhaps add that mkdir

thx

Offline

#2 2011-04-12 13:35:04

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: small bug in the php-fpm package, fix included

You should be using the /etc/rc.d/php-fpm script to start php-fpm. It also creates the /var/run/php-fpm directory if it doesn't exist.

Offline

#3 2011-04-12 19:57:01

lawful_evil
Member
Registered: 2010-03-16
Posts: 13

Re: small bug in the php-fpm package, fix included

thank you.

I used cherokee's wizard to activate php-fpm so I guess it went directly to the executible.

I leave it to you if it is wizer to create it during install or if other programs might do the same.

Last edited by lawful_evil (2011-04-12 20:19:58)

Offline

#4 2011-05-14 21:44:39

yvonney
Member
Registered: 2008-06-11
Posts: 671

Re: small bug in the php-fpm package, fix included

@foutrelis

incredibly helpful ... how to start php-fpm properly.
didn't see that in the wiki though it may be there. dunno at the moment.
huge thanks.

now needing to find out how to start php-fpm best, along with nginx.
rc.conf perhaps.  nginx php-fpm mysqld

or maybe that will give the socket error.
not a big concern. almost there.  great!!

Last edited by yvonney (2011-05-14 21:46:28)

Offline

Board footer

Powered by FluxBB