Im trying to get Python working in Apache. Im new to Python altogether (coming from PHP). I ran through the articles on Linode but something still inst right.
My vhost file looks like:
Code:
<VirtualHost 66.228.41.252:80>
ServerAdmin richtestani@mac.com
ServerName friendflix.me
ServerAlias www.friendflix.me
DocumentRoot "/srv/www/friendflix.me/public_html/"
ErrorLog /srv/www/friendflix.me/logs/error.log
CustomLog /srv/www/friendflix.me/logs/access.log combined
<Location "/friendflix">
SetHandler python-program
PythonHandler django.core.handlers.modpython
PythonOption django.root /friendflix.me
PythonPath "['/srv/www/friendflix.me/public_html/', '/srv/www'] + sys.path"
SetEnv DJANGO_SETTINGS_MODULE friendflix.settings
PythonDebug On
</Location>
</VirtualHost>
I have a file at friendflix.me/index.py
The code is simply spit out like a regular text file - no interpreting done.
Is there something I am missing? I installed mod_python and mod_wsgi but maybe they arent enabled?
ny help here would be awesome.
Thanks
Rich