Re: Apache Perms for Django

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I would take a look at:

https://cwiki.apache.org/confluence/display/httpd/13PermissionDenied

On Mon, Sep 4, 2023 at 2:01 AM Ahmad Bilal <ssabs@xxxxxxxxxxxxxx.invalid> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

I am in the final stage of Django deployment on Apache+mod_wsgi
however I keep getting `403 Forbidden` error when I go to `127.0.0.1`
my apache log says this:

[core:error] [pid 7092:tid 7264] (13)Permission denied: [client 127.0.0.1:57598] AH00035: access to / denied (filesystem path '/home/djangouser/djangoprojects') because search permissions are missing on a component of the path

I have already given 755 permission on each folder and 644 permissions to files
11:27
I made the wsgi.py file as 755 as well
Someone mentioned that maybe Apache is not being able to access the file
mod_wsgi is running in daemon mode .. as djangouser (second non-priviledged linux user)
just following the documentation.. on both Django and Apache+mod_wsgi
This is my custom apache config file
https://paste.pythondiscord.com/55JQ (edited) 
11:28
somebody told me.. that Apache should be made group owner of the top-most folder.. But I am not sure if that is a good idea


Sent with Proton Mail secure email.
-----BEGIN PGP SIGNATURE-----
Version: ProtonMail

wsBzBAEBCAAnBYJk9XJ5CZD3irc5ItUgGhYhBDkFTpuTInATMeXMGveKtzki
1SAaAACk/gf/QaUTDvWw30t5kLrNZ7PcwDQqQT0s7rLLuUqsC3VGhmLAyqy6
N7poU0xfhyuMC57KtTDA7R9zUIzCtnV5ZLfgLXT6Y37NS8DuRlyWQVkkQka5
90OBvOxRLcM97Ztinvv4pUoGqqS8h5lUb/GifezJv/3S2sDH6gOXnNPd7BIA
kjnZJzmF7tEewWPu37jVM1Qh6YHOJ1UfnAtzyE9nt+h9IufsP80OQyam2R4a
fLfvqAep6k5mpG2rs2wijl3F8R7rS3B8JDaQ8jHlO9vBELJzE5eIDr9oP13Z
oLn9BNhNbBpM+4HmpAUnyxhhH32VRCvLbeAELRsDVlXCENJBhPwF+g==
=J/3D
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux