HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Lighttpd With PHP5 (PHP-FPM) On Ubuntu 12.04 (http://www.howtoforge.com/forums/showthread.php?t=57792)

nzimas 2nd July 2012 10:33

Lighttpd With PHP5 (PHP-FPM) On Ubuntu 12.04
 
I have followed this howto meticulously, but the Sefver API still reverts to CGI/FastCGI, not FPM.

Quote:

Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php5/cgi
Loaded Configuration File /etc/php5/cgi/php.ini
Scan this dir for additional .ini files /etc/php5/cgi/conf.d
Additional .ini files parsed /etc/php5/cgi/conf.d/apc.ini, /etc/php5/cgi/conf.d/curl.ini, /etc/php5/cgi/conf.d/gd.ini, /etc/php5/cgi/conf.d/mcrypt.ini, /etc/php5/cgi/conf.d/mysql.ini, /etc/php5/cgi/conf.d/mysqli.ini, /etc/php5/cgi/conf.d/pdo.ini, /etc/php5/cgi/conf.d/pdo_mysql.ini

nzimas 2nd July 2012 10:51

And to make matters slightly more interesting, ever simnce I have enabled the Unix socket, /etc/init.d/php5-fpm start won't initialise PHP-FPM.
No error message given either.

falko 3rd July 2012 16:26

Are there any errors in the PHP-FPM error log?

What's the output of
Code:

ls -la /tmp/
?

What's the output of
Code:

netstat -tapn
?

nzimas 3rd July 2012 23:09

Hi Falko,

Things are gettung more interesting.
After reinstalling everything from the ground up, eventually I have managed to enable php-fpm.

However, upon switching to unix socket mode, Lighttpd throws the following error:
Quote:

2012-07-03 22:02:30: (mod_fastcgi.c.2854) fcgi-server re-enabled: unix:/tmp/php5-fpm.sock
2012-07-03 22:02:34: (mod_fastcgi.c.1734) connect failed: Connection refused on unix:/tmp/php5-fpm.sock
2012-07-03 22:02:34: (mod_fastcgi.c.3027) backend died; we'll disable it for 1 seconds and send the request to another backend instead: reconnects: 0 load: 1
2012-07-03 22:02:35: (mod_fastcgi.c.3597) all handlers for /index.php? on .php are down.

I must add that I had to touch /tmp/php5-fpm.sock because it was not automatically created by neither lighttpd nor php-fpm.

Quote:

root@rtvnwebfpm:~# ls -l /tmp/php5-fpm.sock
-rw-r--r-- 1 www-data www-data 0 Jul 3 21:59 /tmp/php5-fpm.sock
[EDIT]

Aghh... my extremely poor sight playing tricks on me. Copied isten = /tmp/php5-fpm.sock instaed of listen = /tmp/php5-fpm.sock
Sorry about that :(


All times are GMT +2. The time now is 17:47.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.