Re: Django apache mod_wsgi permission denied

2012-12-16 Thread Phang Mulianto
THank for the config , i do able to run the apache22 with mod_wsgi + python
2.7 in windows server.



On Sun, Dec 2, 2012 at 3:03 PM, Loai Ghoraba  wrote:

> Thanks a million for the tip :)
>
>
> On Sun, Dec 2, 2012 at 5:08 AM, Chris Cogdon  wrote:
>
>>
>>
>> On Saturday, December 1, 2012 3:47:39 AM UTC-8, Loai Ghoraba wrote:
>>>
>>> no I mean the root of my project guys :) thanks a lot :D which lives in
>>> path/to/my/project :)
>>>
>>
>> Oh thank god for that!
>>
>> I'd actually done something similiar once... I'd removed a bunch of
>> permissions using chmod -R /   rather than chmod -R . ... This was on an
>> oldold NCR Tower 32 running SVR3. I ended up writing a program to go
>> through the archives on tape (yes, tape) and copy only the permission bits
>> from all the tape files.
>>
>> Anyway, a better form of that command is chmod -R a+rX
>>
>> The capital X means "only set the execute bit if any execute bits are
>> set". If you use lower-case x, then you'll send up setting the execute bit
>> for normal files, too, which is another potential security risk. If you
>> want to fix this up, do:
>>
>> find . -type f -print0 | xargs -0 chmod a-x
>> chmod a+x manage.py # Restore x for the Django management command
>>
>> Protip: always use the -print0 | xargs -0  form of the "find/xargs"
>> pattern, as this will prevent spaces in your paths from causing havoc.
>>
>> I wish I knew of a better way to set the x bits all the way up the tree,
>> without giving someone a program to run, the best I can come up with is:
>>
>> cd static
>> chmod a+x . .. ../.. ../../.. ../../../.. ../../../../..
>> ../../../../../.. ../../../../../../..
>>
>> and hope that's enough :)
>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/django-users/-/_8jpEFytyesJ.
>>
>> 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.
>>
>
>  --
> 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.
>

-- 
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.



Re: Django apache mod_wsgi permission denied

2012-12-01 Thread Loai Ghoraba
Thanks a million for the tip :)

On Sun, Dec 2, 2012 at 5:08 AM, Chris Cogdon  wrote:

>
>
> On Saturday, December 1, 2012 3:47:39 AM UTC-8, Loai Ghoraba wrote:
>>
>> no I mean the root of my project guys :) thanks a lot :D which lives in
>> path/to/my/project :)
>>
>
> Oh thank god for that!
>
> I'd actually done something similiar once... I'd removed a bunch of
> permissions using chmod -R /   rather than chmod -R . ... This was on an
> oldold NCR Tower 32 running SVR3. I ended up writing a program to go
> through the archives on tape (yes, tape) and copy only the permission bits
> from all the tape files.
>
> Anyway, a better form of that command is chmod -R a+rX
>
> The capital X means "only set the execute bit if any execute bits are
> set". If you use lower-case x, then you'll send up setting the execute bit
> for normal files, too, which is another potential security risk. If you
> want to fix this up, do:
>
> find . -type f -print0 | xargs -0 chmod a-x
> chmod a+x manage.py # Restore x for the Django management command
>
> Protip: always use the -print0 | xargs -0  form of the "find/xargs"
> pattern, as this will prevent spaces in your paths from causing havoc.
>
> I wish I knew of a better way to set the x bits all the way up the tree,
> without giving someone a program to run, the best I can come up with is:
>
> cd static
> chmod a+x . .. ../.. ../../.. ../../../.. ../../../../.. ../../../../../..
> ../../../../../../..
>
> and hope that's enough :)
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/_8jpEFytyesJ.
>
> 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.
>

-- 
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.



Re: Django apache mod_wsgi permission denied

2012-12-01 Thread Chris Cogdon


On Saturday, December 1, 2012 3:47:39 AM UTC-8, Loai Ghoraba wrote:
>
> no I mean the root of my project guys :) thanks a lot :D which lives in 
> path/to/my/project :)
>

Oh thank god for that!

I'd actually done something similiar once... I'd removed a bunch of 
permissions using chmod -R /   rather than chmod -R . ... This was on an 
oldold NCR Tower 32 running SVR3. I ended up writing a program to go 
through the archives on tape (yes, tape) and copy only the permission bits 
from all the tape files.

