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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 23rd July 2014, 14:07
sigiberlin sigiberlin is offline
Junior Member
 
Join Date: Jul 2014
Posts: 19
Thanks: 0
Thanked 1 Time in 1 Post
Default my first domain made with ISPCOnfig - and it doesnt work

Hi

i'm still testing this, so i can redo almost everthing...

i made a website for a customer. put the adress in my browser and could see that greetings page.

i than installed Wordpress there, removed the index.html and reloaded the page. Guess what happened: 502 Bad gateway...


the error.log of that domain says:

2014/07/23 13:55:40 [crit] 5266#0: *700 connect() to unix:/var/lib/php5-fpm/web1.sock failed (2: No such file or directory) while connecting to upstream, client: 91.66.235.207, server: siegfried.de, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web1.sock:", host: "siegfried.de"


now whats wrong now ?
Reply With Quote
Sponsored Links
  #2  
Old 23rd July 2014, 14:18
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,488
Thanks: 813
Thanked 5,258 Times in 4,122 Posts
Default

There is a problem with your php-fpm setup. Which tutorial did you use to install the server?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 23rd July 2014, 14:22
sigiberlin sigiberlin is offline
Junior Member
 
Join Date: Jul 2014
Posts: 19
Thanks: 0
Thanked 1 Time in 1 Post
Default

i used http://www.howtoforge.com/the-perfec...and-ispconfig3
Reply With Quote
  #4  
Old 23rd July 2014, 14:41
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,488
Thanks: 813
Thanked 5,258 Times in 4,122 Posts
Default

Try to restart php-fpm and then check the php-fpm log for errors.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 23rd July 2014, 14:48
sigiberlin sigiberlin is offline
Junior Member
 
Join Date: Jul 2014
Posts: 19
Thanks: 0
Thanked 1 Time in 1 Post
Default

service php5-fpm restart
stop: Unknown instance:
php5-fpm start/running, process 16132

/var/log(php5-fpm.log says

notice: configuration file /etc/php5/fpm/php-fpm.conf terst is succsessful

ps aux | grep php show me 6 instances of php-fpm, pool apps, pool apps, pool www, pool www, pool ispconfig and pool ispconfig
Reply With Quote
  #6  
Old 23rd July 2014, 15:03
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,488
Thanks: 813
Thanked 5,258 Times in 4,122 Posts
Default

There should be a pool web1 as well and a socket file /var/lib/php5-fpm/web1.sock
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 23rd July 2014, 16:13
sigiberlin sigiberlin is offline
Junior Member
 
Join Date: Jul 2014
Posts: 19
Thanks: 0
Thanked 1 Time in 1 Post
Default

no pool web1, and no web1.sock...

does this mean there will be a pool and a .sock for every website running?
Reply With Quote
  #8  
Old 23rd July 2014, 16:16
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,488
Thanks: 813
Thanked 5,258 Times in 4,122 Posts
Default

Quote:
Originally Posted by sigiberlin View Post
no pool web1, and no web1.sock...

does this mean there will be a pool and a .sock for every website running?
Yes.as every website is separated from other websites for security reasons. so each site ahs its own linux user and under this user, php-fpm is running.

See here for debug instructions:

http://www.howtoforge.com/forums/showthread.php?t=58408

especially the last chapter.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 24th July 2014, 09:11
sigiberlin sigiberlin is offline
Junior Member
 
Join Date: Jul 2014
Posts: 19
Thanks: 0
Thanked 1 Time in 1 Post
Default

typical error message:

2014/07/23 13:55:40 [crit] 5266#0: *700 connect() to unix:/var/lib/php5-fpm/web1.sock failed (2: No such file or directory) while connecting to upstream, client: 91.66.235.207, server: siegfried.de, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web1.sock:", host: "siegfried.de"

i installed it with nginx. System is Ubuntu 14.04

output of grep:

root 7647 0.0 0.0 15800 900 pts/6 S+ 09:05 0:00 grep --color=auto php
ispapps 32072 0.0 0.0 485504 1732 ? S Jul23 0:00 php-fpm: pool apps
ispapps 32073 0.0 0.0 485504 1732 ? S Jul23 0:00 php-fpm: pool apps
www-data 32074 0.0 0.0 485324 1560 ? S Jul23 0:00 php-fpm: pool www
www-data 32075 0.0 0.0 485324 1560 ? S Jul23 0:00 php-fpm: pool www
ispconf+ 32076 0.0 0.2 491456 16388 ? S Jul23 0:07 php-fpm: pool ispconfig
ispconf+ 32077 0.0 0.1 488556 14904 ? S Jul23 0:07 php-fpm: pool ispconfig

Last edited by sigiberlin; 24th July 2014 at 09:20. Reason: changed from german to english
Reply With Quote
  #10  
Old 24th July 2014, 09:55
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,488
Thanks: 813
Thanked 5,258 Times in 4,122 Posts
 
Default

If you like to find out the reasn, then please follow the debug instrctions I posted above and create a new website in debug mode.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

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


All times are GMT +2. The time now is 13:31.


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