Daqinv: Difference between revisions
Jump to navigation
Jump to search
Line 37: | Line 37: | ||
PassengerDefaultUser daqinv | PassengerDefaultUser daqinv | ||
RailsBaseURI /daqinv | RailsBaseURI /daqinv | ||
<Location /daqinv> | |||
SSLRequireSSL | |||
</Location> | |||
#end | #end | ||
</pre> | </pre> | ||
* ln -s /home/daqinv/inventory2/public /var/www/html/daqinv | * ln -s /home/daqinv/inventory2/public /var/www/html/daqinv | ||
* go to https://ladd00/daqinv, everything should work |
Revision as of 08:10, 11 July 2013
Links
Installation instructions
- start with base SL6
- install ruby gems packaging system: yum install rubygems ruby-devel
- install ruby on rails:
- gem install rails -v '2.3.5'
- gem install fastthread
- gem install mysql
- gem install passenger
- gem install rdoc
- install passenger_mod (apache httpd module)
- find passenger location (look under "Installed at"): gem list -d passenger
- cd /usr/lib/ruby/gems/1.8/gems/passenger-4.0.8
- ./bin/passenger-install-apache2-module
- say "yes" to all prompts, at the end the script will print information similar to that below:
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-4.0.8/buildout/apache2/mod_passenger.so PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-4.0.8 PassengerDefaultRuby /usr/bin/ruby
- configure apache
- cd /etc/httpd/conf.d
- edit daqinv.conf to read: (the LoadModule, etc lines are copied from the output of passenger-install-apache2-module above)
# config file for DAQ inventory "ruby on rails" app LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-4.0.8/buildout/apache2/mod_passenger.so PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-4.0.8 PassengerDefaultRuby /usr/bin/ruby PassengerLogLevel 0 PassengerDefaultUser daqinv RailsBaseURI /daqinv <Location /daqinv> SSLRequireSSL </Location> #end
- ln -s /home/daqinv/inventory2/public /var/www/html/daqinv
- go to https://ladd00/daqinv, everything should work