Re: WSGI Configuration Permission denied

2011-08-05 Thread Chris Tooley
It turned out that in RHEL there are more directories that need to be owned
by the apache user than those noted in the documentation. I chown'd them all
to apache apache and had to change the permissions on a lot of stuff
installed by easy_install.
On Aug 2, 2011 4:39 PM, Christian Hammond chip...@chipx86.com wrote:
 Hi,

 Are permissions to the site directory and its subdirectories and files set
 such that your Apache user can access them?

 Do you have any other settings elsewhere in your Apache config that could
 somehow be preventing access?

 Christian

 --
 Christian Hammond - chip...@chipx86.com
 Review Board - http://www.reviewboard.org
 VMware, Inc. - http://www.vmware.com


 On Tue, Aug 2, 2011 at 7:10 AM, ctooley ctoo...@gmail.com wrote:

 I'm getting permission denied when trying to use WSGI and can't find
 any information on how to track down what I'm doing wrong. I've
 attached the configuration files below this error message:

 [Tue Aug 02 14:05:56 2011] [error] [client 10.12.134.32]
 (13)Permission denied: access to / denied
 [Tue Aug 02 14:05:56 2011] [error] [client 10.12.134.32]
 (13)Permission denied: access to /favicon.ico denied

 /etc/httpd/conf.d/reviewboard.conf:
 VirtualHost *:80
 ServerName server.domain.net
 DocumentRoot /var/www/server.domain.net/htdocs

 # Error handlers
 ErrorDocument 500 /errordocs/500.html

 WSGIPassAuthorization On
 WSGIScriptAlias / /var/www/server.domain.net/htdocs/
 reviewboard.wsgi

 Directory /var/www/server.domain.net/htdocs
 AllowOverride All
 /Directory

 # Alias static media requests to filesystem
 Alias /media /var/www/server.domain.net/htdocs/media
 Alias /errordocs /var/www/server.domain.net/htdocs/errordocs
 /VirtualHost

 /etc/httpd/conf.d/wsgi.conf:
 LoadModule wsgi_module modules/mod_wsgi.so

 --
 Want to help the Review Board project? Donate today at
 http://www.reviewboard.org/donate/
 Happy user? Let us know at http://www.reviewboard.org/users/
 -~--~~~~--~~--~--~---
 To unsubscribe from this group, send email to
 reviewboard+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/reviewboard?hl=en

 --
 Want to help the Review Board project? Donate today at
http://www.reviewboard.org/donate/
 Happy user? Let us know at http://www.reviewboard.org/users/
 -~--~~~~--~~--~--~---
 To unsubscribe from this group, send email to
reviewboard+unsubscr...@googlegroups.com
 For more options, visit this group at
http://groups.google.com/group/reviewboard?hl=en

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Re: WSGI Configuration Permission denied

2011-08-05 Thread Chris Tooley
All of the python packages installed via easy_installed were:
-rwxr-x---   root:root
This was preventing anyone other than root from using those python
libraries, that had to be resolved.

All of the directories under /var/www/myreviewboarddirectory had to be
chown'd to apache:apache

Chris Tooley
On Aug 5, 2011 4:18 AM, Christian Hammond chip...@chipx86.com wrote:
 Do you know which directories specifically needed the chown?

 Christian

 --
 Christian Hammond - chip...@chipx86.com
 Review Board - http://www.reviewboard.org
 VMware, Inc. - http://www.vmware.com


 On Tue, Aug 2, 2011 at 3:01 PM, Chris Tooley ch...@tooley.com wrote:

 It turned out that in RHEL there are more directories that need to be
owned
 by the apache user than those noted in the documentation. I chown'd them
all
 to apache apache and had to change the permissions on a lot of stuff
 installed by easy_install.
 On Aug 2, 2011 4:39 PM, Christian Hammond chip...@chipx86.com wrote:
  Hi,
 
  Are permissions to the site directory and its subdirectories and files
 set
  such that your Apache user can access them?
 
  Do you have any other settings elsewhere in your Apache config that
