-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Ewald,

- -------- Original Message  --------
From: "Ewald Jenisch" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: PHP Fatal error: Call to undefined function socket_create() in 
/usr/local/www/nfsen/nfsenutil.php
Date: Thu Nov 16 2006 19:04:42 GMT+0100 (CET)

> Hi Peter,
> 
> Sorry for writing to you personally but I'm having a hard time in
> getting nfsen running under FreeBSD 6.1; besides that the FreeBSD
> install-routine for nfsen says Please send bug reports back to me:
> [EMAIL PROTECTED]".
> 
> 
> 
> My basic problem is, that I get a blank page upon trying to access
> http://<myserver>/nfsen/nfsen.php

First of all, make sure you have php short tags on in your php.ini

ShortTags = On

> 
> The httpd error-logs shows entries like the following:
> 
> [Thu Nov 16 17:55:05 2006] [error] [client 143.245.2.2] PHP Fatal
> error:  Call to undefined function socket_create() in
> /usr/local/www/nfsen/nfsenutil.php on line 15
> [Thu Nov 16 18:40:21 2006] [error] [client 143.245.2.2] PHP Fatal
> error:  Call to undefined function socket_create() in
> /usr/local/www/nfsen/nfsenutil.php on line 14
> 
> Lines 14 and 15 of nfsenutil.php are
> 
>     14                 $nfsend = socket_create(AF_UNIX, SOCK_STREAM, 0);
>     15                 // $nfsend = fsockopen( $sock, 0, $errno,
> $errstr, 10 );
>     16                 socket_set_option($nfsend, SOL_SOCKET,
> SO_REUSEADDR,1);
> 
> 
> I've de- and reinstalled everything relating to nfsen - all of its
> dependencies - everything re-built from source - to no extent.
> 
> 
> Any ideas what could be wrong here? Any way to track this down?

I'm not an expert for FreeBSD, but it seems as you have the required module 
installed. Do you need to enable the modules after installing? I'm sure Wim 
Bimolt on the list can help you as he has
everything working under FreeBSD. - Wim?

        - Peter

> 
> 
> My environment is this:
> FreeBSD 6.1
> nfdump-1.5.2
> nfsen-1.2.4.20060810
> php5-5.2.0
> php5-mysql-5.2.0
> php5-pcre-5.2.0
> php5-session-5.2.0
> php5-snmp-5.2.0
> php5-sockets-5.2.0
> php5-xml-5.2.0
> apache-2.2.3
> (everything built from ports, i.e. from source - all ports up2date)
> 
> 
> 
> 
> I definitely want to get nfsen running under FreeBSD - nfsen
> definitely is one of the best pieces of software for managing netflow
> data out there!!
> 
> Thanks much in advance for your help,
> -ewald
> 
> PS: Please note that I've already sent my problem report to the
> nfsen-discuss mailing list with a subject of "Blank page when
> accessing nfsen + httpd error message "PHP Warning:
> socket_connect()..."", but didn't get anything helpful.
> 

- --
_______ SWITCH - The Swiss Education and Research Network ______
Peter Haag,  Security Engineer,  Member of SWITCH CERT
PGP fingerprint: D9 31 D5 83 03 95 68 BA  FB 84 CA 94 AB FC 5D D7
SWITCH,  Limmatquai 138,  CH-8001 Zurich,  Switzerland
E-mail: [EMAIL PROTECTED] Web: http://www.switch.ch/security
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iQCVAwUBRV2Gif5AbZRALNr/AQLuTQP/XlnMZ4zpAt2ZMVIXHfMrzKHmh6yLMnOU
Z/I9omvBR3znXKjel4QIoF1j8+adHnUUtc4woLwMSvrmMllP3eP3clHlmMVFSAof
ai6kNM2v6DJlFfj55M7lYgmZlJHuaENWzDvLcF0K/yjhd/XSSjTpaIsYMyCVTY6k
0opTun6yz6A=
=v8I/
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nfsen-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss

Reply via email to