snort installation on freebsd issues


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users snort installation on freebsd issues
# 8  
Old 02-07-2003
Interesting, in the apache configs I've worked with they install under a single tree with the root at /usr/local/apache .... including configuration files, log files, documents, etc.

Thanks for clarifying on how your system has been configured.
# 9  
Old 02-07-2003
alright... i took a look at the config file. i really don't know how to read it... but things seemed to be in order.

i then looked at the example again and noticed something in their hosts file.

i changed the generic alias of 127.0.0.1 to something else, re-ran apachectl and things worked.

but, now, another problem has arisen. do mozilla and ie 6 support php? because when i open the webpage, i don't get a webpage, i just get a list of code.
# 10  
Old 02-07-2003
PHP / HTML is supported in the Web server, not the browser/clients. You mujst to configure your server to work with PHP. That is not trivial and can take a lot of work!

I suggest a good book on PHP and Apache, or search the web with Google for step-by-step instructions.
# 11  
Old 02-08-2003
is this tutorual misleading then? it doesn't mention any complex configuration with php and apache.

it asks that you install the following: idled, mozilla, wget, phplot, adodb, libnet, snort, acid.

it also gives a very threadbare set of instructions for setup.
# 12  
Old 02-08-2003
If Snort uses PHP, you need to configure Apache and PHP. I also think Snort might use a database like MySQL, is that right?
# 13  
Old 02-09-2003
i got it working... there were a few things that needed to be done to get this working.

as for using MySQL, it's an added bonus i guess. you don't need to use snort with mysql... but then the vanilla configuration had it outputting everything into a single log file, which is about 10mb's right now. :/

first i needed to add/reinstall the following packages:

mod_perl-1.27 Embeds a Perl interpreter in the Apache server
mod_php3-3.0.18_3 PHP3 module for Apache
mod_php4-4.3.0 PHP4 module for Apache

i needed to add the php packages with mysql support (i used that gui-ish
interface to do it)

then i needed to to into the httpd.conf file and add the following:

AddModule mod_php.c
AddModule mod_php3.c
AddModule mod_perl.c

LoadModule php3_module modules/libphp3.so
LoadModule php4_module modules/libphp4.so
LoadModule perl_module modules/libperl.so

AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

things seem to be working now... however i do get the following error in the
webpage:

----
Warning: Unknown(): Your script possibly relies on a session side-effect which
existed until PHP 4.2.3. Please be advised that the session extension does not
consider global variables as a source of data, unless register_globals is
enabled. You can disable this functionality and this warning by setting
session.bug_compat_42 or session.bug_compat_warn to off, respectively. in
Unknown on line 0
# 14  
Old 02-09-2003
For future reference, check out the Apache Tool Box:

www.apachetoolbox.com
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. BSD

FreeBSD DHCP wpa_supplicant Wi-Fi Issues

I just got FreeBSD up and running with an XFCE desktop on an old Gateway laptop. It works great, except the wireless setup is scaring me. I can connect to my home WiFi fine most of the time, but I'm concerned about other WiFi that I will need to connect to away from home. I understand that I can... (1 Reply)
Discussion started by: BrentBANKS
1 Replies

2. Homework & Coursework Questions

Error in installation of Snort 2.97.0

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: My system is Redhat 5.6. I want to install snort in my system which requires following dependencies. 1. Libpcap... (8 Replies)
Discussion started by: Ankur Goyal
8 Replies

3. AIX

Networking Issues - Opera, FreeBSD, AIX

(1) Hi, Am working on FreeBSD 7.4/i386 and installed Opera 11.01 through ports collection manually... But when I run first time am getting "opera: cannot connect X server. Error: Unknown error: 0" What is this error all about???? Please help me to sort out this issue!!! (2) Hi, currently am... (12 Replies)
Discussion started by: Priya Amaresh
12 Replies

4. BSD

FreeBSD AMD NFS over TCP issues

Hi! I have a major issue with FreeBSD 7.1 i386. We did a change in our Unix env where we exchanged home storage from a NetAPP running udp to a NetAPP running tcp. Now I cant mount homedirs since NFS/AMD seem to fallback to udp :( Trying to force it with amd options nfs_proto=tcp and so on. ... (0 Replies)
Discussion started by: Esaia
0 Replies

5. UNIX for Dummies Questions & Answers

Resolved: htpasswd issues (-b) on FreeBSD

I wrote a script to batch-create directories with .htaccess and .htpasswd files. I am using the following line to create the .htpasswd file: htpasswd -cb .htpasswd $USER $PASS However, I keep getting this message in return: Usage: htpasswd passwordfile username The -c flag creates a new... (1 Reply)
Discussion started by: Spetnik
1 Replies

6. Web Development

Using IP.Board on FreeBSD, having SQL/Apache Issues

Server: FreeBSD 7.2-RELEASE MYSQL Version: MYSQL 5.1.36 PHP Version: 5.2.10 (apache2handler) IP.Board Version: v3.0.2 Safe Mode: OFF For the most part previously IP.Board, forum software, has run fine without any issues. Regular web pages and .php pages seem to load fine without any issues.... (2 Replies)
Discussion started by: Dark Severance
2 Replies

7. BSD

FreeBSD - Kernel Queries/Issues

All, I am a bit of a BSD newbie and haven't really played with it for years, but I have had a recent situation whereby someone attempted to load a custom kernel module and ended up breaking my BSD server. I managed to fix it by doing the following: Booting into loader mode: unload set... (3 Replies)
Discussion started by: drbabbers
3 Replies

8. Linux

freeBSD installation

why is my new freeBSD hanging at setting up hostname each time I plug in the network cable i use host name like X.ng I intend to configure it as a gateway (2 Replies)
Discussion started by: AkinOkin
2 Replies

9. UNIX for Dummies Questions & Answers

Some FreeBSD issues

I have been using Linux for 3 years now, and I think I am getting enough knowledge (and confidence) to try some more 'traditional' unix variants. I installed FreeBSD 5.0-CURRENT. I have a couple of questions for the time being: 1) Frequently when I need to compile software packages they can't... (16 Replies)
Discussion started by: cbkihong
16 Replies

10. UNIX Desktop Questions & Answers

FreeBSD 4.7 X issues - assistance req'd please

question: i just installed FreeBSD 4.7 on my laptop, when i log in as root, i can startx no problem at all but when i try to start it as a user, i can't. otiginally it told me i needed to be a member of the group 'wheel' to do startx, no problem, added myself in /etc/group, but for some reason i... (1 Reply)
Discussion started by: Calum
1 Replies
Login or Register to Ask a Question