could
  somehow be preventing access?
 
  Christian
 
  --
  Christian Hammond - chip...@chipx86.com
  Review Board - http://www.reviewboard.org
  VMware, Inc. - http://www.vmware.com
 
 
  On Tue, Aug 2, 2011 at 7:10 AM, ctooley ctoo...@gmail.com wrote:
 
  I'm getting permission denied when trying to use WSGI and can't find
  any information on how to track down what I'm doing wrong. I've
  attached the configuration files below this error message:
 
  [Tue Aug 02 14:05:56 2011] [error] [client 10.12.134.32]
  (13)Permission denied: access to / denied
  [Tue Aug 02 14:05:56 2011] [error] [client 10.12.134.32]
  (13)Permission denied: access to /favicon.ico denied
 
  /etc/httpd/conf.d/reviewboard.conf:
  VirtualHost *:80
  ServerName server.domain.net
  DocumentRoot /var/www/server.domain.net/htdocs
 
  # Error handlers
  ErrorDocument 500 /errordocs/500.html
 
  WSGIPassAuthorization On
  WSGIScriptAlias / /var/www/server.domain.net/htdocs/
  reviewboard.wsgi
 
  Directory /var/www/server.domain.net/htdocs
  AllowOverride All
  /Directory
 
  # Alias static media requests to filesystem
  Alias /media /var/www/server.domain.net/htdocs/media
  Alias /errordocs /var/www/server.domain.net/htdocs/errordocs
  /VirtualHost
 
  /etc/httpd/conf.d/wsgi.conf:
  LoadModule wsgi_module modules/mod_wsgi.so
 
  --
  Want to help the Review Board project? Donate today at
  http://www.reviewboard.org/donate/
  Happy user? Let us know at http://www.reviewboard.org/users/
  -~--~~~~--~~--~--~---
  To unsubscribe from this group, send email to
  reviewboard+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/reviewboard?hl=en
 
  --
  Want to help the Review Board project? Donate today at
 http://www.reviewboard.org/donate/
  Happy user? Let us know at http://www.reviewboard.org/users/
  -~--~~~~--~~--~--~---
  To unsubscribe from this group, send email to
 reviewboard+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/reviewboard?hl=en

 --
 Want to help the Review Board project? Donate today at
 http://www.reviewboard.org/donate/
 Happy user? Let us know at http://www.reviewboard.org/users/
 -~--~~~~--~~--~--~---
 To unsubscribe from this group, send email to
 reviewboard+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/reviewboard?hl=en


 --
 Want to help the Review Board project? Donate today at
http://www.reviewboard.org/donate/
 Happy user? Let us know at http://www.reviewboard.org/users/
 -~--~~~~--~~--~--~---
 To unsubscribe from this group, send email to
reviewboard+unsubscr...@googlegroups.com
 For more options, visit this group at
http://groups.google.com/group/reviewboard?hl=en

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Re: WSGI Configuration Permission denied

2011-08-05 Thread Stephen Gallagher
On Fri, 2011-08-05 at 06:58 -0500, Chris Tooley wrote:
 All of the python packages installed via easy_installed were:
 -rwxr-x---   root:root
 This was preventing anyone other than root from using those python
 libraries, that had to be resolved.
 
 All of the directories under /var/www/myreviewboarddirectory had to be
 chown'd to apache:apache


Just so you know, Chris. I maintain EPEL packages for ReviewBoard for
the latest stable release (currently 1.5.5). It's much easier than using
easy_install for RHEL.

See http://fedoraproject.org/wiki/EPEL for details on using the EPEL
repository.

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en


Re: WSGI Configuration Permission denied