Anyway, a better form of that command is chmod -R a+rX

The capital X means "only set the execute bit if any execute bits are set". 
If you use lower-case x, then you'll send up setting the execute bit for 
normal files, too, which is another potential security risk. If you want to 
fix this up, do:

find . -type f -print0 | xargs -0 chmod a-x
chmod a+x manage.py # Restore x for the Django management command

Protip: always use the -print0 | xargs -0  form of the "find/xargs" 
pattern, as this will prevent spaces in your paths from causing havoc.

I wish I knew of a better way to set the x bits all the way up the tree, 
without giving someone a program to run, the best I can come up with is:

cd static
chmod a+x . .. ../.. ../../.. ../../../.. ../../../../.. ../../../../../.. 
../../../../../../..

and hope that's enough :)


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/_8jpEFytyesJ.
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.



Re: Django apache mod_wsgi permission denied

2012-12-01 Thread Loai Ghoraba
no I mean the root of my project guys :) thanks a lot :D which lives in
path/to/my/project :)

On Sat, Dec 1, 2012 at 11:42 AM, Timothy Makobu  wrote:

> Root directory??? As in / ? Nooo nonono
>
>
> On Sat, Dec 1, 2012 at 12:14 PM, Chris Cogdon  wrote:
>
>>
>>
>> On Friday, November 30, 2012 8:53:42 PM UTC-8, Mike Dewhirst wrote:
>>>
>>> On 1/12/2012 3:48pm, Loai Ghoraba wrote:
>>> > I have ran chmod o+rx on the root directory, isn't this enough (isn't
>>> > chmod applied to all folders down recursively ?) ?
>>>
>>> No. You need chmod -R o+rx
>>>
>>
>> Oh hell no, don't do that... that will impact the ENTIRE FILESYSTEM
>>
>>
>>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/django-users/-/cB-WWrnMMP8J.
>>
>> 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.
>>
>
>  --
> 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.
>

-- 
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.



Re: Django apache mod_wsgi permission denied

2012-12-01 Thread Timothy Makobu
Root directory??? As in / ? Nooo nonono


On Sat, Dec 1, 2012 at 12:14 PM, Chris Cogdon  wrote:

>
>
> On Friday, November 30, 2012 8:53:42 PM UTC-8, Mike Dewhirst wrote:
>>
>> On 1/12/2012 3:48pm, Loai Ghoraba wrote:
>> > I have ran chmod o+rx on the root directory, isn't this enough (isn't
>> > chmod applied to all folders down recursively ?) ?
>>
>> No. You need chmod -R o+rx
>>
>
> Oh hell no, don't do that... that will impact the ENTIRE FILESYSTEM
>
>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/cB-WWrnMMP8J.
>
> 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.
>

-- 
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.



Re: Django apache mod_wsgi permission denied

2012-12-01 Thread Chris Cogdon


On Friday, November 30, 2012 8:53:42 PM UTC-8, Mike Dewhirst wrote:
>
> On 1/12/2012 3:48pm, Loai Ghoraba wrote: 
> > I have ran chmod o+rx on the root directory, isn't this enough (isn't 
> > chmod applied to all folders down recursively ?) ? 
>
> No. You need chmod -R o+rx
>

Oh hell no, don't do that... that will impact the ENTIRE FILESYSTEM


>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/cB-WWrnMMP8J.
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.



Re: Django apache mod_wsgi permission denied

2012-11-30 Thread Loai Ghoraba
okay it works now, I was just missing a trailing slash at
Alias /static/ /home/loai/workspace/Faculty/Faculty/static/

On Sat, Dec 1, 2012 at 8:17 AM, Loai Ghoraba  wrote:

