Call to undefined function preg_match()

scup

Well-Known Member
Hallo zusammen,

ich wusste nicht, welchen Titel ich wählen sollte, deswegen direkt die Fehlermeldung, um die es unter anderem geht.

Zum System:

FreeBSD 5.3 BETA 4
apache-2.0.52_4
mysql-server-5.0.2
mysql-client-5.0.2
mod_php5-5.0.3_1,1
perl-5.8.5

Ich habe alle Module per portinstall installiert, und die httpd.conf vom Apache konfiguriert.

Alle Server konnten erfolgreich gestartet werden.

Wenn ich php mit

<?php
phpinfo();
?>

abfrage scheint auch alle sweit OK, aber sobald ich im selben Verzeichnis phpmyadmin starten will, kommt folgende Fehlermeldung.

Hier mal die Meldung:



Fatal error: Call to undefined function preg_match() in /usr/www/meine-domain/htdocs/phpmyadmin/libraries/defines.lib.php on line 36

in Zeile 36 steht folgendes

Code:
// php version
if (!defined('PMA_PHP_INT_VERSION')) {
    if (!preg_match('@([0-9]{1,2}).([0-9]{1,2}).([0-9]{1,2})@', phpversion(), $match)) {
        $result = preg_match('@([0-9]{1,2}).([0-9]{1,2})@', phpversion(), $match);
    }

Auch andere PHP basierende Programme wie z.B. das Burningbook von Woltlab gibt da ne ähnliche Fehlermeldung aus.

Ich habe schon stundenlang gelesen und ausprobiert, und ich bin mir auch ziemlich sicher, das es nur eine Kleinigkeit sein, aber ich komme einfach nicht drauf..........

Der Apache lässt sich auch wunderbar übers www ansprechen. Eine Überprüfung per Webmin, ob auch der mysql-server läuft, ist ebenfalls positiv.
 
Installier dir noch die lang/php5-extensions. Dort gibt es nützliche Erweiterungen, wichtig für dich ist vor allem "Perl Compatible Regular Expression support". Dort ist nämlich die Funktion preg_match enthalten.
 
Hallo auch,

nun habe ich mal die extensions installiert, und als ersten Erfolg kommt jetzt Fehlermeldung von phpmyadmin, mit nem direkten Link hierher:

Code:
[1.20] I receive the error "cannot load MySQL extension, please check PHP Configuration". 
To connect to a MySQL server, PHP needs a set of MySQL functions called "MySQL extension". This extension may be part of the PHP distribution (compiled-in), otherwise it needs to be loaded dynamically. Its name is probably mysql.so or php_mysql.dll. phpMyAdmin tried to load the extension but failed

hmmmmm.....................
 
Hier nochmal alle installierten Pakete auf meinem System:


apache-2.0.52_4 Version 2 of Apache web server with prefork MPM.
autoconf-2.13.000227_5 Automatically configure source code on many Un*x platforms
autoconf-2.53_3 Automatically configure source code on many Un*x platforms
autoconf-2.59_2 Automatically configure source code on many Un*x platforms
automake-1.4.6_1 GNU Standards-compliant Makefile generator (legacy version
automake-1.5_2,1 GNU Standards-compliant Makefile generator (version 1.5)
bison-1.75_2 A parser generator from FSF, (mostly) compatible with Yacc
bsdpan-DBD-mysql-2.9004 DBD::mysql - MySQL driver for the Perl5 Database Interface
bsdpan-DBI-1.46 DBI - Database independent interface for Perl
cfengine-1.6.3_5 GNU cfengine - a systems administration tool for networks
cvsup-16.1h General network file distribution system optimized for CVS
db3-3.3.11_2,1 The Berkeley DB package, revision 3.3
expat-1.95.8 XML 1.0 parser written in C
fontconfig-2.2.3,1 An XML-based font configuration API for X Windows
freetype2-2.1.7_3 A free and portable TrueType font rendering engine
gettext-0.14.1 GNU gettext package
glib-2.4.8 Some useful routines of C programming (current stable versi
gmake-3.80_2 GNU version of 'make' utility
help2man-1.34.2 Automatically generating simple manual pages from program o
imake-6.7.0_2 Imake and other utilities from X.Org
libiconv-1.9.2_1 A character set conversion library
libslang-1.4.9 Routines for rapid alpha-numeric terminal applications deve
libtool-1.3.5_2 Generic shared library support script (version 1.3)
libtool-1.5.10 Generic shared library support script (version 1.5)
libxml2-2.6.16 XML parser library for GNOME
m4-1.4.1 GNU m4
mc-4.6.0_13 Midnight Commander, a free Norton Commander Clone
mod_php5-5.0.3_1,1 PHP Apache Module
mysql-client-5.0.2 Multithreaded SQL database (client)
mysql-scripts-5.0.2 Multithreaded SQL database (scripts)
mysql-server-5.0.2 Multithreaded SQL database (server)
p5-Authen-PAM-0.14 A Perl interface to the PAM library
p5-Net-SSLeay-1.25 Perl5 interface to SSL
p5-Term-ANSIColor-1.08 Color screen output using ANSI escape sequences
p5-Term-ReadKey-2.21 A perl5 module for simple terminal control
p5-gettext-1.03 Message handling functions
perl-5.8.5 Practical Extraction and Report Language
php5-ctype-5.0.3_1 The ctype shared extension for php
php5-dom-5.0.3_1 The dom shared extension for php
php5-extensions-1.0 A "meta-port" to install PHP extensions
php5-iconv-5.0.3_1 The iconv shared extension for php
php5-pcre-5.0.3_1 The pcre shared extension for php
php5-posix-5.0.3_1 The posix shared extension for php
php5-session-5.0.3_1 The session shared extension for php
php5-simplexml-5.0.3_1 The simplexml shared extension for php
php5-sqlite-5.0.3_1 The sqlite shared extension for php
php5-tokenizer-5.0.3_1 The tokenizer shared extension for php
php5-xml-5.0.3_1 The xml shared extension for php
pkgconfig-0.15.0_1 A utility used to retrieve information about installed libr
portupgrade-20041226_1 FreeBSD ports/packages administration and management tool s
proftpd-1.2.10_1 Highly configurable ftp daemon
ruby-1.8.2_1 An object-oriented interpreted scripting language
ruby18-bdb1-0.2.2 Ruby interface to Berkeley DB revision 1.8x with full featu
tcl-8.4.7,1 Tool Command Language
webmin-1.170_5 Web-based interface for system administration for Unix
xorg-libraries-6.7.0_1 X11 libraries and headers from X.Org



vieleicht sieht ja einer von Euch direkt wo der Hase im Pfeffer liegen könnte :gpaul:
 
scup schrieb:
Hallo auch,

nun habe ich mal die extensions installiert, und als ersten Erfolg kommt jetzt Fehlermeldung von phpmyadmin, mit nem direkten Link hierher:

Code:
[1.20] I receive the error "cannot load MySQL extension, please check PHP Configuration". 
To connect to a MySQL server, PHP needs a set of MySQL functions called "MySQL extension". This extension may be part of the PHP distribution (compiled-in), otherwise it needs to be loaded dynamically. Its name is probably mysql.so or php_mysql.dll. phpMyAdmin tried to load the extension but failed

hmmmmm.....................

Errrrr, PHPMyAdmin sagt es ja: die MySQL extension fehlt. Sehr wahrscheinlich hast du vergessen, sie beim kompilieren von php5-extensions anzuwählen. Also, nach /usr/ports/lang/php5-extensions gehen, "make clean && make config" eingeben und die Auswahl sorgfältig durchschauen und alles anwählen was du brauchst (oder brauchen wirst).
 
Hallo Dr. Sweety,

das war der Baum, den ich nicht gesehen habe :apaul:

Vielen Dank für Deine Hilfe !!!!!
 
Zurück
Oben