LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-14-2005, 05:28 PM   #1
daveselinger
LQ Newbie
 
Registered: Jan 2005
Posts: 1

Rep: Reputation: 0
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
 
Old 01-16-2005, 10:54 AM   #2
tisource
Member
 
Registered: Feb 2002
Posts: 322

Rep: Reputation: 30
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache, Blogs, and Which Directories to Use mowestusa Linux - Software 1 09-03-2005 08:55 PM
Apache won't show directories bleedingturnips Linux - Software 1 07-09-2005 01:13 PM
Apache directories bentman78 Linux - Software 3 04-13-2004 04:44 PM
browsing directories - apache 1.3.x Marble Linux - Networking 3 05-14-2003 06:01 PM
protect directories in apache Syncrm Linux - General 9 03-19-2002 11:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration