Subject: Re: PHP warnings when starting apache
To: Quentin Garnier <netbsd@quatriemek.com>
From: Simon Burge <simonb@wasabisystems.com>
List: tech-pkg
Date: 04/22/2004 14:50:22
Quentin Garnier wrote:

> Le Thu, 22 Apr 2004 13:20:33 +1000
> Simon Burge a ecrit :
> > Folks,
> > 
> > I've just noticed the following warning in my apache log file:
> > 
> > PHP Warning:  Unknown(): Unable to load dynamic library
> > '/usr/pkg/lib/php/20020429/session.so' - Cannot open
> > &quot;/usr/pkg/lib/php/20020429/session.so&quot; in Unknown on line 0
> > PHP Warning:  Unknown(): Unable to load dynamic library
> > '/usr/pkg/lib/php/20020429/pcre.so' - Cannot open
> > &quot;/usr/pkg/lib/php/20020429/pcre.so&quot; in Unknown on line 0
> > 
> > Looking back through the log file, they seem to have been happening
> > ~forever, but they don't appear to be causing any problems
> > (ie, squirrelmail still works).  This is on 1.6.2/i386 with a
> > couple-of-hours-old pkgsrc.  Any ideas?
> 
> Are php-session and php-pcre installed?  If not, maybe you're still
> referencing them in php.ini?

That was it!  I'd been grepping around for "20020429" and not
"session.so" so I didn't see /usr/pkg/etc/php.ini.

I copied /usr/pkg/share/examples/php/php.ini-recommended over
/usr/pkg/etc/php.ini and squirrelmail still works.

Thanks,
Simon.
--
Simon Burge                            <simonb@wasabisystems.com>
NetBSD Support and Service:         http://www.wasabisystems.com/