View previous topic :: View next topic |
Author |
Message |
crystalattice n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/180302507243922a1adb1bf.gif)
Joined: 03 Dec 2005 Posts: 18 Location: Hawaii
|
Posted: Sun Dec 04, 2005 3:49 am Post subject: [Solved] New Apache2 install - "Requested URL not found |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
texas1emt Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/112421156141919dbd894d5.jpg)
Joined: 27 Oct 2003 Posts: 352 Location: San Antonio, TX
|
Posted: Sun Dec 04, 2005 10:51 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
crystalattice n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/180302507243922a1adb1bf.gif)
Joined: 03 Dec 2005 Posts: 18 Location: Hawaii
|
Posted: Sun Dec 04, 2005 10:15 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
crystalattice n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/180302507243922a1adb1bf.gif)
Joined: 03 Dec 2005 Posts: 18 Location: Hawaii
|
Posted: Tue Dec 06, 2005 3:14 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
crystalattice n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/180302507243922a1adb1bf.gif)
Joined: 03 Dec 2005 Posts: 18 Location: Hawaii
|
Posted: Wed Dec 07, 2005 7:06 am Post subject: Problem solved! |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|