Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http://everydayiszeroday.blogspot.com/2013/01/installing-snorby-on-ubuntu-1204.html
- # sudo su -
- # apt-get update
- # apt-get upgrade
- # apt-get install mysql-server
- # apt-get install apache2
- # apt-get install libyaml-dev git-core default-jre imagemagick libmagickwand-dev wkhtmltopdf gcc g++ build-essential libssl-dev libreadline-gplv2-dev zlib1g-dev linux-headers-generic libsqlite3-dev libxslt1-dev libxml2-dev libmysqlclient-dev libmysql++-dev apache2-prefork-dev libcurl4-openssl-dev -y
- Install Ruby & Friends
- # apt-get install ruby1.9.3 ruby-text-format
- # gem install bundler
- # gem install rails
- # gem install rake --version=0.9.2
- Install Snorby
- # cd /var/www/
- # git clone http://github.com/Snorby/snorby.git
- # cd /var/www/snorby/config/
- # cp database.yml.example database.yml
- # cp snorby_config.yml.example snorby_config.yml
- # sed -i s/"\/usr\/local\/bin\/wkhtmltopdf"/"\/usr\/bin\/wkhtmltopdf"/g /var/www/snorby/config/snorby_config.yml
- Configure snorby database username and password
- # nano database.yml
- Edit the settings to match your MySQL installation
- # cd /var/www/snorby/
- # bundle install --deployment
- # rake snorby:setup
- Setup Apache
- # gem install passenger
- # passenger-install-apache2-module
- The lines should look something like this at the end of the file
- # Include of directories ignores editors' and dpkg's backup files,
- # see README.Debian for details.
- LoadModule passenger_module /var/lib/gems/1.9.1/gems/passenger-3.0.18/ext/apache2/mod_passenger.so
- PassengerRoot /var/lib/gems/1.9.1/gems/passenger-3.0.18
- PassengerRuby /usr/bin/ruby1.9.1
- # Include generic snippets of statements
- Include conf.d/
- # Include the virtual host configurations:
- Include sites-enabled/
- Now add the website as follows:
- # nano /etc/apache2/sites-available/snorby
- Add the following lines (change the ServerAdmin and Servername to something of your choice)
- <VirtualHost *:80>
- ServerAdmin admin@localhost
- ServerName snorby.localhost
- DocumentRoot /var/www/snorby/public
- <Directory "/var/www/snorby/public">
- AllowOverride all
- Order deny,allow
- Allow from all
- Options -MultiViews
- </Directory>
- </VirtualHost>
- Enable the new website and disable the default site
- # a2dissite default
- # a2ensite snorby
- # service apache2 reload
- Browse to the new website and login with the following default credentials:
- Username: snorby@snorby.org
- Password: snorby
Advertisement
Add Comment
Please, Sign In to add comment