Results 1 to 10 of 13
HI, this is my first post here, been using linux since June.
Anyways, I am a bit confused with Apache. i have it running, but can't figure out what my ...
- 08-17-2005 #1Just Joined!
- Join Date
- Aug 2005
- Posts
- 20
Confused
HI, this is my first post here, been using linux since June.
Anyways, I am a bit confused with Apache. i have it running, but can't figure out what my URL is.
It says the status is up and running, so err, help please? Thanks!
- 08-17-2005 #2
Are you trying to view your own webpages from your comp to test them? If so, it is http://localhost/.
BryanLooking for a distro? Look here.
"There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
Queen's University - Arts and Science 2008 (Sociology)
Registered Linux User #386147.
- 08-17-2005 #3Just Joined!
- Join Date
- Aug 2005
- Posts
- 20
Thanks, I got the test page! But, i need to know what my URL is, for the WWW! Also, what is the directory of localhost? Thanks!
Originally Posted by bryansmith
- 08-17-2005 #4Linux Newbie
- Join Date
- Jul 2005
- Location
- Turn Around
- Posts
- 202
ur URL is ur IP address. type "ifconfig" under root to find it (for debian at least)
from apache tutorial on http://aboutdebian.com/internet.htmThe important file locations for Apache on a Debian system are:
* Configuration files directory (aka "ServerRoot") - /etc/apache
* Web page files directory (aka "DocumentRoot") - /var/www
* CGI scripts directory (aka "cgi-bin") - /usr/lib/cgi-bin
* Log files directory - /var/log/apache
* The apache executable file - /usr/sbin
- 08-17-2005 #5Just Joined!
- Join Date
- Aug 2005
- Posts
- 20
Okay so my URL is http://192.168.0.3/
However, this * Web page files directory (aka "DocumentRoot") - /var/www folder doesn't exist.
- 08-17-2005 #6
You need to find out where your httpd.conf file is. Something like /etc/apache/httpd.conf.
If you can find that (which you will need to find at some point to make any modifications), it will tell you exactly where your document root is. In slackware, the default is /var/www/htdocs. It could be about anywhere though, depending on your distro and particular installation.Join the Open Source Revolution. Support GNU/Linux.
Find me at: www.deeksworld.com
Registered GNU/Linux User #395777
- 08-17-2005 #7Linux Newbie
- Join Date
- Jul 2005
- Location
- Turn Around
- Posts
- 202
i dont think thats your IP.. that will work for you but not me. thats probably the ip for ur router. it will only work for other computers connected to the router. try http://www.whatismyip.com/
for the documentroot check /usr/local/web/apache/htdocs
also try lookin in your config file (/etc/httpd/conf/httpd.conf).. it oughtta say in there: so, cat /etc/httpd/conf/httpd.conf (or 'cat /etc/httpd/conf/httpd.conf | more' i dont know if this is needed). hope this helps
-Dan
- 08-17-2005 #8Just Joined!
- Join Date
- Aug 2005
- Posts
- 20
http://68.223.5.113
Originally Posted by DoctorDan
However, that isn't working for me.
Will it for you? WAC as I try to find the directory.
- 08-17-2005 #9Just Joined!
- Join Date
- Aug 2005
- Posts
- 20
none of those existed, not even the config file:
Originally Posted by DoctorDan
http://xs42.xs.to/pics/05333/term.png
- 08-17-2005 #10
try running
locate www
or
locate htdocs
(you might have to replace locate with slocate depending on your system)
90% chance, your web stuff will be sorted in /var somewhere, because /var generaly doesn't contain much more than 10 folders, you can probably just poke around them.
As for your net address working, first, you probably want to register you IP and get a host name dyndns.org offers a great free service for this. The next big thing you need to worry about is port forwarding.
If you are behind a nat of some kind, then you need to locate your router, and forward port 80 to your local machine (port 80 is the default http port under some RFC reg somewhere..)
Another possible problem, is if apache is not configured to listen on all interfaces, check your http.conf or apache.conf and read the comments there, they should help you figure that out. (Or use the GUI config tool that came with your distro if thats more comfortable for you)
A great way to test if its a TCP/IP issue or apache issue is to use nmap and netstat -tup to check if your machine is listening on port 80 or not.


Reply With Quote
