Snort mailing list archives
Re: Can't set up ACID - get a blank page
From: Sean Brown <sblinux () shaw ca>
Date: Fri, 23 Jul 2004 23:28:07 -0600
Well to reply to my own message, it seems that the default options php4 is built with in the FreeBSD ports is insufficient to run ACID. It doesn't include GD, session support or pcre. I uninstalled the mod_php4 package, edited lang/php4/Makefile and added to the CONFIGURE_ARGS --with-pcre --enable-bcmath --enable session --with-gd --with-mysql -with-zlib-dir=/usr --enable-sockets then build from www/mod_php4 I had to add the -with-zlib-dir=/usr because when I added --with-gd it died not finding libz and I added --with-mysql just for the hell of it. pcre is needed for running queries. The new mod_php4 package seems to work just fine now. Maybe I should ask the port maintainer to add these as options. -Sean Brown On July 23, 2004 09:36 pm, Sean Brown wrote:
I have the same problem so I turned on the display_errors again so I could have a better idea whats going on. Now it returns Fatal error: Call to undefined function: session_module_name() in /opt/www/acid/acid_state_common.inc on line 49 Now I have no idea about php programming, and I can't find anything pointing to anything as to what that means. I compiled GD into mod_php by adding it to the CONFIGURE variable in the lang/php4 Makefile Someone somewhere have an idea? -Sean Brown On July 23, 2004 11:01 am, Merill Ronquillo wrote:I've set up snort+mysql+apache+php but am having trouble setting up acid. When going to the ACID main page, all I get is a blank html with only this source: <html><body></body></html> Here's a step-by-step for everything I did to set up snort... Versions (using an updated ports tree): - FreeBSD 5.2-p9 - acid-0.9.6b23 - adodb-4.50 - apache-1.3.31 - jpgraph-1.16 - mod_php4-4.3.8 - mysql-server-4.0.20 - phplot-4.4.6 Steps: 1. make install for mod_php4 - there wasn't any option for the GD Support Library, as mentioned in many howtos. It's set to use apache 1.3. 2. make install for mysql40-server 3. make install for adodb 4. make install for phplot 5. make install for jpgraph 6. make -DWITH_MYSQL install for snort 7. make install for acid 8. edited httpd-conf - uncommented #ServerName www.fevertime.com (my domain name), DocumentRoot and Directory set to /usr/local/www/acid 9. cp php-ini-recommended php.ini 10. cp my-large.cnf /etc/my.cnf 11. created a snortuser account, minus shell access 11. mysql_install_db; mysql-server.sh start - successful 12. # mysql -u root 13. mysql> set password for root@localhost=PASSWORD('mypassword'); flush privileges; 14. mysql> create database snort; 15. mysql> grant insert,select,create,delete,update on snort.* to snortuser@localhost identified by 'mypassword'; flush privileges; 16. # mysql -p < /tmp/create_mysql snort - successful 17. edited snort.conf - added "output database: log, mysql, user=snortuser password=mypassword dbname=snort host=localhost 18. mkdir /var/log/snort 19. chmod 644 acid_conf.php 20. edited acid_conf.php - $alert_dbname = "snort"; $alert_host = "localhost"; $alert_port = ""; $alert_user = "snortuser"; $alert_password = "mypassword"; $ChartLib_path = "/usr/local/share/jpgraph"; $DBLib_path = "/usr/local/share/adodb" 21. # apachectl start Nooooooow, here's the weird part. I start by browser (firefox) and open up http://localhost. I get a redirect to http://localhost/acid_main.php. I get nothing but a blank page (it's supposed to go to the ACID setup page with the Create ACID AG button). As mentioned above, a view source gets me this: <html><body></body></html> I'm no php expert, but I created a test.php with only: <? php phpinfo() ?> and it opens up successfully, telling me apache is working with php. Snort is also successfully logging to the db, but I don't think that's where the problem is, anyway. There's gotta be something going on with acid_main.php. For anyone who survived reading through this, any ideas? TIA - Merill ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Snort-users mailing list Snort-users () lists sourceforge net Go to this URL to change user options or unsubscribe: https://lists.sourceforge.net/lists/listinfo/snort-users Snort-users list archive: http://www.geocrawler.com/redir-sf.php3?list=snort-users------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Snort-users mailing list Snort-users () lists sourceforge net Go to this URL to change user options or unsubscribe: https://lists.sourceforge.net/lists/listinfo/snort-users Snort-users list archive: http://www.geocrawler.com/redir-sf.php3?list=snort-users
------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Snort-users mailing list Snort-users () lists sourceforge net Go to this URL to change user options or unsubscribe: https://lists.sourceforge.net/lists/listinfo/snort-users Snort-users list archive: http://www.geocrawler.com/redir-sf.php3?list=snort-users
Current thread:
- Can't set up ACID - get a blank page Merill Ronquillo (Jul 23)
- Re: Can't set up ACID - get a blank page Sean Brown (Jul 23)
- Re: Can't set up ACID - get a blank page Sean Brown (Jul 23)
- Re: Can't set up ACID - get a blank page Paul Schmehl (Jul 23)
- Re: Can't set up ACID - get a blank page Merill Ronquillo (Jul 23)
- Re: Can't set up ACID - get a blank page Sean Brown (Jul 23)
- Re: Can't set up ACID - get a blank page Sean Brown (Jul 23)