Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] New Apache2 install - "Requested URL not found"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
crystalattice
n00b
n00b


Joined: 03 Dec 2005
Posts: 18
Location: Hawaii

PostPosted: Sun Dec 04, 2005 3:49 am    Post subject: [Solved] New Apache2 install - "Requested URL not found Reply with quote

Hoi all, new to Gentoo but not necessarily Linux. I'm trying to set up a home server for web development and minor file serving. I just installed Apache2 and finally figured out how configure it so it actually lets me into the server instead of saying "access denied". However, my current problem is that it tells me "404 Not Found - The request URL / was not found on this server."

I'm a little confused on how to fix this because I'm used to the server pages being in /var/www; apparently the default placement in Apache2 is now in /var/www/localhost/htdocs. I haven't changed any config files except to add the server IP and server admin email. From what I've found on the 'net, the server should show the default index.html file when accessed but it's not and it doesn't matter if I expressly use "192.169.0.101/index.html".

I can ping the server and login remotely via SSH. My client system is an eMac and I'm networked via a wireless router (but using patch cables). Does anyone know why I can't view the default web page and how to fix it?

Thanks.
_________________
Interested in creating an RPG based on the Colonial Marines from "Aliens"? Just interested in learning more about the Colonial Marines? Visit Colonial Marines RPG.


Last edited by crystalattice on Sat Dec 17, 2005 8:29 am; edited 1 time in total
Back to top
View user's profile Send private message
texas1emt
Guru
Guru


Joined: 27 Oct 2003
Posts: 352
Location: San Antonio, TX

PostPosted: Sun Dec 04, 2005 10:51 am    Post subject: Reply with quote

You might have a permission issue on your web site root directory. You might want to try chmodding and chowning it:

Code:
chmod -R 777 /var/www/localhost/htdocs
chown -R apache:apache /var/www/localhost/htdocs


This fixed the issue I was having on a directory under the root directory for the site.
_________________
M. Hayden - San Antonio, TX
Back to top
View user's profile Send private message
crystalattice
n00b
n00b


Joined: 03 Dec 2005
Posts: 18
Location: Hawaii

PostPosted: Sun Dec 04, 2005 10:15 pm    Post subject: Reply with quote

I tried that but now I'm getting new problems. At first when I logged in remotely, I got "connection terminated by server" or something like that. So I tried using Lynx on the server to look at localhost but that dumped me out w/ the error: "Unable to connect to remote host". Now when I try accessing Apache via my Mac, the web page doesn't load but just sits there. Having made only the chmod and chown changes, did I screw something else up?

Thanks for the help.
_________________
Interested in creating an RPG based on the Colonial Marines from "Aliens"? Just interested in learning more about the Colonial Marines? Visit Colonial Marines RPG.
Back to top
View user's profile Send private message
crystalattice
n00b
n00b


Joined: 03 Dec 2005
Posts: 18
Location: Hawaii

PostPosted: Tue Dec 06, 2005 3:14 am    Post subject: Reply with quote

Well, today I'm back to the 404 problem. Apparently the chmod and chown changes didn't work. Should I just --unmerge apache and start over? It seems a little like swatting flies w/ a sledgehammer; I'm sure there's something easier to do. I just don't know what it is.

Thanks for your help.
_________________
Interested in creating an RPG based on the Colonial Marines from "Aliens"? Just interested in learning more about the Colonial Marines? Visit Colonial Marines RPG.
Back to top
View user's profile Send private message
crystalattice
n00b
n00b


Joined: 03 Dec 2005
Posts: 18
Location: Hawaii

PostPosted: Wed Dec 07, 2005 7:06 am    Post subject: Problem solved! Reply with quote

I found the answer at the Apache FAQ. I thought I'd looked here first but apparently it was a different section.

The pertinent info is that I needed to chmod the parent directory to give it executable privileges: sudo chmod +x /var/www/localhost. This allows the path to be searchable by the web server. Now my web server works.

Thanks for everyone's help.
_________________
Interested in creating an RPG based on the Colonial Marines from "Aliens"? Just interested in learning more about the Colonial Marines? Visit Colonial Marines RPG.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum