mod_wsgi is in the base repositories. You can just run yum install mod_wsgi
However, if you have been playing around installing Python from source, then it may well be that you have screwed up the Python environment. In that case, your best bet will be to reinstall the VPS from scratch and run yum install mod_wsgi
.
Assuming you have deployed your Django project in /var/www/djangoproject
you will have a tree something like:
/var/www/djangoproject/
├── manage.py
├── djangoapp
│ ├── __init__.py
│ ├── models.py
│ ├── tests.py
│ └── views.py
└── djangoproject
├── __init__.py
├── __init__.pyc
├── settings.py
├── settings.pyc
├── urls.py
└── wsgi.py
Which will require an Apache conf (/etc/httpd/conf.d/djangoproject.conf
) something like:
#WSGIPythonPath /var/www/djangoproject/djangoproject
<VirtualHost *>
ServerAdmin webmaster@example.com
WSGIScriptAlias / /var/www/djangoproject/djangoproject/wsgi.py
WSGIDaemonProcess myproj user=apache threads=3
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
DocumentRoot /tmp
ServerName www.example.com
ErrorLog /var/log/httpd/djangoproject_error_log
CustomLog /var/log/httpd/djangoproject_access_log combined
</VirtualHost>