php5, unable to use pcre module

Anish Mistry mistry.7 at osu.edu
Thu Apr 21 21:56:33 PDT 2005


On Thursday 21 April 2005 10:59 pm, you wrote:
> Hi.  Thanks for the suggestion:
> > It looks like your module versions are out of date.  Try to
> > recompile apache and all your php extensions.
>
> I tried to accomplish this by doing:
> cd /usr/ports/lang/php5
> make deinstall
> cd /usr/ports/lang/php5-extensions

extensions is a meta port.  Make sure that all the php5 extensions are 
actually removed and you've done a make clean so they all get rebuilt 
just not reinstalled.  pkg_delete php5\*

> make deinstall
> cd /usr/ports/www/apache2
> make deinstall
> make reinstall
> cd /usr/ports/lang/php5
> make reinstall
> cd /usr/ports/lang/php5-extensions
> make reinstall
>
> This didn't seem to change anything.  I also tried installing
> /usr/ports/www/mod_php5 but that seemed to conflict with the php5
> installation.
>
> Am I doing this right?  Any other suggestions?
>
> Thanks
>
> Quoting Anish Mistry <mistry.7 at osu.edu>:
> > On Wednesday 20 April 2005 11:07 pm, Stephen Kelly wrote:
> > > Hi All,
> > >
> > > I'm using freebsd 5.3, apache2, and php5.  I was getting the
> > > following error from one of my php scripts:
> > >
> > > Fatal error: Call to undefined function preg_match()
> > >
> > > So, after looking around on various lists, I determined that I
> > > needed to install php5-pcre, so I installed the ports
> > > /usr/port/devel/pcre, and /usr/ports/devel/php5-pcre.
> > >
> > > But now I get the following error in my
> > > /var/log/httpd-error.log file:
> > >
> > > PHP Warning:  PHP Startup: pcre: Unable to initialize module
> > > Module compiled with module API=20040412, debug=1,
> > > thread-safety=0 PHP    compiled with module API=20041030,
> > > debug=1, thread-safety=0 These options need to match in Unknown
> > > on line 0
> >
> > It looks like your module versions are out of date.  Try to
> > recompile apache and all your php extensions.
> >
> > > Can anyone tell me how to solve this problem?
> > > I also tried installing /usr/ports/lang/php5-extensions but I
> > > got similar errors for many of the extensions.  I have also
> > > recently upgraded my ports collection with cvsup.  I've been
> > > frigging around deinstalling and reinstalling things but I
> > > can't find the actual problem.
> > >
> > > Any help is greatly appreciated.
> > > Thanks,
> > > Stephen
> > > _______________________________________________
> > > freebsd-questions at freebsd.org mailing list
> > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > > To unsubscribe, send any mail to
> > > "freebsd-questions-unsubscribe at freebsd.org"
> >
> > --
> > Anish Mistry

-- 
Anish Mistry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050422/f9a9c70e/attachment.bin


More information about the freebsd-questions mailing list