Hi I am a complete novice with Django, and have run into a problem getting it to run on a wamp server. I have managed to install Python v2.6.1, WampServer2, mod_wsgi, PostgreSql, psycopg2 and Django onto WindowsXP Professional SP3 in order to make a local development server.
I am able to create a Django test project and use it's inbuilt server to access the project, so I assume that Python and Django are correctly installed. The problem is when trying to serve the project from WampServer2 I get the error 403 Forbidden. --------------------------------------------- WampServer2 Components: Apache 2.2.11 PHP 5.3.0 MySQL 5.1.36 Phpmyadmin --------------------------------------------- Install locations: Python C:\Python26 Django C:\Python26\Lib\site-packages\django WampServer2 C:\imfree ---------------------------------------------- Edits to files: httpd.conf added following to top of LoadModule section: LoadModule wsgi_module modules/mod_wsgi.so uncommented: Include conf/extra/httpd-vhosts.conf ------------------------------------------------------------- httpd-vhosts.conf commented out examples and added following: <VirtualHost *:80> ServerAdmin webmas...@localhost DocumentRoot "C:/imfree/www" ServerName localhost #ServerAlias www.dummy-host.localhost ErrorLog "c:/imfree/logs/localhost.log" CustomLog "c:/imfree/logs/localhost-access.log" common </VirtualHost> <VirtualHost *:80> ServerAdmin webmas...@testproject DocumentRoot "E:/Django/testproject/apache" ServerName testproject.lc ErrorLog "c:/imfree/logs/testproject.lc-error.log" CustomLog "c:/imfree/logs/testproject.lc-access.log" common WSGIScriptAlias / /usr/local/testproject/apache/django.wsgi <Directory /usr/testproject/apache> Order allow,deny Allow from all </Directory> --------------------------------------------------------------------------- hosts file added: 127.0.0.1 testproject.lc # django test ------------------------------------------------------------------------------ created file E:/Django/testproject/apache/django.wsgi import os, sys sys.path.append('/usr/local/django') os.environ['DJANGO_SETTINGS_MODULE'] = 'testproject.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler() ------------------------------------------------------------------------------------- the logs: apache_error.log [Fri Aug 14 05:48:35 2009] [notice] Apache/2.2.11 (Win32) PHP/5.3.0 mod_wsgi/2.5 Python/2.6.1 configured -- resuming normal operations [Fri Aug 14 05:48:35 2009] [notice] Server built: Dec 10 2008 00:10:06 [Fri Aug 14 05:48:35 2009] [notice] Parent: Created child process 2924 [Fri Aug 14 05:48:35 2009] [notice] Child 2924: Child process is running [Fri Aug 14 05:48:35 2009] [notice] Child 2924: Acquired the start mutex. [Fri Aug 14 05:48:35 2009] [notice] Child 2924: Starting 64 worker threads. [Fri Aug 14 05:48:35 2009] [notice] Child 2924: Starting thread to listen on port 80. [Fri Aug 14 05:48:46 2009] [notice] Parent: Received shutdown signal -- Shutting down the server. [Fri Aug 14 05:48:46 2009] [notice] Child 2924: Exit event signaled. Child process is ending. [Fri Aug 14 05:48:47 2009] [notice] Child 2924: Released the start mutex [Fri Aug 14 05:48:48 2009] [notice] Child 2924: All worker threads have exited. [Fri Aug 14 05:48:48 2009] [notice] Child 2924: Child process is exiting [Fri Aug 14 05:48:48 2009] [notice] Parent: Child process exited successfully. [Fri Aug 14 05:48:48 2009] [notice] Apache/2.2.11 (Win32) PHP/5.3.0 mod_wsgi/2.5 Python/2.6.1 configured -- resuming normal operations [Fri Aug 14 05:48:48 2009] [notice] Server built: Dec 10 2008 00:10:06 [Fri Aug 14 05:48:48 2009] [notice] Parent: Created child process 1124 [Fri Aug 14 05:48:49 2009] [notice] Child 1124: Child process is running [Fri Aug 14 05:48:49 2009] [notice] Child 1124: Acquired the start mutex. [Fri Aug 14 05:48:49 2009] [notice] Child 1124: Starting 64 worker threads. [Fri Aug 14 05:48:49 2009] [notice] Child 1124: Starting thread to listen on port 80. access.log is empty testproject.lc-error.log [Fri Aug 14 05:51:14 2009] [error] [client 127.0.0.1] client denied by server configuration: C:/usr testproject.lc-access.log 127.0.0.1 - - [14/Aug/2009:05:51:14 +0100] "GET / HTTP/1.1" 403 202 ------------------------------------------------------------------------------------------------------------ I hope this is enough info for someone to spot what I am doing wrong as I have a project that I would like to develop with django. Thank you for your time. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---