Snort mailing list archives

Re: mysql.sock not found


From: Dirk Geschke <Dirk () geschke-online de>
Date: 04 Dec 2003 23:38:33 +0100

Hi Shashank,

I installed snort on RH9 and got it working fine. Then I added the
my.cnf file to  /etc with the socket=/var/lib/mysql.sock. I also
modified php.ini to point default_socket to /ver/lib/mysql/mysql.sock. I
restarted mysql and apache. 
 However, when I try to restart snort, it seems as if it does start, but
in reality it fails to start. SO I executed the following command to
debug,
/usr/local/bin/snort -c /etc/snort/snort.conf  and I get an error that
says could not connect to /tmp/mysql.sock. Where else do I need to
change /tmp/mysql.sock in order to eliminate this error? The error is in
the adodb-mysql.inc.php 
Any help is appreciated.

in the file /etc/my.cnf are normall two sections, one for
the server process and one for the client. So there should
be something like:

[client]
socket          = /var/lib/mysql/mysql.sock
...

[server]
socket          = /var/lib/mysql/mysql.sock
...

Normally you don't have to mention where the socket is
located, the library will ask /etc/my.cnf therefore.
(And as far as I remember you don't have the possibility
to mention the socket in snort.conf...)

Best regards

Dirk Geschke



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&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: