On 21 January 2011 08:48, cocobuster <[email protected]> wrote: > I am still in the process of making it worked, > > Here is what I have done up to now: > 1- I moved my code as you suggested to /Users/username/www/webapps/mysite. > 2- I got a permission denied so I had to update username.conf file to add > something like: > <Directory "/Users/corinemorin/www/">
Yes, changing location would require Directory directive path to be changed. I would still recommend the WSGI script file be in an 'apache' subdirectory of your Django and site and make the path in the Directory directive specific to that directory. By using a parent directory you have technically made Apache slightly less secure albeit that would only be a problem if you stuff up Apache configuration and somehow map a URL to the parent directory somehow. > Options Indexes MultiViews > AllowOverride None The above two lines should be required. > Order allow,deny > Allow from all > </Directory> > 3- I had to update my dir permissions > 4- Then I got a apache log error (/var/log/apache2/error_log): > so I followed your link: > http://groups.google.com/group/django-users/browse_thread/thread/78a620fe9e2d5a9a > > The error was: Target WSGI script not found or unable to stat: > /Users/corinemorin/www/webapps/mysite/apache/django.wsgi > > Somehow my django.wsgi file was present in the folder but not accessible, I > really dont understand why, but what I did was to > create a new one and copy pasted the same code... which strangely worked... Probably file permissions. As I believe I might have mentioned before to you watch: http://code.google.com/p/modwsgi/wiki/WhereToGetHelp?tm=6#Conference_Presentations It goes through the various permutations of permission problems. Graham > I finally got a http://127.0.0.1/mysite working on my mac, thanks to your > useful help!!! > > This code was just a test for me, I will now try it with a more substantial > project. > > big thanks, > Corine > > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/modwsgi?hl=en. > -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
