Skip to content

Instantly share code, notes, and snippets.

@tubit
Last active December 11, 2015 17:59
Show Gist options
  • Save tubit/4638813 to your computer and use it in GitHub Desktop.
Save tubit/4638813 to your computer and use it in GitHub Desktop.
### ruby 1.9.2 from debian
~# apt-get install ruby1.9.1-full
~# gem1.9.1 install bundler --no-rdoc --no-ri
~# gem1.9.1 install passenger --no-rdoc --no-ri
### apache dev headers + curl-dev for mod_passenger
~# apt-get install libapr1-dev apache2-prefork-dev libcurl4-openssl-dev
~# cd /opt/graylog2-web-interface
~# chown -R 33.33 /opt/graylog2-web-interface
/opt/graylog2-web-interface# /var/lib/gems/1.9.1/bin/bundle install --without=development
/opt/graylog2-web-interface# /var/lib/gems/1.9.1/bin/passenger-install-apache2-module
## Apache config:
LoadModule passenger_module /var/lib/gems/1.9.1/gems/passenger-3.0.19/ext/apache2/mod_passenger.so
PassengerRoot /var/lib/gems/1.9.1/gems/passenger-3.0.19
PassengerRuby /usr/bin/ruby1.9.1
<VirtualHost *:80>
ServerAdmin servicedesk@blau.de
DocumentRoot /opt/graylog2-web-interface/public
<Directory /opt/graylog2-web-interface/public>
Allow from all
Options -MultiViews FollowSymLinks
</Directory>
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment