i needed to enter the following command within /usr/ports/security/snort
make expand
this gave me all the directories that were needed.
how i'm having another issue.
when i try to start apache the way they want me to, apachectl start (or restart), i get the following error:
/usr/local/sbin/apachectl start: httpd could not be started
i have no clue where to begin. i checked the path in the script to see if it was pointing to the proper location for httpd, and it is. so i'm completely confused.
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.
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.
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.
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:
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