- dradis framework guides
Dradis on Apache
After reading this guide, you will be able to:
- Have Dradis running always-on behind Apache
- Have an Apache environment able to run other Rails applications
We are assuming a Linux environment although most of the guide will be applicable to other platforms.
In order to run Dradis under Apache and mod_rails, we need to install Apache and the Passenger gem:
- apt-get install apache2
- gem install passenger
You need to load Apache’s SSL module:
- a2enmod ssl
And Passenger’s Apache module:
Passenger’s install instructions are very thorough, but you can always check the User’s guide.
If you are running Debian lenny, you may need to update your Ruby gems installation:
- gem install rubygems-update
Once you have Apache and mod_passenger running, the worst is over, you just need to configure a Dradis virtual host.
2 Get Dradis
For the examples we will assume that Dradis is found in
3 Reset the Dradis environment
Passenger will run Dradis in production mode, so we need to make sure that the production database is properly configured. Go to the Dradis folder and first make sure you have all the required dependencies:
Install anything that is missing (the script provides instructions) and then initialize the environment with:
This will initialize the production SQLite3 database (~/dradis/server/db/production.sqlite3). You can use other engines like MySQLor Postgres. See the configuration page for more details on how to do this.
4 Configure Dradis VirtualHost
Create a new
Dradis file under
SSLProtocol all -SSLv2
Save the file and enable the virtual host:
- a2ensite dradis
- /etc/init.d/apache2 reload
Dradis should be ready to use at: