revision

rharmonson 2014-06-26 10:47:11 -07:00
parent cd33426784
commit 1a2e75acef

@ -1263,13 +1263,13 @@ $ rails server -e production
###Success? ###Success?
If the server failed to start, review logs and/or the instructions above. If server started successfully, ctrl+c to shutdown Tracks and continue the installation. If the server failed to start, review logs and/or the instructions above. If server started successfully, ctrl+c to shutdown Tracks and continue the installation.
##Apache ##Apache2
Update the tracks user directory in preparation for passenger. Update the tracks user directory in preparation for passenger.
``` ```
$ sudo chmod o+x /home/tracks $ sudo chmod o+x /home/tracks
``` ```
Configure Passenger & Apache2 ###Phusion Passenger & Apache2
``` ```
$ passenger-install-apache2-module $ passenger-install-apache2-module
Welcome to the Phusion Passenger Apache 2 module installer, v4.0.44. Welcome to the Phusion Passenger Apache 2 module installer, v4.0.44.
@ -1353,6 +1353,7 @@ LoadModule passenger_module /home/tracks/.rvm/gems/ruby-1.9.3-p547/gems/passenge
</IfModule> </IfModule>
``` ```
###Apache2 configuration
Update apache conf file. Update apache conf file.
``` ```
$ sudo cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak $ sudo cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak
@ -1376,6 +1377,7 @@ At the bottom of the file, add the following:
</VirtualHost> </VirtualHost>
``` ```
###SELinux
Configure SELinux by configuring 'SELINUX' to 'permissive' Configure SELinux by configuring 'SELINUX' to 'permissive'
``` ```
$ sudo vi /etc/selinux/conf $ sudo vi /etc/selinux/conf
@ -1388,6 +1390,7 @@ $ sudo setenforce 0
Once Tracks installation is complete, you can create a SELinux module. See the section titled "SELINUX" below for instructions. Once Tracks installation is complete, you can create a SELinux module. See the section titled "SELINUX" below for instructions.
###Firewall & Apache
Open firewall for Apache by 'customizing' and permitting http or web traffic (80 TCP). You may, also, remove the previous rule for port 3000 TCP. Open firewall for Apache by 'customizing' and permitting http or web traffic (80 TCP). You may, also, remove the previous rule for port 3000 TCP.
``` ```
$ sudo system-config-firewall-tui $ sudo system-config-firewall-tui
@ -1403,6 +1406,7 @@ Validate Apache operations by starting the httpd service then using a browser, v
$ sudo service httpd start $ sudo service httpd start
``` ```
###Apache at startup
Configure Apache to start at boot. Configure Apache to start at boot.
``` ```
$ sudo chkconfig httpd on $ sudo chkconfig httpd on