[Snort-users] BASE config problem - update

Luis Torres al1629608 at ...131...
Tue Feb 6 16:11:46 EST 2007


Actually I jumped to conclusions and setting up a new IDS box I ran into the exact same problem... php-mysql is not really the problem here.

The problem is that on version 5 of php they disabled mysql support and ADODB relied on that to be on (I didn't go into much detail on the 'why'). If you are running "normal" PHP scripts that use the built in mysql functions then php-mysql gives you all that's needed.

So, long story short. You can compile your own version of PHP --with-mysql or you can just install PHP 4.3.9 or your favorite php4 binary.

I took the second option because my box is for use only by the IDS and my focus was on getting it up and running, not on building my own PHP binary... for now at least  =)

Good luck,


----- Original Message ----
From: "David.Ryan at ...13912..." <David.Ryan at ...13912...>
To: Luis Torres <al1629608 at ...131...>
Cc: snort-users at lists.sourceforge.net
Sent: Tuesday, February 6, 2007 10:39:58 AM
Subject: Re: [Snort-users] BASE config problem - update


Thanks for the reply.  I have been
away from the machine for a while and am only now getting to run these

php --version

PHP 5.1.6 (cli) (built: Nov  3
2006 07:27:53)

Copyright (c) 1997-2006 The PHP Group

Zend Engine v2.1.0, Copyright (c) 1998-2006
Zend Technologies

rpm -qa | grep -i mysql






The output of phpinfo( ) includes the
following. I guess the '- -without-mysql' is the main problem - 


magic' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml'
'--with-apxs2=/usr/sbin/apxs'  --without-mysql' '--without-gd' '--without-odbc'
'--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader


Based on your mail it looks like I'm
not going anywhere until I get mysql support added/included to my php install.
 I originally didn't have php-mysql installed, but I added it before
running the rom query above.  I retried the setup script, but unfortunately
I still get the same errors.

Any other suggestions ?




David Ryan

IT Security Engineer, Global IT Security

Quintiles SIS, QDUB

david.ryan at ...14057...


Luis Torres <al1629608 at ...131...>

29/01/2007 14:55


David.Ryan at ...13912...,
snort-users at lists.sourceforge.net



Re: [Snort-users] BASE config
problem - update


the PHP interpreter generates the errors you see on apache's error_log.
The error is saying your php can't find the mysql_pconnect function so:

1. What version of php do you have? (use php --version)

2. Is it compiled with php support or have php-mysql? (create a script
only with phpinfo() inside and/or run rpm -qa | grep -i mysql if you're
on an rpm based system)

3. what happens if you create a little script just to open a connection
to mysql? does it work? (just call mysql_pconnect, then close)

Good luck


----- Original Message ----

From: "David.Ryan at ...13912..." <David.Ryan at ...13912...>

To: snort-users at lists.sourceforge.net

Sent: Friday, January 26, 2007 11:12:15 AM

Subject: [Snort-users] BASE config problem - update

Sorry, shortly after posting to the list I did some further research and
found this in the error_log for Apache - 

'PHP Fatal error:  Call to undefined function mysql_pconnect() in
/var/www/html/adodb/drivers/adodb-mysql.inc.php on line 376'

This line is repeated for multiple attempts so I guess this is part of
the problem. 

Any suggestions ?  I am connecting to a mysql database, but it looks
like it is the function calll itself that is the problem rather than the
connection itself. 




David Ryan

IT Security Engineer, Global IT Security

Quintiles SIS, QDUB

**********************  IMPORTANT--PLEASE READ  ************************
This electronic message, including its attachments, is COMPANY CONFIDENTIAL
and may contain PROPRIETARY or LEGALLY PRIVILEGED information.  If you are 
not the intended recipient, you are hereby notified that any use, disclosure,
copying, or distribution of this message or any of the information included
in it is unauthorized and strictly prohibited.  If you have received this
message in error, please immediately notify the sender by reply e-mail and
permanently delete this message and its attachments, along with any copies
thereof. If this electronic message contains a zipped attachment and you do
not have a decompression tool, you may download unZIP (free of cost) from:
http://www.mk-net-work.com/us/uz/unzip.htm. Alternatively, you may request
that the attachment be resent in an uncompressed format.        Thank you. 

Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.snort.org/pipermail/snort-users/attachments/20070206/58055b78/attachment.html>

More information about the Snort-users mailing list