Hi Timothy,
I'm on a managed server, so I cannot do system changes that would require reboot.
Anyway, setenforce says that SELinux is disabled (even setenforce 1).
Do you think it is SELinux to block Python module loading?
If I activate my virtualenv from shell I can load Django.
giovanni
2013/10/28 Timothy W. Cook <tim@mlhim.org>
--CentOS is a bit of a PITA. Because it is so secure. Try turning off SELinuxTo test this out from the commandline:$setenforce 0How to actually make it work WITH SELinux? I haven't figured that out yet.
HTH,TimOn Mon, Oct 28, 2013 at 1:06 PM, Giovanni Allegri <giohappy@gmail.com> wrote:
I'm getting mad with this error.--I've setup Apache and wsgi configuration as usual, but this time I'm on CentOS instead of Debian, and I don't know it very well.Anyway, I tried all the ways to give mod_wsgi the chance to peak from my virtualenv libraries, both setting them with python-path argument to WSGIScriptAlias, and using site.addsitedir in my wsgi module.Printing sys.path gives me all the possible folders:['/var/www/vhosts/vzqn-znxs.accessdomain.com/httpdocs/imn', '/home/giohappy/.virtualenvs/django/lib64/python2.6', '/home/giohappy/.virtualenvs/django/lib64/python2.6/site-packages', '/usr/lib/python2.6/site-packages/distribute-0.6.49-py2.6.egg', '/usr/lib/python2.6/site-packages/pip-1.4.1-py2.6.egg', '/usr/lib64/python26.zip', '/usr/lib64/python2.6', '/usr/lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk', '/usr/lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload', '/usr/lib64/python2.6/site-packages', '/usr/lib/python2.6/site-packages', '/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info', '/var/www/vhosts/vzqn-znxs.accessdomain.com/httpdocs/imn', '/home/giohappy/.virtualenvs/django/lib/python2.6/site-packages']
but still I get ImportError: No module named django.core.wsgiCould you help to sort it out?giovanni
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/00266e62-34b1-49d8-a981-761c374568a9%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
MLHIM VIP Signup: http://goo.gl/22B0U
============================================
Timothy Cook, MSc +55 21 94711995
MLHIM http://www.mlhim.org
Like Us on FB: https://www.facebook.com/mlhim2
Circle us on G+: http://goo.gl/44EV5
Google Scholar: http://goo.gl/MMZ1o
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/lhTc7rZgoIs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2B%3DOU3WBswduqcraq0W52nZ2JFwWAdzJ5rRQpPTwJ%2BCpYucxgg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
Giovanni Allegri
http://about.me/giovanniallegri
blog: http://blog.spaziogis.it
GEO+ geomatica in Italia http://bit.ly/GEOplus
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAB4g1%3DwHN_bHZg_s9PXKPrG%3DbcN-qmea9TTfLu-nP1xY%3Dq_89Q%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment