Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
It's a bit long story with my problem, but I'll try to make it short.
I'm kind of new to linux especially to mandrake 9.2 which I have installed just few days ago and trying to set it up as a server. I had already RH 9 before and all was working fine.
Now I've done exactly the same thing with mandrake and everything was ok until now, where I'm lost. It' just happened after rebooting my computer.
I can't see my website anymore as I'm getting message : The connection was refused when attempting to connect to "myserver"
I've checked the httpd.conf file and also I have anotherone there httpd2.conf and I don't know why, but they all look same and everything seems to be ok.
I can ping my pc I can browse the internet, I can do everything but see my website on it.
Can please anyone help, I've spent so much time with this and I don't wanna give up.
1) You need to find apache's PIDs using `ps -ax`, then use `netstat -na -p inet` to see all IP address/port pairs used by server processes (including apache). Make sure that apache is listening on the desired addessort.
2) Read your httpd.conf, is Listen directive defined correctly? That is, did you specify the required adressort?
3) Is apache started? Is it setup to start on boot?
4) Check your firewall settings.
Regaring why it happened only after reboot, there are many reasons, one of them is changing httpd.conf w/o restarting apache, but when you'd restart your machine, apache re-read the conf. Same can happen with firewall settings. Another possible reason is, if you have DHCP driven network, you might have just got another IP address after reboot, while you have specified the old IP in your httpd.conf. THere are many more reasons. Let's just try to identify your problem...
I've ran all the commands you gave me, but I couldn't find any apache related file listed.
my IP is static and I didn't change anything in httpd.conf file, firewall is off
anyway if you could please have a look at this file www.xpace.sk/apache
the apache is actual file without extension, that's the listing of those 2 commands you gave me and on the end its actual httpd.conf file listed, so if you don't mind please have a look and tell me what's going on
xspace, i coudn't see apache process in the listings you've sent. So this makes me believe that apache is not running.
try running the following to check httpd.conf syntax check: httpd -t
if you're using this, run the following to check vhost confs: http -S
make sure that `/var/run/httpd.pid` file does not exist, if apache finds this file on startup, it will terminate immediately, thinking that another instance is already running; sometimes, if you do `kill -9` on apache, it will leave this file
at the last, do `apachectl start` and see what it tells you, if it goes off silently, you need to check the logs, i think that the error messages would go to system logs, not apache ones
I'm guessing it doesn't even show you an error mesg, like httpd already running, so it would be a simple matter of rm'ing the lock file. Your httpd.conf seems much simpler than mine, so I don't see that there are anything strange going on with it. Your setup problems really got me stumped.