2011-08-05 Thread Chris Tooley
That would have been nice to know prior to the massive headache I went
through getting it set up. Is that somewhere on the reviewboard wiki? If
not, could it be?
On Aug 5, 2011 7:34 AM, Stephen Gallagher step...@gallagherhome.com
wrote:
 On Fri, 2011-08-05 at 06:58 -0500, Chris Tooley wrote:
 All of the python packages installed via easy_installed were:
 -rwxr-x--- root:root
 This was preventing anyone other than root from using those python
 libraries, that had to be resolved.

 All of the directories under /var/www/myreviewboarddirectory had to be
 chown'd to apache:apache


 Just so you know, Chris. I maintain EPEL packages for ReviewBoard for
 the latest stable release (currently 1.5.5). It's much easier than using
 easy_install for RHEL.

 See http://fedoraproject.org/wiki/EPEL for details on using the EPEL
 repository.

 --
 Want to help the Review Board project? Donate today at
http://www.reviewboard.org/donate/
 Happy user? Let us know at http://www.reviewboard.org/users/
 -~--~~~~--~~--~--~---
 To unsubscribe from this group, send email to
reviewboard+unsubscr...@googlegroups.com
 For more options, visit this group at
http://groups.google.com/group/reviewboard?hl=en

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

WSGI Configuration Permission denied

2011-08-02 Thread ctooley
I'm getting permission denied when trying to use WSGI and can't find
any information on how to track down what I'm doing wrong. I've
attached the configuration files below this error message:

[Tue Aug 02 14:05:56 2011] [error] [client 10.12.134.32]
(13)Permission denied: access to / denied
[Tue Aug 02 14:05:56 2011] [error] [client 10.12.134.32]
(13)Permission denied: access to /favicon.ico denied

/etc/httpd/conf.d/reviewboard.conf:
VirtualHost *:80
ServerName server.domain.net
DocumentRoot /var/www/server.domain.net/htdocs

# Error handlers
ErrorDocument 500 /errordocs/500.html

WSGIPassAuthorization On
WSGIScriptAlias / /var/www/server.domain.net/htdocs/
reviewboard.wsgi

Directory /var/www/server.domain.net/htdocs
AllowOverride All
/Directory

# Alias static media requests to filesystem
Alias /media /var/www/server.domain.net/htdocs/media
Alias /errordocs /var/www/server.domain.net/htdocs/errordocs
/VirtualHost

/etc/httpd/conf.d/wsgi.conf:
LoadModule wsgi_module modules/mod_wsgi.so

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en


Re: WSGI Configuration Permission denied

2011-08-02 Thread Christian Hammond
Hi,

Are permissions to the site directory and its subdirectories and files set
such that your Apache user can access them?

Do you have any other settings elsewhere in your Apache config that could
somehow be preventing access?

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


On Tue, Aug 2, 2011 at 7:10 AM, ctooley ctoo...@gmail.com wrote:

 I'm getting permission denied when trying to use WSGI and can't find
 any information on how to track down what I'm doing wrong. I've
 attached the configuration files below this error message:

 [Tue Aug 02 14:05:56 2011] [error] [client 10.12.134.32]
 (13)Permission denied: access to / denied
 [Tue Aug 02 14:05:56 2011] [error] [client 10.12.134.32]
 (13)Permission denied: access to /favicon.ico denied

 /etc/httpd/conf.d/reviewboard.conf:
 VirtualHost *:80
ServerName server.domain.net
DocumentRoot /var/www/server.domain.net/htdocs

# Error handlers
ErrorDocument 500 /errordocs/500.html

WSGIPassAuthorization On
WSGIScriptAlias / /var/www/server.domain.net/htdocs/
 reviewboard.wsgi

Directory /var/www/server.domain.net/htdocs
AllowOverride All
/Directory

# Alias static media requests to filesystem
Alias /media /var/www/server.domain.net/htdocs/media
Alias /errordocs /var/www/server.domain.net/htdocs/errordocs
 /VirtualHost

 /etc/httpd/conf.d/wsgi.conf:
 LoadModule wsgi_module modules/mod_wsgi.so

 --
 Want to help the Review Board project? Donate today at
 http://www.reviewboard.org/donate/
 Happy user? Let us know at http://www.reviewboard.org/users/
 -~--~~~~--~~--~--~---
 To unsubscribe from this group, send email to
 reviewboard+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/reviewboard?hl=en

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en