LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   HELP: Apache not recognizing new directories (https://www.linuxquestions.org/questions/linux-software-2/help-apache-not-recognizing-new-directories-277870/)

daveselinger 01-14-2005 05:28 PM

HELP: Apache not recognizing new directories
 
I've been having some weirdness with my Apache install which suggests that I'm a newbie, but I've done this before without these results.

I'm running Fedora Core 3 with two ext3 filesystems
/ -- (ATA 120 GB)--which holds /var/www/html
and
/data -- (i20 Adaptec RAID 1 drive using 2 ATA 120 GB's)

I have Apache installed as a service using the standard setup. /var/www/html is the DocumentRoot.

If I try to change the document root to be on /data/inet, a query to the server from localhost or another machine returns "access denied". No files or directories are available. I've verified that the permissions allow read and execute from everyone. I've even tried a chmod 777. I've also tried changing the owner to various users (individuals and root) to no avail.

If, instead, I create a directory in /data called "inet" and I use an alias:

Alias /docs/ "/data/inet"

<Directory>
... (same options as icons)
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

-----------------------
I also get the "access denied" message.

Now, the real weirdness. I've got a bunch of files in /data/inet I want to share, so I do an mv:
sudo mv /data/inet /var/www/html
and now when I go to check the index listing on the web server, inet doesn't even show up! So, now I create a new directory "sudo mkdir /var/www/html/docs", and this shows up on the index listing. If I move any of the directories from /var/www/html/inet into the docs directory using "mv", they don't show up. However, if I copy any of the directories (cp -r) or create new directories, they show up.

I've confirmed (only using chmod and ls -la) that these directories appear identical. I've even done a "chmod -R 777 inet" and they *still* don't appear.

I have a feeling I'm overlooking something very simple, because this seems like such a basic use case...

Thanks,
Selly

tisource 01-16-2005 10:54 AM

Out of curiousity, if you 'su apache' (assuming apache runs as the user 'apache') can you view these suspect folders/files (the ones that won't display correctly)?

I'm not sure what the problem is, but that would tell you if its an apache issue, or a filesystem issue.


All times are GMT -5. The time now is 03:43 PM.