Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 23rd July 2014, 23:04
cbj4074 cbj4074 is offline
Senior Member
 
Join Date: Nov 2010
Posts: 388
Thanks: 28
Thanked 58 Times in 50 Posts
Default Socket file that ISPConfig references in nginx config does not exist by default

I just installed ISPConfig 3.0.5.4, with nginx, on a brand new box.

Immediately after finishing the ISPConfig installation, I attempted to access the interface at https://example.com:8080, and received "502 Bad Gateway".

A quick look at the log file (/etc/nginx/error.log) reveals the reason:

Code:
2014/07/23 20:54:10 [error] 4580#0: *8 connect() to unix:/var/lib/php5-fpm/ispconfig.sock failed (111: Connection refused) while connecting to upstream, client: 1.2.3.4, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/ispconfig.sock:", host: "example.com:8080"
The socket file referenced in the ISPConfig vhost (/etc/nginx/sites-available/ispconfig.vhost [line 28]) references the following socket:

Code:
fastcgi_pass unix:/var/lib/php5-fpm/ispconfig.sock;
Yet, the socket file does not actually exist on the filesystem.

Is this a known issue? Am I supposed to create the socket file manually?

Just trying to determine whether or not I should open a bug report. Surely, others have run into this.

Thanks!

UPDATE: Huh! After about 10 minutes, the socket file appeared at the expected location, /var/lib/php5-fpm/ispconfig.sock. I'm sure there is some "good reason" for the delay.

But, I'm still seeing an error. The original error

Code:
connect() to unix:/var/lib/php5-fpm/ispconfig.sock failed (2: No such file or directory)
changed to the following, once the socket file mysteriously showed-up

Code:
connect() to unix:/var/lib/php5-fpm/ispconfig.sock failed (111: Connection refused)
Here are the socket details:

Code:
# stat /var/lib/php5-fpm/ispconfig.sock
  File: /var/lib/php5-fpm/ispconfig.sock
  Size: 0               Blocks: 0          IO Block: 4096   socket
Device: ca01h/51713d    Inode: 1632266     Links: 1
Access: (0660/srw-rw----)  Uid: ( 5003/ispconfig)   Gid: ( 5004/ispconfig)
Access: 2014-07-23 21:00:53.696859916 +0000
Modify: 2014-07-23 21:00:53.696859916 +0000
Change: 2014-07-23 21:00:53.696859916 +0000
 Birth: -
Thanks for any ideas!

UPDATE 2: I restarted the box and now everything works. Maybe the php5-fpm service had not been started (or failed to restart), or something along those lines.

Sooo... never mind. Maybe this will help someone else that gets trigger-happy immediately after a fresh installation.

UPDATE 3: I had actually installed ISPConfig 3.0.5.3 (not 3.0.5.4 as stated above). I later realized the reason: ISPConfig 3.0.5.3 is listed as the latest version at http://www.ispconfig.org/files/file/2-ispconfig/ . Should this be changed to 3.0.5.4?

Last edited by cbj4074; 24th July 2014 at 18:23.
Reply With Quote
Sponsored Links
  #2  
Old 24th July 2014, 20:51
sigiberlin sigiberlin is offline
Junior Member
 
Join Date: Jul 2014
Posts: 19
Thanks: 0
Thanked 1 Time in 1 Post
Default

see also http://www.howtoforge.com/forums/sho...ewpost&t=66473
Reply With Quote
  #3  
Old 25th July 2014, 07:20
srijan srijan is offline
HowtoForge Supporter
 
Join Date: Feb 2014
Location: New Delhi, India
Posts: 505
Thanks: 4
Thanked 66 Times in 64 Posts
Send a message via Skype™ to srijan
Default

Whcih distribution you are using?


Quote:
Is this a known issue? Am I supposed to create the socket file manually?
Socket files are not created manually, they appear after proper successful service running status of php-fpm.

Quote:
UPDATE 3: I had actually installed ISPConfig 3.0.5.3 (not 3.0.5.4 as stated above). I later realized the reason: ISPConfig 3.0.5.3 is listed as the latest version at http://www.ispconfig.org/files/file/2-ispconfig/ . Should this be changed to 3.0.5.4?
Obviously goingto updated ISPConfig version will help.

You must check your php-fpm running status to diagnose the socket error
__________________
Br//
Srijan
Reply With Quote
  #4  
Old 25th July 2014, 21:13
cbj4074 cbj4074 is offline
Senior Member
 
Join Date: Nov 2010
Posts: 388
Thanks: 28
Thanked 58 Times in 50 Posts
 
Default

Thanks for the input, guys.

I setup another server today and the same issue occurred (and I installed 3.0.5.4 this time).

Again, a full system reboot fixed it. I did try "service php5-fpm start" before that, and the service appears to start (although, I didn't check its log file).

Not sure what is getting disconnected, but that seems to be the solution: a reboot.
Reply With Quote
Reply

Bookmarks

Tags
ispconfig, nginx, php-fpm, socket

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
Combination of postfix and courier failing Xaymar Server Operation 3 7th March 2012 17:28
Being Spammed/Hacked/Probed not sure PLEASE HELP! kresser General 10 29th October 2010 17:25
rewrite url not work apache2+mod_rewrite mohamedtah Installation/Configuration 1 31st January 2009 13:00
ISP Config hesitation when opening web pages frankb Installation/Configuration 7 15th December 2008 13:06
spamassasin/clamAV not working Daisy Installation/Configuration 32 15th February 2007 00:09


All times are GMT +2. The time now is 12:30.


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