D
D
Dmitry2015-10-28 13:10:16
Django
Dmitry, 2015-10-28 13:10:16

Why is apache giving 403?

I've been working with Debian for a long time, no problems with django, etc. no - actually that's why I preferred debian, not ubuntu. But a week ago I thought about comfort and decided to transfer from windows to ubuntu, since it is not very convenient to work with VM.
Unfortunately, it was not possible to set up a django project on ubuntu 14.04 LTC.
Tell me who can, what's the problem?
Apache configuration:

<VirtualHost *:80>
    ServerName			127.0.0.1
    ErrorLog			/home/dmitriy/lm_env/lm/logs/apache_error.log
    CustomLog			/home/dmitriy/lm_env/lm/logs/apache_acces.log common

    WSGIDaemonProcess	lm python-path=/home/dmitriy/lm_env/lm:/home/dmitriy/lm_env/lib/python2.7/site-packages
    WSGIProcessGroup	lm
    WSGIScriptAlias /	/home/dmitriy/lm_env/lm/deploy/wsgi.py

    <Directory /home/dmitriy/lm_env/lm/deploy>
        Order deny,allow
        Allow from all
    </Directory>
</VirtualHost>

Apahce log:
[Wed Oct 28 18:06:52.636897 2015] [core:error] [pid 10083:tid 140079477548800] (13)Permission denied: [client 127.0.0.1:59143] AH00035: access to /admin denied (filesystem path '/home/dmitriy/lm_env') because search permissions are missing on a component of the path
[Wed Oct 28 18:06:52.653362 2015] [core:error] [pid 10083:tid 140079485941504] (13)Permission denied: [ client 127.0.0.1:59143] AH00035: access to /favicon.ico denied (filesystem path '/home/dmitriy/lm_env') because search permissions are missing on a component of the path, referer: 127.0.0.1/admin
import os, sys, site

site.addsitedir("/home/dmitriy/lm_env/lib/python2.7/site-packages")
os.environ["DJANGO_SETTINGS_MODULE"] = "lm.settings"
sys.path.append("/home/dmitriy/lm_env/lm")
sys.path.append("/home/dmitriy/lm_env/lm/lm")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vlad Zhivotnev, 2015-10-28
@inkvizitor68sl

<Directory /home/dmitriy/lm_env/lm/deploy>
        Order deny,allow
        Allow from all
    </Directory>

Apparently, /lm/deploy is superfluous here.

D
Dmitry, 2015-10-28
@pyHammer

Issue resolved. Reinstalled apache and created a project in /opt all as root user.
Everything worked. Inexperience takes over

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question