Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 25th March 2012, 21:16
Mitzy Mitzy is offline
Member
 
Join Date: Mar 2012
Posts: 41
Thanks: 20
Thanked 0 Times in 0 Posts
Default SquirelMail/phpMyAdmin ERROR 502 - Bad Gateway!

Hello,

I've been reluctant to post about this, basically I can't access SquirelMail and phpMyAdmin at all despite both being installed and apparently working. ie I can create databases from the control panel and I'm singing along using imap.

I have added the needful in the options page for my website.

Any ideas?
Reply With Quote
Sponsored Links
  #2  
Old 25th March 2012, 21:20
itsnedkeren itsnedkeren is offline
Senior Member
 
Join Date: May 2009
Location: Denmark
Posts: 128
Thanks: 32
Thanked 10 Times in 10 Posts
Default

Code:
/etc/init.d/php5-fpm restart
__________________
Best regards

Jim
Reply With Quote
  #3  
Old 25th March 2012, 21:29
Mitzy Mitzy is offline
Member
 
Join Date: Mar 2012
Posts: 41
Thanks: 20
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by itsnedkeren View Post
Code:
/etc/init.d/php5-fpm restart
I had but I did it again

Same result, 502.

This is what the error log shows.

Code:
2012/03/25 19:44:08 [error] 32451#0: *93 connect() failed (111: Connection refused) while connecting to upstream, client: 82.5.163.135, server: the-sps.org, request: "GET /squirrelmail/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "the-sps.org"
Reply With Quote
  #4  
Old 25th March 2012, 22:14
itsnedkeren itsnedkeren is offline
Senior Member
 
Join Date: May 2009
Location: Denmark
Posts: 128
Thanks: 32
Thanked 10 Times in 10 Posts
Default

How about the wrapper?

Code:
/etc/init.d/fcgiwrap restart
__________________
Best regards

Jim
Reply With Quote
  #5  
Old 25th March 2012, 22:23
Mitzy Mitzy is offline
Member
 
Join Date: Mar 2012
Posts: 41
Thanks: 20
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by itsnedkeren View Post
How about the wrapper?

Code:
/etc/init.d/fcgiwrap restart
Thanks again, unfortunately that didn't work either, same result 502.
Reply With Quote
  #6  
Old 25th March 2012, 22:30
itsnedkeren itsnedkeren is offline
Senior Member
 
Join Date: May 2009
Location: Denmark
Posts: 128
Thanks: 32
Thanked 10 Times in 10 Posts
Default

More info then please!

What did you add in the options tab?

Can you access phpmyadmin from the apps site?

Code:
http://server1.domain.com:8081/phpmyadmin
__________________
Best regards

Jim
Reply With Quote
  #7  
Old 25th March 2012, 22:35
Mitzy Mitzy is offline
Member
 
Join Date: Mar 2012
Posts: 41
Thanks: 20
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by itsnedkeren View Post
More info then please!

What did you add in the options tab?

Can you access phpmyadmin from the apps site?

Code:
http://server1.domain.com:8081/phpmyadmin
Can't access the apps site either.

I added the following in the options.

