LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-15-2006, 12:30 PM   #1
j_70
LQ Newbie
 
Registered: Aug 2005
Posts: 23

Rep: Reputation: 15
Question File permissions with Apache


I have a PHP5 app on RedHat ES4 and Apache 2. The app accesses images in a /files/images/img/ directory. The /files/images/ structure is wide open with permissions at 777. The img directory and the files themselves are at 750. The images are owned by 'nobody' with the same for the group ('nobody'). I put apache in the 'nobody' group but the app still cannot read the images; I get a permission denied error in the httpd log. I am misinterpreting how permissions work with the Apache webserver and files?
 
Old 08-15-2006, 02:38 PM   #2
metalick
Member
 
Registered: Apr 2004
Location: Zagreb, Croatia
Distribution: SuSE 9.0
Posts: 44

Rep: Reputation: 15
hmmm... i am not an apache expert but i think you have to define
alias /images/ /files/images/img/

<Directory "/files/images/img">
AllowOverride None
Order allow,deny
Allow from all
</Directory>

section in your httpd.conf, if your image directory is not in the same dir where your DocumentRoot is.
and what are your /files permissions? if they are set to non readable for all except the owner and your apache user is different that the owner, then the apache user won't be able to enter that dir, if am not mistaken.
also check the permissions of your files (not only the directories).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 file permissions tntcoder Linux - Newbie 2 08-23-2005 06:50 PM
Apache and File Permissions Matir Linux - Security 6 08-13-2005 12:22 AM
File Permissions with Apache Herbalist Linux - Networking 5 06-17-2005 01:39 PM
File permissions with apache deee Linux - Newbie 3 03-31-2004 02:24 PM
Apache and File Permissions notstrider Linux - Networking 1 03-14-2003 11:44 AM

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

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