This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
freebsd:snort_base [2014/08/08 14:39] tschulz |
freebsd:snort_base [2014/08/08 14:50] tschulz |
||
---|---|---|---|
Line 3: | Line 3: | ||
===== Install Software ===== | ===== Install Software ===== | ||
<file> | <file> | ||
- | pkg install snort apache22 mysql56-server mod_php5 phpMyAdmin base wget | + | pkg install snort apache22 mysql56-server mod_php5 base wget |
</file> | </file> | ||
Line 187: | Line 187: | ||
/usr/local/etc/rc.d/barnyard2 start | /usr/local/etc/rc.d/barnyard2 start | ||
</file> | </file> | ||
+ | |||
+ | ===== Configure Base (Snort Web Reporting) ===== | ||
+ | ==== Enable php ==== | ||
+ | * edit /usr/local/etc/apache24/httpd.conf | ||
+ | <file> | ||
+ | ... | ||
+ | LoadModule php5_module libexec/apache24/libphp5.so | ||
+ | |||
+ | AddType application/x-httpd-php .php | ||
+ | AddType application/x-httpd-php-source .phps | ||
+ | ... | ||
+ | # | ||
+ | # DirectoryIndex: sets the file that Apache will serve if a directory | ||
+ | # is requested. | ||
+ | # | ||
+ | <IfModule dir_module> | ||
+ | DirectoryIndex index.php index.html | ||
+ | </IfModule> | ||
+ | ... | ||
+ | </file> | ||
+ | ==== Make Base Accessible ==== | ||
+ | <file> | ||
+ | cd /usr/local/www/ | ||
+ | cp -rv base apache24/data/ | ||
+ | cd apache24/data/ | ||
+ | chown -R www base | ||
+ | </file> | ||
+ | |||
+ | ==== Configure Base ==== | ||
+ | - Navigate on a web browser to http://127.0.0.1/base/setup/index.php | ||
+ | - Set adodb Path to /usr/local/share/adodb | ||
+ | - Use the Database setting we used above (mysql, database_name, username, password) |