Code:
        location /squirrelmail {
               root /usr/share/;
               index index.php index.html index.htm;
               location ~ ^/squirrelmail/(.+\.php)$ {
                       try_files $uri =404;
                       root /usr/share/;
                       fastcgi_pass 127.0.0.1:9000;
                       fastcgi_index index.php;
                       fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                       include /etc/nginx/fastcgi_params;
                       fastcgi_buffer_size 128k;
                       fastcgi_buffers 256 4k;
                       fastcgi_busy_buffers_size 256k;
                       fastcgi_temp_file_write_size 256k;
                       fastcgi_intercept_errors on;
               }
               location ~* ^/squirrelmail/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
                       root /usr/share/;
               }
        }
        location /webmail {
               rewrite ^/* /squirrelmail last;
        }
Reply With Quote
  #8  
Old 26th March 2012, 13:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,715 Times in 2,557 Posts
Default

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
  #9  
Old 26th March 2012, 14:06
Mitzy Mitzy is offline
Member
 
Join Date: Mar 2012
Posts: 41
Thanks: 20
Thanked 0 Times in 0 Posts
Default

Code:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address * * * * * Foreign Address * * * * State * * * PID/Program name
tcp * * * *0 * * *0 127.0.0.1:10024 * * * * 0.0.0.0:* * * * * * * * LISTEN * * *2179/amavisd (maste
tcp * * * *0 * * *0 127.0.0.1:10025 * * * * 0.0.0.0:* * * * * * * * LISTEN * * *7340/master * **
tcp * * * *0 * * *0 0.0.0.0:3306 * * * * * *0.0.0.0:* * * * * * * * LISTEN * * *1985/mysqld * **
tcp * * * *0 * * *0 0.0.0.0:8080 * * * * * *0.0.0.0:* * * * * * * * LISTEN * * *3749/nginx * * *
tcp * * * *0 * * *0 0.0.0.0:80 * * * * * * *0.0.0.0:* * * * * * * * LISTEN * * *3749/nginx * * *
tcp * * * *0 * * *0 0.0.0.0:8081 * * * * * *0.0.0.0:* * * * * * * * LISTEN * * *3749/nginx * * *
tcp * * * *0 * * *0 0.0.0.0:21 * * * * * * *0.0.0.0:* * * * * * * * LISTEN * * *3224/pure-ftpd (SER
tcp * * * *0 * * *0 178.79.182.17:53 * * * *0.0.0.0:* * * * * * * * LISTEN * * *2010/named * * *
tcp * * * *0 * * *0 127.0.0.1:53 * * * * * *0.0.0.0:* * * * * * * * LISTEN * * *2010/named * * *
tcp * * * *0 * * *0 0.0.0.0:22 * * * * * * *0.0.0.0:* * * * * * * * LISTEN * * *2096/sshd * * **
tcp * * * *0 * * *0 0.0.0.0:25 * * * * * * *0.0.0.0:* * * * * * * * LISTEN * * *7340/master * **
tcp * * * *0 * * *0 127.0.0.1:953 * * * * * 0.0.0.0:* * * * * * * * LISTEN * * *2010/named * * *
tcp * * * *0 * *196 178.79.182.17:22 * * * *31.83.60.98:49272 * * * ESTABLISHED 15314/0 * * * **
tcp * * * *0 * * *0 178.79.182.17:80 * * * *94.23.225.68:53757 * * *TIME_WAIT * - * * * * * * *
tcp * * * *0 * * *0 127.0.0.1:34429 * * * * 127.0.0.1:3306 * * * * *ESTABLISHED 28414/amavisd (ch8-
tcp * * * *0 * * *0 178.79.182.17:80 * * * *94.23.225.68:53785 * * *TIME_WAIT * - * * * * * * *
tcp * * * *0 * * *0 127.0.0.1:3306 * * * * *127.0.0.1:34429 * * * * ESTABLISHED 1985/mysqld * **
tcp * * * *0 * * *0 178.79.182.17:80 * * * *66.249.66.129:41303 * * ESTABLISHED 3750/nginx: worker*
tcp * * * *0 * * *0 127.0.0.1:3306 * * * * *127.0.0.1:34296 * * * * ESTABLISHED 1985/mysqld * **
tcp * * * *0 * * *0 178.79.182.17:80 * * * *86.50.78.111:64985 * * *TIME_WAIT * - * * * * * * *
tcp * * * *0 * * *0 178.79.182.17:80 * * * *86.50.78.111:64999 * * *TIME_WAIT * - * * * * * * *
tcp * * * *0 * * *0 127.0.0.1:34296 * * * * 127.0.0.1:3306 * * * * *ESTABLISHED 28137/amavisd (ch9-
tcp6 * * * 0 * * *0 :::993 * * * * * * * * *:::* * * * * * * * * * *LISTEN * * *6793/couriertcpd
tcp6 * * * 0 * * *0 :::995 * * * * * * * * *:::* * * * * * * * * * *LISTEN * * *6830/couriertcpd
tcp6 * * * 0 * * *0 :::110 * * * * * * * * *:::* * * * * * * * * * *LISTEN * * *2718/couriertcpd
tcp6 * * * 0 * * *0 :::143 * * * * * * * * *:::* * * * * * * * * * *LISTEN * * *2684/couriertcpd
tcp6 * * * 0 * * *0 :::21 * * * * * * * * * :::* * * * * * * * * * *LISTEN * * *3224/pure-ftpd (SER
tcp6 * * * 0 * * *0 :::53 * * * * * * * * * :::* * * * * * * * * * *LISTEN * * *2010/named * * *
tcp6 * * * 0 * * *0 :::22 * * * * * * * * * :::* * * * * * * * * * *LISTEN * * *2096/sshd * * **
tcp6 * * * 0 * * *0 ::1:953 * * * * * * * * :::* * * * * * * * * * *LISTEN * * *2010/named * * *
tcp6 * * * 0 * * *0 178.79.182.17:993 * * * 31.83.60.98:49266 * * * ESTABLISHED 15310/couriertls
tcp6 * * * 0 * * *0 178.79.182.17:993 * * * 31.83.60.98:49267 * * * ESTABLISHED 15311/couriertls
Reply With Quote
  #10  
Old 27th March 2012, 13:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,715 Times in 2,557 Posts
 
Default

PHP-FPM isn't running (at least it's not listening on port 9000). Please restart it.
__________________
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
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't receive mails baicunko Server Operation 12 3rd August 2011 22:02
Intel 82815 Video Card & Ubuntu 8.10 harvey527 Kernel Questions 8 5th November 2010 14:51
Squirrelmail login failure Cracklefish Installation/Configuration 9 30th June 2010 20:38
Add ons for ISPConfig 3 virtue Installation/Configuration 24 16th October 2009 17:30
Mail Sent and Received but failure notice delivered badbandit83 General 7 2nd February 2006 21:50


All times are GMT +2. The time now is 05:40.


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