Re: Directory Permissions CodeReview Fedora Fresh Install

2015-02-17 Thread Stephen Gallagher



On Mon, 2015-02-16 at 10:53 -0800, Yarone Greif wrote:
 Fixed it.  I turned of SELinux.  And restarted httpd as not root.
 

Fedora's SELinux will block httpd from talking to the reviewboard.db by
default. You can fix the rule by doing:
$ semanage fcontext -a -t httpd_var_lib_t reviewboard.db
$ restorecon -v reviewboard.db

You also want to run:
$ setsebool -P httpd_can_sendmail 1
$ setsebool -P httpd_can_network_memcache 1
which will allow httpd to send email and connect to the memcache server.

Then you won't need to turn off SELinux.


I've submitted https://reviews.reviewboard.org/r/6958/ to update the
docs about the SELinux booleans. I left out the reviewboard.db piece
because that only applies to SQLite deployments, and those shouldn't be
used in production.

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Directory Permissions CodeReview Fedora Fresh Install

2015-02-16 Thread Yarone Greif
Fixed it.  I turned of SELinux.  And restarted httpd as not root.

On Sunday, February 15, 2015 at 5:12:26 PM UTC-8, Yarone Greif wrote:

 Just installed CodeReview on a Fedora AWS instance.  And I'm getting the 
 permissions problem issue splash page (The data directory must be 
 writable by the web server. On Linux/Unix/Mac, you can fix this by 
 typing:).  But I think the permissions are set correctly.  eg

 [fedora@ip-172-31-20-148 ~]$  sudo chown -R apache /var/www/
 reviews.example.com/data
 [fedora@ip-172-31-20-148 ~]$ ls -lh /var/www/reviews.example.com/data
 total 336K
 -rw-r--r--. 1 apache root 333K Feb 15 23:15 reviewboard.db

 [fedora@ip-172-31-20-148 ~]$ sudo service httpd restart
 Redirecting to /bin/systemctl restart  httpd.service

 But the splash page isn't fixed.   What else am I supposed to run?




-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Directory Permissions CodeReview Fedora Fresh Install

2015-02-15 Thread Yarone Greif
Just installed CodeReview on a Fedora AWS instance.  And I'm getting the 
permissions problem issue splash page (The data directory must be 
writable by the web server. On Linux/Unix/Mac, you can fix this by 
typing:).  But I think the permissions are set correctly.  eg

[fedora@ip-172-31-20-148 ~]$  sudo chown -R apache 
/var/www/reviews.example.com/data
[fedora@ip-172-31-20-148 ~]$ ls -lh /var/www/reviews.example.com/data
total 336K
-rw-r--r--. 1 apache root 333K Feb 15 23:15 reviewboard.db

[fedora@ip-172-31-20-148 ~]$ sudo service httpd restart
Redirecting to /bin/systemctl restart  httpd.service

But the splash page isn't fixed.   What else am I supposed to run?


-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.