Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd July 2012, 10:33
nzimas nzimas is offline
Member
 
Join Date: May 2007
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation 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
Reply With Quote
Sponsored Links
  #2  
Old 2nd July 2012, 10:51
nzimas nzimas is offline
Member
 
Join Date: May 2007
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #3  
Old 3rd July 2012, 16:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

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
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 3rd July 2012, 23:09
nzimas nzimas is offline
Member
 
Join Date: May 2007
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
 
Exclamation

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

Last edited by nzimas; 4th July 2012 at 01:56. Reason: Error found
Reply With Quote
Reply

Bookmarks

Tags
lighttpd, php-fpm

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig3 Debian Squeeze Crontab - Log petrichbg Installation/Configuration 5 22nd March 2011 12:25
coexistence of php4 and php5 on ISPC3 AceLine Tips/Tricks/Mods 5 5th November 2010 14:56
Connection timed out on intermail outgoing mails gouravgarg Server Operation 6 5th March 2010 20:31
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 17:26
ISPConfig virtual web pages not working mike_phi Installation/Configuration 8 7th May 2008 16:51


All times are GMT +2. The time now is 09:48.


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