-
Apache setup
Sorry for the originally blank document, i was trying to attach a file to it and left it blank to test if it worked. I am having trouble setting up Apache as my webserver, and althought i have read many online tutorials and posts about people with problems similar to mine, i still cannot get it right. When i have time i will post the contents of my httpd.conf file, but for now all i can offer is my problem. When i try to surf the localhost from the computer with apache installed, it says it cannot reach the host (whether trying localhost or the ip address).
Last edited by Bulldog_Linux; 01-23-2004 at 05:12 PM.
-
Is the http process running?
-
try
ps -aux | grep http
This should tell you if the apache process is running or not.
-
-
What is the content of your /etc/hosts file?
Linux User #181509
* It can hardly be a coincidence that no language on this planet
has ever come up with the phrase "as pretty as an airport" *
-- Douglas Adams --
-
/etc/hosts.....
# Do not remove the following line, or various programs
# that require network functionality will fail.
207.160.174.100 Linuxbox localhost.localdomain localhost
Also i would like some help with a quick console command to restart the apache service. I have tried the commands i've seen (apachectl and the start/stop) and it hasnt' helped. Perhaps i'm leaving out part of the command or typing something wrong.
Last edited by Bulldog_Linux; 01-30-2004 at 04:43 PM.
-
Re: /etc/hosts.....
Originally posted by Bulldog_Linux
# Do not remove the following line, or various programs
# that require network functionality will fail.
207.160.174.100 Linuxbox localhost.localdomain localhost
Also i would like some help with a quick console command to restart the apache service. I have tried the commands i've seen (apachectl and the start/stop) and it hasnt' helped. Perhaps i'm leaving out part of the command or typing something wrong.
1. /etc/init.d/apache (or httpd) start, but thats mostly a symlink to apachectl.
When configuring apache, did you enter your ipaddress and port number into the config?
Debian Debian Debian Debian
-
Re: /etc/hosts.....
Originally posted by Bulldog_Linux
# Do not remove the following line, or various programs
# that require network functionality will fail.
207.160.174.100 Linuxbox localhost.localdomain localhost
I'm not entirely sure about this, but believe uppercase letters in hostname is a no-no, and you should also have a 127.0.0.1 address for localhost.
Try this:
Code:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
201.160.174.100 linuxbox
Cheers
Linux User #181509
* It can hardly be a coincidence that no language on this planet
has ever come up with the phrase "as pretty as an airport" *
-- Douglas Adams --
-
Alright
... I've entered what you told me to into the /etc/hosts file. I'm sure that helped me down the road but i still cannot access the page from anywhere. I entered the ip addresss into the configuration file when i first set everything up, and i've been back over it to make sure i had the correct address. I've even contemplated using a diff card (i have two ips on this school network, one goes to the normal computers and the other to admin computers). I don't know what i can change, so any help is appreciated
-
Uhmmm, and now you found it prudent to mention that this server is hooked up on your school network?
Do they block all traffic on port 80 (and 8080)?
If not, did you restart the httpd daemon after making changes to httpd.conf?
Accessing the server locally (from the same machine) via http://localhost should work regardless.
Cheers
Linux User #181509
* It can hardly be a coincidence that no language on this planet
has ever come up with the phrase "as pretty as an airport" *
-- Douglas Adams --
-
Well
Scratch that...... I now have the httpd process running fine and can access it as localhost. The other computers still give out an error that they could not connect to remote host. I'm sure this is easily fixable, so if u could help tell me what needs changed i'd appreciate it
Last edited by Bulldog_Linux; 02-04-2004 at 04:57 PM.
-
Any firewalling rules set up on your box?
Default Mandrake, RedHat, SuSE, other, during install/setup?
Are the other machines connecting via hostname or IP?
Can you access internet from this machine (meaning that the machines IP is known on the network)?
Most things are fixable, and probably fairly quick, if sufficient info are provided.
Linux User #181509
* It can hardly be a coincidence that no language on this planet
has ever come up with the phrase "as pretty as an airport" *
-- Douglas Adams --
-
Re: Well
Originally posted by Bulldog_Linux
Scratch that...... I now have the httpd process running fine and can access it as localhost. The other computers still give out an error that they could not connect to remote host. I'm sure this is easily fixable, so if u could help tell me what needs changed i'd appreciate it
Remember that localhost on a different machine doesn't connect to the PC running apache, it connects to itself
I haven't cried like this since I paid for Godfather III --Fat Tony
Currently breaking:
Gentoo Stage 1 w/gentoo-dev-2.6.14-r2 kernel
FreeBSD 6.0
XP Pro, well thats already broken
-
As far as i know, all the firewalls have been set to where they have no affect. I am trying to connect from the other computers through the IP address before i tried to go throught the hostname setup. This computer does have the internet, it runs through a central proxy computer that feeds to all of the computers in the network. I have tried to access it through both IPs also, I don't think it would make a difference but just in case i was missing something small.
-
Okay....
One step closer, now what do i need to change to allow acces to the other computers around me. Should i leave the Documentroot setting to Allow all, or go through each computer and enter the ip for now.... Also, i noticed when restarting the computer it came up with an httpd error that stated soemthing about not identifying the ip address as ServerName. The process was still started on startup however.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|