Author |
|
snehu
Joined: 16 Sep 2014 Posts: 3 Location: India
|
Posted: Tue 16 Sep '14 16:10 Post subject: Permission denied in file read from /var/tmp folder |
|
|
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: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 16 Sep '14 19:04 Post subject: |
|
|
Can't you adjust the file permissions? Or the user that creates those files? |
|
Back to top |
|
snehu
Joined: 16 Sep 2014 Posts: 3 Location: India
|
Posted: Wed 17 Sep '14 7:23 Post subject: |
|
|
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
|
Posted: Wed 17 Sep '14 8:06 Post subject: |
|
|
Try disabling SElinux or set it to permissive mode. |
|
Back to top |
|
snehu
Joined: 16 Sep 2014 Posts: 3 Location: India
|
Posted: Wed 17 Sep '14 9:29 Post subject: |
|
|
Disabled. but still not working |
|
Back to top |
|