CentOS is a bit of a PITA. Because it is so secure. Try turning off SELinux
http://www.centos.org/docs/5/html/5.2/Deployment_Guide/sec-sel-enable-disable.html To test this out from the commandline: $setenforce 0 How to actually make it work WITH SELinux? I haven't figured that out yet. HTH, Tim On Mon, Oct 28, 2013 at 1:06 PM, Giovanni Allegri <gioha...@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.wsgi > > Could 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+unsubscr...@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 the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@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.