logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Coding & Scripting Corner View previous topic :: View next topic
Reply to topic   Topic: Permission denied in file read from /var/tmp folder
Author
snehu



Joined: 16 Sep 2014
Posts: 3
Location: India

PostPosted: Tue 16 Sep '14 16:10    Post subject: Permission denied in file read from /var/tmp folder Reply with quote

Hi, I am developing web server using apache. I am using php for coding. Web server is not able to read the .ini/.txt file from /var/tmp folder if it is created by another user and not apache. If the file is in /var/www/html folder then web server is able to read but not able to update whatever its owner is. If try to read from /tmp folder it gives error as Permission denied:failed to open stream.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7288
Location: Germany, Next to Hamburg

PostPosted: Tue 16 Sep '14 19:04    Post subject: Reply with quote

Can't you adjust the file permissions? Or the user that creates those files? Mad
Back to top
snehu



Joined: 16 Sep 2014
Posts: 3
Location: India

PostPosted: Wed 17 Sep '14 7:23    Post subject: Reply with quote

I have tried giving 777 permission to file, its folder. Tried changing file and group owner to apache. Still it is giving the same error
Back to top
web070



Joined: 26 Aug 2014
Posts: 2
Location: Netherlands, Den Hague

PostPosted: Wed 17 Sep '14 8:06    Post subject: Reply with quote

Try disabling SElinux or set it to permissive mode.
Back to top
snehu



Joined: 16 Sep 2014
Posts: 3
Location: India

PostPosted: Wed 17 Sep '14 9:29    Post subject: Reply with quote

Disabled. but still not working Sad Sad
Back to top


Reply to topic   Topic: Permission denied in file read from /var/tmp folder View previous topic :: View next topic
Post new topic   Forum Index -> Coding & Scripting Corner