Wednesday, May 8, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 5098  / 2 Years ago, fri, september 9, 2022, 1:30:12

I am facing this issue on my nginx setup on ubuntu 13.10
I got these weird error on the log of my local domain



2014/04/06 21:29:37 [crit] 18065#0: *3 stat() "/media/user/Backup/Sites/sp/" failed (13: Permission denied), client: 127.0.0.1, server: sp.local, request: "GET / HTTP/1.1", host: "sp.local"
2014/04/06 21:29:37 [crit] 18065#0: *3 stat() "/media/user/Backup/Sites/sp/" failed (13: Permission denied), client: 127.0.0.1, server: sp.local, request: "GET / HTTP/1.1", host: "sp.local"
2014/04/06 21:29:37 [crit] 18065#0: *3 stat() "/media/user/Backup/Sites/sp/index.php" failed (13: Permission denied), client: 127.0.0.1, server: sp.local, request: "GET / HTTP/1.1", host: "sp.local"


this configuration was working before upgrading to this version 13.10



the permissions on this folder is : 755 & there is no log recorded on php fpm error log



I had did every idea to fix it with no luck
could you please suggest / help me , It would be appreciated

Thanks



update:




  • I am not using SElinux

  • the files are located in non encrypted drive

  • nginx is installed on encrypted drive / , is this the issue ??



Relevant mount point:



/dev/sda3 on /media/tawfek/Backup type ext4 (rw,nosuid,nodev,uhelper=udisks2)


ls -l output :



total 712
drwsr-xr-x 6 tawfek tawfek 4096 Apr 6 21:26 app
drwsr-xr-x 8 tawfek tawfek 4096 Apr 6 21:26 downloader
drwsr-xr-x 3 tawfek tawfek 4096 Apr 6 21:25 errors
drwsr-xr-x 2 tawfek tawfek 4096 Apr 6 21:26 includes
drwsr-xr-x 15 tawfek tawfek 4096 Apr 6 21:25 js
drwsr-xr-x 13 tawfek tawfek 4096 Apr 6 21:25 lib
drwsr-xr-x 13 tawfek tawfek 4096 Apr 6 21:26 media
drwsr-xr-x 3 tawfek tawfek 4096 Apr 6 21:25 nbproject
drwsr-xr-x 2 tawfek tawfek 4096 Mar 8 13:10 pear
drwsr-xr-x 2 tawfek tawfek 4096 Apr 6 21:25 pkginfo
drwsr-xr-x 2 tawfek tawfek 4096 Apr 6 21:25 shell
drwsr-xr-x 5 tawfek tawfek 4096 Apr 6 21:25 skin
drwsr-xr-x 11 tawfek tawfek 4096 Apr 6 21:25 var
-rwxr-xr-x 1 tawfek tawfek 2834 Feb 1 11:39 api.php
-rwxr-xr-x 1 tawfek tawfek 2831 Feb 1 11:39 cron.php
-rwxr-xr-x 1 tawfek tawfek 716 Mar 24 22:38 cron.sh
-rwxr-xr-x 1 tawfek tawfek 1150 Feb 1 11:39 favicon.ico
-rwxr-xr-x 1 tawfek tawfek 5979 Feb 1 11:39 get.php
-rwxr-xr-x 1 tawfek tawfek 2673 Apr 6 22:17 index.php
-rwxr-xr-x 1 tawfek tawfek 2366 Feb 1 11:39 index.php.sample
-rwxr-xr-x 1 tawfek tawfek 6441 Feb 1 11:39 install.php
-rwxr-xr-x 1 tawfek tawfek 10421 Feb 1 11:39 LICENSE_AFL.txt
-rwxr-xr-x 1 tawfek tawfek 10679 Feb 1 11:39 LICENSE.html
-rwxr-xr-x 1 tawfek tawfek 10410 Feb 1 11:39 LICENSE.txt
-rwxr-xr-x 1 tawfek tawfek 1319 Feb 1 11:39 mage
-rwxr-xr-x 1 tawfek tawfek 886 Feb 1 11:39 php.ini.sample
-rwxr-xr-x 1 tawfek tawfek 478 Feb 17 19:08 php.php
-rwxr-xr-x 1 tawfek tawfek 585086 Feb 1 11:39 RELEASE_NOTES.txt

More From » permissions

 Answers
5

After a lot of searching with no luck , I backed up my data , removed the encryption from the drive and restore my data , every thing worked as expected



please note that encryptfs was the issue , I can't give detailed / technical explanation
but that fixed it


[#26169] Saturday, September 10, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fulild

Total Points: 239
Total Questions: 103
Total Answers: 112

Location: Papua New Guinea
Member since Thu, Jul 9, 2020
4 Years ago
fulild questions
Sat, Dec 11, 21, 20:10, 2 Years ago
Thu, Jun 17, 21, 12:05, 3 Years ago
Sat, Nov 19, 22, 16:28, 2 Years ago
Sat, Feb 25, 23, 22:59, 1 Year ago
Wed, Oct 12, 22, 04:04, 2 Years ago
;