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 24th June 2013, 18:39
jaypabs jaypabs is offline
Member
 
Join Date: Jun 2013
Posts: 69
Thanks: 0
Thanked 1 Time in 1 Post
Default I need your help badly - ERROR 502 - Bad Gateway!

I manually change the /etc/passwd because the location of the files was scramble.

After editing it, all of my sites are still functioning.

One of my site is linking to the wrong directory. like
/var/www/mydomain.com is pointing to /var/www/clients/client1/web2/

when it should be:
/var/www/mydomain.com is pointing to /var/www/clients/client1/web3/

So I deleted the mydomain.com manually under /var/www and create a link again to point the mydomain.com to /var/www/clients/client1/web3/.

But after doing this, all of my sites cannot be access and it is throwing an error:

Quote:
ERROR 502 - Bad Gateway!
The following error occurred:

This server received an invalid response from an upstream server it accessed to fulfill the request.

If you get this message repeatedly please contact the webmaster.
Is anyone how can I restore my site back?

I need your help badly. This is urgent as my sites are all down..

Thank you in advance.
Reply With Quote
Sponsored Links
  #2  
Old 24th June 2013, 19:06
jaypabs jaypabs is offline
Member
 
Join Date: Jun 2013
Posts: 69
Thanks: 0
Thanked 1 Time in 1 Post
Default

Help please.

I cannot even access ISPConfig admin.
Reply With Quote
  #3  
Old 24th June 2013, 19:09
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

First you should undo the link change and try to restart apache. Do you have a backup of the passwd file?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 24th June 2013, 19:13
jaypabs jaypabs is offline
Member
 
Join Date: Jun 2013
Posts: 69
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by till View Post
First you should undo the link change and try to restart apache. Do you have a backup of the passwd file?
I already created the symlink again. But still the same error. Yes, I have backup the passwd file.

BTW, I'm using nginx.
Reply With Quote
  #5  
Old 24th June 2013, 19:28
jaypabs jaypabs is offline
Member
 
Join Date: Jun 2013
Posts: 69
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi till,

I'm waiting for the next solution. I really mess my server. All of the sites are inaccessible now.
Reply With Quote
  #6  
Old 24th June 2013, 20:48
jaypabs jaypabs is offline
Member
 
Join Date: Jun 2013
Posts: 69
Thanks: 0
Thanked 1 Time in 1 Post
 
Default

I just rebooted the server and it works fine now.

However, I still wanted to change the correct directory of one of my website. Under Sites >> Websites the ID = 2 but in the actual directory it was /var/www/clients/client1/web1. It should be /var/www/clients/client1/web2 and not web1.

So what is the proper way of correcting this?

BTW, all the files is under web1 and web2 is empty. I want to transfer also all the files under web1 to web2 folder.

Do I need to delete the shell-user?
Can I remove the symlink again and create a new one with the correct directory? Like

mydomain.com -> /var/www/clients/client1/web1/
#rm mydomain.com
and
#ln -s /var/www/clients/client1/web2/ /var/www/mydomain.com

Can I do this? I'm afraid my site will not function again if I remove and add symlink again.
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
Ispconfig and iptables rules lanceq Installation/Configuration 0 28th June 2012 00:57
Can't receive mails baicunko Server Operation 12 3rd August 2011 23:02
Intel 82815 Video Card & Ubuntu 8.10 harvey527 Kernel Questions 8 5th November 2010 15:51
Squirrelmail login failure Cracklefish Installation/Configuration 9 30th June 2010 21:38
Mail Sent and Received but failure notice delivered badbandit83 General 7 2nd February 2006 22:50


All times are GMT +2. The time now is 00:29.


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