LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-23-2005, 04:10 PM   #1
Akujin
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Rep: Reputation: 0
Apache problem with displaying compression/archive files.


I'm having a problem viewing compression (.zip, .tar, .tar.gz ... ) files on my apache server. Any time I attempt, or a user attempts, to view such a file they're redirected to a file permission error page:

Quote:
Forbidden

You don't have permission to access /some_zip_file.zip on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.52 (Fedora) Server at akujin.com Port 80
The zip files are all set up with the correct permissions for viewing.

I've searched through the conf files, and tried finding a solution on the apache site and various search engines with no avail.

Anyone know how to solve for this?
 
Old 01-24-2005, 12:39 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
What are the permissions on the files and the directory they are in?
ls -la /path/to/dir
 
Old 02-06-2005, 12:41 PM   #3
Akujin
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Original Poster
Rep: Reputation: 0
I've tried every combination of permissions, i'm positive that isn't the problem. I've even tried changing the owner of Apache.
 
Old 03-09-2005, 12:22 AM   #4
dlaudams
LQ Newbie
 
Registered: May 2004
Posts: 4

Rep: Reputation: 0
SELinux may be causing the permission problems.

Do you happen have SELinux installed? Are you using Fedora Cora 3 or a 2.6 kernel?

See this for how to disable SELinux: http://www.apache-httpd.com/msg/14530.html

Or see this for how to configure SELinux for your setup: http://www.nsa.gov/selinux/papers/policy2/t1.html

Daniel.
 
Old 03-09-2005, 02:18 AM   #5
dlaudams
LQ Newbie
 
Registered: May 2004
Posts: 4

Rep: Reputation: 0
To keep using SELinux, try running this:
chcon -R -t httpd_sys_content_t some_zip_file.zip

SELinux should give better security for webservers and the like. Why couldn't apache just say it was a SELinux permissioning problem...?

Daniel
 
  


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
Compression Utilities for Large Multimedia Files johnewing Linux - General 3 10-29-2005 07:30 AM
Simple bash problem - checking for files and displaying the first line morrolan Programming 4 03-07-2005 10:40 AM
apache not displaying images tlgates Linux - Networking 0 01-24-2005 03:06 PM
What Are archive.zip files? kajensen Linux - General 1 09-21-2003 04:00 AM
Moving files into an archive gkep Linux - Newbie 2 07-27-2003 09:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:46 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