| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
09-07-2009, 01:49 PM
|
#1
|
|
Member
Registered: Feb 2009
Posts: 119
Rep:
|
Problems after Debian Lenny upgrade
Hello kind folks,
I've got a debian lenny installation set up as a testing webserver. Everything was working perfectly thanks to the folks here that is!
So here's my problem:
Upgraded to the latest lenny release and it seems to me that it has written over some files and my webserver has stopped serving!
Here's my findings so far:
I noticed that eth0 had an ipaddress of 192.168.1.2 and not the one I had assigned in /etc/network/interfaces which was 192.168.1.15 (there was no backup file created by the upgrade)so I changed that file as I had done before to:
# The primary network interface
# auto eth0
iface eth0 inet static
address 192.168.1.15
netmask 255.255.255.0
gateway 192.168.1.1 (that's my cheapo router with port forwarding to 192.168.1.15 already set up and was working!)
Then I added xxxx.dnsalias.org 192.168.1.15 to my /etc/hosts file (that had been overwritten too!)
I seem to remember that I had to create a /etc/resolve.conf file but that has been replaced by a link to a file that says "dont touch this file, it will be updated automatically" or someting like that.
At your mercy guys and gals! Please help!
Regards from Scotland (hope we beat the dutch on wednesday night in the world cup qualifier!)
|
|
|
|
09-07-2009, 03:05 PM
|
#2
|
|
Member
Registered: Mar 2008
Location: NRW, Germany
Distribution: Debian GNU/Linux with XFCE and packages from "testing"
Posts: 377
Rep:
|
add the option
Code:
dns-nameservers 192.168.1.1
to the eth0 iface
that should give your server the internet back
|
|
|
|
09-07-2009, 03:26 PM
|
#3
|
|
Member
Registered: Feb 2009
Posts: 119
Original Poster
Rep:
|
Excuse my..
..ignorance, do you mean:
iface eth0 inet static dns-nameservers 192.168.1.1
or
iface eth0 inet static
dns-nameservers 192.168.1.1
or is it the same thing? ie one line or 2 lines?
Thanks for you help,
Sorry for being a linux dafty!
|
|
|
|
09-07-2009, 03:36 PM
|
#4
|
|
Member
Registered: Mar 2008
Location: NRW, Germany
Distribution: Debian GNU/Linux with XFCE and packages from "testing"
Posts: 377
Rep:
|
ok I thought you would just guess...
according to the setup you posted above, the file should look like:
Code:
# The primary network interface
# auto eth0
iface eth0 inet static
address 192.168.1.15
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1
That's how I ment it. The following commands, executed as root (in that sequence), will apply the settings:
Code:
ifdown eth0
ifup eth0
Hope that gets your server serving again.
|
|
|
|
09-07-2009, 03:56 PM
|
#5
|
|
Member
Registered: Feb 2009
Posts: 119
Original Poster
Rep:
|
As usual...
.. added the the line you suggested (never had to do that before the upgrade) the solution is no doubt more involved.
I can see the website from the server but have no access to the net from the server and cant access the server from a remote computer..oh joy!
Oh and eth0 reports as 192.168.1.15 must be that darn resolve.conf thingy!
Last edited by ludo33; 09-07-2009 at 03:57 PM.
|
|
|
|
09-07-2009, 04:30 PM
|
#6
|
|
Member
Registered: Mar 2008
Location: NRW, Germany
Distribution: Debian GNU/Linux with XFCE and packages from "testing"
Posts: 377
Rep:
|
My fault. I thought you needed to assign the ip 192.168.1.15, which is the ip the upgrade gave you. Just edit that file again and change the ip after the "address" statement to the one which your server is to be assigned (192.168.1.2 if I got it right now). Then use the two commands to apply the changes. Sorry for my mistake.
Last edited by TITiAN; 09-07-2009 at 04:32 PM.
|
|
|
|
09-08-2009, 12:34 AM
|
#7
|
|
Member
Registered: Feb 2009
Posts: 119
Original Poster
Rep:
|
Slight improvement
Hi again,
I can now see the internet from the server, so half way to the solution :-)
Here's the whole interfaces file, just in case something else is wrong:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
# auto eth0
iface eth0 inet static
address 192.168.1.15
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1
any ideas?
|
|
|
|
09-08-2009, 08:17 AM
|
#8
|
|
Member
Registered: Mar 2008
Location: NRW, Germany
Distribution: Debian GNU/Linux with XFCE and packages from "testing"
Posts: 377
Rep:
|
I am seeing the ip 192.168.1.15 in your 'interfaces' file again, if you want your server to have the ip 192.168.1.2, you will have to change that.
From what you said, you are probably running a webserver (apache?). To check if it's running, open a web browser in your LAN (or the LAN where the server is) and enter the server ip in the address field.
|
|
|
|
09-08-2009, 11:06 AM
|
#9
|
|
Member
Registered: Feb 2009
Posts: 119
Original Poster
Rep:
|
Ooops
Hi again,
Sorry to confuse you, but you can be sure I'm a lot more confused than you! :-)
Ok just to clarify, yes I had everything working prior to the upgrade using the address 192.168.1.15.
After upgrade the eth0 address changed to 192.168.1.2 and some of my files were altered (I still suspect resolve.conf is the problem)
When I enter http://192.168.1.15 on the server I see my test web site in the browser.
Do you think any of the apache configs were changed during the upgarde?
Thanks for your help.
|
|
|
|
09-09-2009, 12:40 AM
|
#10
|
|
Member
Registered: Feb 2009
Posts: 119
Original Poster
Rep:
|
I tried....
....netstat -tan|grep -E '80|10000'
Here's the output:
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.15:49644 77.242.194.130:80 ESTABLISHED
tcp 1 0 192.168.1.15:54050 205.234.175.175:80 CLOSE_WAIT
tcp 0 0 192.168.1.15:37035 209.85.229.157:80 ESTABLISHED
tcp 0 0 192.168.1.15:35914 75.126.162.205:80 ESTABLISHED
tcp 0 0 192.168.1.15:48589 212.140.233.207:80 ESTABLISHED
tcp 0 0 192.168.1.15:41621 209.85.229.167:80 ESTABLISHED
tcp 0 0 192.168.1.15:54053 205.234.175.175:80 ESTABLISHED
tcp 0 0 192.168.1.15:49643 77.242.194.130:80 ESTABLISHED
tcp 0 0 192.168.1.15:49646 77.242.194.130:80 ESTABLISHED
tcp 0 0 192.168.1.15:60075 209.85.229.156:80 ESTABLISHED
tcp 0 0 192.168.1.15:35913 75.126.162.205:80 ESTABLISHED
tcp 1 0 192.168.1.15:54051 205.234.175.175:80 CLOSE_WAIT
tcp 1 0 192.168.1.15:54055 205.234.175.175:80 CLOSE_WAIT
tcp 0 0 192.168.1.15:42244 209.85.229.164:80 ESTABLISHED
tcp 0 0 192.168.1.15:35915 75.126.162.205:80 ESTABLISHED
tcp 0 0 192.168.1.15:59142 64.158.223.128:80 TIME_WAIT
tcp 0 0 192.168.1.15:49641 77.242.194.130:80 ESTABLISHED
tcp 0 0 192.168.1.15:49642 77.242.194.130:80 ESTABLISHED
tcp 0 0 192.168.1.15:35917 75.126.162.205:80 ESTABLISHED
tcp 1 0 192.168.1.15:54052 205.234.175.175:80 CLOSE_WAIT
tcp 1 0 192.168.1.15:54054 205.234.175.175:80 CLOSE_WAIT
tcp 0 0 192.168.1.15:35916 75.126.162.205:80 ESTABLISHED
tcp 0 0 192.168.1.15:49645 77.242.194.130:80 ESTABLISHED
tcp 0 0 192.168.1.15:38163 209.85.229.113:80 ESTABLISHED
tcp6 0 0 :::80 :::* LISTEN
Any ideas what it means? :-)
|
|
|
|
09-09-2009, 09:28 AM
|
#11
|
|
Member
Registered: Mar 2008
Location: NRW, Germany
Distribution: Debian GNU/Linux with XFCE and packages from "testing"
Posts: 377
Rep:
|
This means there are a lot of connection from the internet to your web pages (tcp connections from a lot of internet ip's to port 80).
|
|
|
|
09-09-2009, 11:24 AM
|
#12
|
|
Member
Registered: Feb 2009
Posts: 119
Original Poster
Rep:
|
Hmm
Hello again,
How come I can't connect to the my test site from a remote computer via the internet?
Any ideas what to try next to connect?
|
|
|
|
09-12-2009, 04:18 AM
|
#13
|
|
Member
Registered: Feb 2009
Posts: 119
Original Poster
Rep:
|
Any ideas?
Seems after the upgrade the webserver is now listening on IPV6 and not on IPV4. How to I change this?
|
|
|
|
09-12-2009, 11:45 AM
|
#15
|
|
Member
Registered: Mar 2008
Location: NRW, Germany
Distribution: Debian GNU/Linux with XFCE and packages from "testing"
Posts: 377
Rep:
|
Sorry, I don't know. If you start a new thread like "Why does Apache only listen to ipv6 ports?", more people will be looking at this issue ("no-reply-threads"), so you might catch one or two "gurus" by doing that. How about it?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:14 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|