SquirrelMail woes

Mike Oliveri moliveri at gmail.com
Sun Dec 12 01:07:12 PST 2004


> > [Sat Dec 11 16:14:58 2004] [error] PHP Fatal error:  Call to undefined
> > function:  session_id() in
> > /usr/local/www/data/webmail/functions/global.php on line 293
> >
> > The SquirrelMail wiki says to rebuild PHP with --enable-session, and
> > also has the suggestion session.file_handler set to "files" (I assume
> > it means session-save_handler as that's all I found). If I run
> > pkg_version -v, here's what it has to say about PHP, so I assume
> > php-session is the equivalent of compiling with --enable-session:
> >
> This appears to be a case of not reading /usr/ports/UPDATING.  The php port
> was altered not too long ago, and the extensions were moved to a separate
> port.  You need to install both php4 *and* php4-extensions.  Then you'll
> have to reinstall squirrelmail.  Also, make sure you comment out the
> extensions_dir variable in php.info.

Actually, I do have php4-extensions installed -- most were installed
via SquirrelMail and I added php4-imap to the list. Here's a full list
of the extensions I have installed:

hp4-4.3.9_1                        =   up-to-date with port
php4-ctype-4.3.9_1                  =   up-to-date with port
php4-extensions-1.0                 =   up-to-date with port
php4-gettext-4.3.9_1                =   up-to-date with port
php4-imap-4.3.9_1                   =   up-to-date with port
php4-mbstring-4.3.9_1               =   up-to-date with port
php4-mhash-4.3.9_1                  =   up-to-date with port
php4-mysql-4.3.9_1                  =   up-to-date with port
php4-openssl-4.3.9_1                =   up-to-date with port
php4-overload-4.3.9_1               =   up-to-date with port
php4-pcre-4.3.9_1                   =   up-to-date with port
php4-posix-4.3.9_1                  =   up-to-date with port
php4-session-4.3.9_1                =   up-to-date with port
php4-tokenizer-4.3.9_1              =   up-to-date with port
php4-xml-4.3.9_1                    =   up-to-date with port
php4-zlib-4.3.9_1                   =   up-to-date with port

You mention php.info -- I have a php.conf with a directive PHP_EXT_DIR=20020429
Is this what needs to be commented out? 

Thanks,
Mike


More information about the freebsd-questions mailing list