> a strange thing is that when I remove the   directive so it
> becomes:
>
> 
> Order deny,allow
> Allow from all
> 
>
> instead of
>
> 
> 
> Order deny,allow
> Allow from all
> 
> 
>
> then trying to access any static or media file raises (not found) instead
> of permission denied !
>
> On Sat, Dec 1, 2012 at 7:42 AM, Loai Ghoraba  wrote:
>
>> thanks, but still I can't find what's wrong with the permission
>> thing. The html pages are loaded without static content, no css or js or
>> whatever, neither the media is accessible.
>>
>>
>>
>> On Sat, Dec 1, 2012 at 7:15 AM, Mike Dewhirst wrote:
>>
>>> On 1/12/2012 3:57pm, Loai Ghoraba wrote:
>>>
 thanks, but I have tried this now and it also doesn't work :X though the
 author slides presentation mentioned chmod o+rx on the root dir only.

 On Sat, Dec 1, 2012 at 6:53 AM, Mike Dewhirst >>> **> wrote:

 chmod -R o+rx

>>>
>>> Here is my working apache2 conf for project "proj" on site mydomain.com.
>>> It is running happily on Ubuntu 12.04 with permissions on all /var/www/proj
>>> directories and files rwxrwx---
>>>
>>> This is because I need users in the group to have access but no-one from
>>> outside. Apache is the owner.
>>>
>>> Good luck
>>>
>>> Mike
>>>
>>> # proj ##**###
>>>
>>> 
>>>
>>>  # proj resolves to lenny 109
>>>  DocumentRoot /var/www/proj/htdocs/
>>>  ServerName proj.mydomain.com
>>>  ServerAdmin webmas...@mydomain.com
>>>
>>>  HostnameLookups Off
>>>  UseCanonicalName Off
>>>
>>>  ErrorLog ${APACHE_LOG_DIR}/proj-error.**log
>>>  CustomLog ${APACHE_LOG_DIR}/proj-access.**log combined
>>>
>>>  Alias /robots.txt /var/www/static/proj/robots/**robots.txt
>>>  Alias /favicon.ico /var/www/static/proj/img/proj.**ico
>>>
>>>  # lock the public out
>>>  
>>>   AllowOverride None
>>>   Order deny,allow
>>>   Deny from all
>>>  
>>>
>>>  # serve uploaded media from here
>>>  
>>>   AllowOverride None
>>>
>>>   Order deny,allow
>>>   Allow from all
>>>  
>>>
>>>  # serve static stuff from here
>>>  
>>>   AllowOverride None
>>>
>>>   Order deny,allow
>>>   Allow from all
>>>  
>>>
>>>  
>>>   Alias /media/ /var/www/media/proj/
>>>   Alias /static/ /var/www/static/proj/
>>>   Alias /tiny_mce/ /var/www/static/proj/js/tiny_**mce/
>>>   Alias /jquery/ /var/www/static/proj/js/**jquery/
>>>  
>>>
>>>  
>>>WSGIScriptAlias / /var/www/proj/proj/proj.wsgi
>>>
>>>
>>>  Order deny,allow
>>>  Allow from all
>>>
>>>  
>>>
>>> 
>>>
>>>
>>>
>>>
>>>
>>>
>>>

 --
 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+unsubscribe@**googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/**group/django-users?hl=en
 .

>>>
>>> --
>>> 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+unsubscribe@*
>>> *googlegroups.com .
>>> For more options, visit this group at http://groups.google.com/**
>>> group/django-users?hl=en
>>> .
>>>
>>>
>>
>

-- 
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.



Re: Django apache mod_wsgi permission denied

2012-11-30 Thread Loai Ghoraba
a strange thing is that when I remove the   directive so it
becomes:


Order deny,allow
Allow from all


instead of



Order deny,allow
Allow from all



then trying to access any static or media file raises (not found) instead
of permission denied !

On Sat, Dec 1, 2012 at 7:42 AM, Loai Ghoraba  wrote:

> thanks, but still I can't find what's wrong with the permission thing. The
> html pages are loaded without static content, no css or js or whatever,
> neither the media is accessible.
>
>
>
> On Sat, Dec 1, 2012 at 7:15 AM, Mike Dewhirst wrote:
>
>> On 1/12/2012 3:57pm, Loai Ghoraba wrote:
>>
>>> thanks, but I have tried this now and it also doesn't work :X though the
>>> author slides presentation mentioned chmod o+rx on the root dir only.
>>>
>>> On Sat, Dec 1, 2012 at 6:53 AM, Mike Dewhirst >> **> wrote:
>>>
>>> chmod -R o+rx
>>>
>>
>> Here is my working apache2 conf for project "proj" on site mydomain.com.
>> It is running happily on Ubuntu 12.04 with permissions on all /var/www/proj
>> directories and files rwxrwx---
>>
>> This is because I need users in the group to have access but no-one from
>> outside. Apache is the owner.
>>
>> Good luck
>>
>> Mike
>>
>> # proj ##**###
>>
>> 
>>
>>  # proj resolves to lenny 109
>>  DocumentRoot /var/www/proj/htdocs/
>>  ServerName proj.mydomain.com
>>  ServerAdmin webmas...@mydomain.com
>>
>>  HostnameLookups Off
>>  UseCanonicalName Off
>>
>>  ErrorLog ${APACHE_LOG_DIR}/proj-error.**log
>>  CustomLog ${APACHE_LOG_DIR}/proj-access.**log combined
>>
>>  Alias /robots.txt /var/www/static/proj/robots/**robots.txt
>>  Alias /favicon.ico /var/www/static/proj/img/proj.**ico
>>
>>  # lock the public out
>>  
>>   AllowOverride None
>>   Order deny,allow
>>   Deny from all
>>  
>>
>>  # serve uploaded media from here
>>  
>>   AllowOverride None
>>
>>   Order deny,allow
>>   Allow from all
>>  
>>
>>  # serve static stuff from here
>>  
>>   AllowOverride None
>>
>>   Order deny,allow
>>   Allow from all
>>  
>>
>>  
>>   Alias /media/ /var/www/media/proj/
>>   Alias /static/ /var/www/static/proj/
>>   Alias /tiny_mce/ /var/www/static/proj/js/tiny_**mce/
>>   Alias /jquery/ /var/www/static/proj/js/**jquery/
>>  
>>
>>  
>>WSGIScriptAlias / /var/www/proj/proj/proj.wsgi
>>
>>
>>  Order deny,allow
>>  Allow from all
>>
>>  
>>
>> 
>>
>>
>>
>>
>>
>>
>>
>>>
>>> --
>>> 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+unsubscribe@**googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/**group/django-users?hl=en
>>> .
>>>
>>
>> --
>> 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+unsubscribe@**
>> googlegroups.com .
>> For more options, visit this group at http://groups.google.com/**
>> group/django-users?hl=en
>> .
>>
>>
>

-- 
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.



Re: Django apache mod_wsgi permission denied

2012-11-30 Thread Loai Ghoraba
thanks, but still I can't find what's wrong with the permission thing. The
html pages are loaded without static content, no css or js or whatever,
neither the media is accessible.


On Sat, Dec 1, 2012 at 7:15 AM, Mike Dewhirst  wrote:

> On 1/12/2012 3:57pm, Loai Ghoraba wrote:
>
>> thanks, but I have tried this now and it also doesn't work :X though the
>> author slides presentation mentioned chmod o+rx on the root dir only.
>>
>> On Sat, Dec 1, 2012 at 6:53 AM, Mike Dewhirst > **> wrote:
>>
>> chmod -R o+rx
>>
>
> Here is my working apache2 conf for project "proj" on site mydomain.com.
> It is running happily on Ubuntu 12.04 with permissions on all /var/www/proj
> directories and files rwxrwx---
>
> This is because I need users in the group to have access but no-one from
> outside. Apache is the owner.
>
> Good luck
>
> Mike
>
> # proj ##**###
>
> 
>
>  # proj resolves to lenny 109
>  DocumentRoot /var/www/proj/htdocs/
>  ServerName proj.mydomain.com
>  ServerAdmin webmas...@mydomain.com
>
>  HostnameLookups Off
>  UseCanonicalName Off
>
>  ErrorLog ${APACHE_LOG_DIR}/proj-error.**log
>  CustomLog ${APACHE_LOG_DIR}/proj-access.**log combined
>
>  Alias /robots.txt /var/www/static/proj/robots/**robots.txt
>  Alias /favicon.ico /var/www/static/proj/img/proj.**ico
>
>  # lock the public out
>  
>   AllowOverride None
>   Order deny,allow
>   Deny from all
>  
>
>  # serve uploaded media from here
>  
>   AllowOverride None
>
>   Order deny,allow
>   Allow from all
>  
>
>  # serve static stuff from here
>  
>   AllowOverride None
>
>   Order deny,allow
>   Allow from all
>  
>
>  
>   Alias /media/ /var/www/media/proj/
>   Alias /static/ /var/www/static/proj/
>   Alias /tiny_mce/ /var/www/static/proj/js/tiny_**mce/
>   Alias /jquery/ /var/www/static/proj/js/**jquery/
>  
>
>  
>WSGIScriptAlias / /var/www/proj/proj/proj.wsgi
>
>
>  Order deny,allow
>  Allow from all
>
>  
>
> 
>
>
>
>
>
>
>
>>
>> --
>> 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+unsubscribe@**googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/**group/django-users?hl=en
>> .
>>
>
> --
> 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+unsubscribe@**
> googlegroups.com .
> For more options, visit this group at http://groups.google.com/**
> group/django-users?hl=en
> .
>
>

-- 
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.



Re: Django apache mod_wsgi permission denied

2012-11-30 Thread Mike Dewhirst

On 1/12/2012 3:57pm, Loai Ghoraba wrote:

thanks, but I have tried this now and it also doesn't work :X though the
author slides presentation mentioned chmod o+rx on the root dir only.

On Sat, Dec 1, 2012 at 6:53 AM, Mike Dewhirst mailto:mi...@dewhirst.com.au>> wrote:

chmod -R o+rx


Here is my working apache2 conf for project "proj" on site mydomain.com. 
It is running happily on Ubuntu 12.04 with permissions on all 
/var/www/proj directories and files rwxrwx---


This is because I need users in the group to have access but no-one from 
outside. Apache is the owner.


Good luck

Mike

# proj #



 # proj resolves to lenny 109
 DocumentRoot /var/www/proj/htdocs/
 ServerName proj.mydomain.com
 ServerAdmin webmas...@mydomain.com

 HostnameLookups Off
 UseCanonicalName Off

 ErrorLog ${APACHE_LOG_DIR}/proj-error.log
 CustomLog ${APACHE_LOG_DIR}/proj-access.log combined

 Alias /robots.txt /var/www/static/proj/robots/robots.txt
 Alias /favicon.ico /var/www/static/proj/img/proj.ico

 # lock the public out
 
  AllowOverride None
  Order deny,allow
  Deny from all
 

 # serve uploaded media from here
 
  AllowOverride None
  Order deny,allow
  Allow from all
 

 # serve static stuff from here
 
  AllowOverride None
  Order deny,allow
  Allow from all
 

 
  Alias /media/ /var/www/media/proj/
  Alias /static/ /var/www/static/proj/
  Alias /tiny_mce/ /var/www/static/proj/js/tiny_mce/
  Alias /jquery/ /var/www/static/proj/js/jquery/
 

 
   WSGIScriptAlias / /var/www/proj/proj/proj.wsgi
   
 Order deny,allow
 Allow from all
   
 










--
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.


--
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.



Re: Django apache mod_wsgi permission denied

2012-11-30 Thread Mike Dewhirst

On 1/12/2012 3:48pm, Loai Ghoraba wrote:

I have ran chmod o+rx on the root directory, isn't this enough (isn't
chmod applied to all folders down recursively ?) ?


No. You need chmod -R o+rx




and I have checked the directories from the root down to static, all
have the permission of drwxr-xr-x

On Sat, Dec 1, 2012 at 2:21 AM, Chris Cogdon mailto:ch...@cogdon.org>> wrote:

Make sure all the directories, from static leading all the way up to
the root, are chmod a+x


On Friday, November 30, 2012 4:00:55 PM UTC-8, Loai Ghoraba wrote:

Hi

I have installed apache and mod_wsgi and my basic site *skeleton
is running* on local host, but with NO static files loaded such
as css, when I try to access a static file
(e.g:http://localhost/static/__css/base.css
) it says that I don't
have permission to access the file, same goes to media files

I have followed the steps in the presentation slides

http://code.google.com/__p/modwsgi/downloads/detail?__name=mod_wsgi-pycon-sydney-__2010.pdf


 and
made the directories accessible to others via chmod o+rx
, my  httpd.conf part is :

WSGIScriptAlias / /home/loai/workspace/Faculty/__Faculty/wsgi.py
WSGIPythonPath /home/loai/workspace/Faculty

Alias /media/ /home/loai/workspace/Faculty/__Faculty/media
Alias /static/ /home/loai/workspace/Faculty/__Faculty/static


Order deny,allow
Allow from all



Order deny,allow
Allow from all


Thanks

--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/L3Sm-aDXA_UJ.

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.


--
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.


--
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.



Re: Django apache mod_wsgi permission denied

2012-11-30 Thread Loai Ghoraba
I have ran chmod o+rx on the root directory, isn't this enough (isn't chmod
applied to all folders down recursively ?) ?

and I have checked the directories from the root down to static, all have
the permission of drwxr-xr-x

On Sat, Dec 1, 2012 at 2:21 AM, Chris Cogdon  wrote:

> Make sure all the directories, from static leading all the way up to the
> root, are chmod a+x
>
>
> On Friday, November 30, 2012 4:00:55 PM UTC-8, Loai Ghoraba wrote:
>>
>> Hi
>>
>> I have installed apache and mod_wsgi and my basic site *skeleton is
>> running* on local host, but with NO static files loaded such as css, when I
>> try to access a static file 
>> (e.g:http://localhost/static/**css/base.css)
>> it says that I don't have permission to access the file, same goes to media
>> files
>>
>> I have followed the steps in the presentation slides
>> http://code.google.com/**p/modwsgi/downloads/detail?**
>> name=mod_wsgi-pycon-sydney-**2010.pdf
>>  and
>> made the directories accessible to others via chmod o+rx
>> , my  httpd.conf part is :
>>
>> WSGIScriptAlias / /home/loai/workspace/Faculty/**Faculty/wsgi.py
>> WSGIPythonPath /home/loai/workspace/Faculty
>>
>> Alias /media/ /home/loai/workspace/Faculty/**Faculty/media
>> Alias /static/ /home/loai/workspace/Faculty/**Faculty/static
>>
>> 
>> Order deny,allow
>> Allow from all
>> 
>>
>> 
>> Order deny,allow
>> Allow from all
>> 
>>
>> Thanks
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/L3Sm-aDXA_UJ.
>
> 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.
>

-- 
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.



Re: Django apache mod_wsgi permission denied

2012-11-30 Thread Chris Cogdon
Make sure all the directories, from static leading all the way up to the 
root, are chmod a+x

On Friday, November 30, 2012 4:00:55 PM UTC-8, Loai Ghoraba wrote:
>
> Hi 
>
> I have installed apache and mod_wsgi and my basic site *skeleton is 
> running* on local host, but with NO static files loaded such as css, when I 
> try to access a static file (e.g:http://localhost/static/css/base.css) it 
> says that I don't have permission to access the file, same goes to media 
> files 
>
> I have followed the steps in the presentation slides 
> http://code.google.com/p/modwsgi/downloads/detail?name=mod_wsgi-pycon-sydney-2010.pdf
>  and 
> made the directories accessible to others via chmod o+rx 
> , my  httpd.conf part is :
>
> WSGIScriptAlias / /home/loai/workspace/Faculty/Faculty/wsgi.py
> WSGIPythonPath /home/loai/workspace/Faculty
>
> Alias /media/ /home/loai/workspace/Faculty/Faculty/media
> Alias /static/ /home/loai/workspace/Faculty/Faculty/static
>
> 
> Order deny,allow
> Allow from all
> 
>
> 
> Order deny,allow
> Allow from all
> 
>
> Thanks
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/L3Sm-aDXA_UJ.
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.



Django apache mod_wsgi permission denied

2012-11-30 Thread Loai Ghoraba
Hi 

I have installed apache and mod_wsgi and my basic site *skeleton is 
running* on local host, but with NO static files loaded such as css, when I 
try to access a static file (e.g:http://localhost/static/css/base.css) it 
says that I don't have permission to access the file, same goes to media 
files 

I have followed the steps in the presentation slides 
http://code.google.com/p/modwsgi/downloads/detail?name=mod_wsgi-pycon-sydney-2010.pdf
 and 
made the directories accessible to others via chmod o+rx 
, my  httpd.conf part is :

WSGIScriptAlias / /home/loai/workspace/Faculty/Faculty/wsgi.py
WSGIPythonPath /home/loai/workspace/Faculty

Alias /media/ /home/loai/workspace/Faculty/Faculty/media
Alias /static/ /home/loai/workspace/Faculty/Faculty/static


Order deny,allow
Allow from all



Order deny,allow
Allow from all


Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/LG9AgaTxaWAJ.
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.