PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : PHP mit MySQL Unterstützung



26-03-2001, 16:27
Ich wollte PHP mit Mysql Unterstützung installiern. Also hab ich php neu kompiliert mit der Option --with-mysql. Ich hab auch das mod_php installiert ohne Probleme. Aber wenn ich nun das php-mysql installiert habe kommt trotzdem:

Fatal error: Call to undefined function: mysql_connect() in /home/subsys.tzo.cc/html/admin/lib.inc.php on line 255
Ich hab php-mysql.. so installiert:
rpm -ivh --nodeps php-mysql.. , da er nach php4.0.4pl1 verlangt hat welches schon vorhanden ist. Kann es sein, dass er php nicht findet, da er jetzt sagt bei rpm -Uvh php-mysql..
php = 4.0.4pl1 wird von php-mysql-4.0.0pl11-10.arvin gebraucht.

Ich hoffe ihr könnt mir helfen!

27-03-2001, 14:18
BITTE KANN MIR JEMAND HELFEN??

[Dieser Beitrag wurde von sUbsYs am 27. März 2001 editiert.]

27-03-2001, 19:54
Bitte!

28-03-2001, 07:41
Hi,

welche Distri hast du denn ?

und so wie es aussieht, hast du php nicht in die Standardpfade installiert, ist denn der Pfad von php dem system bekannt ?

martin

28-03-2001, 16:17
Ich hab php ganz normal konfiguríert.

./configure --with-mysql
make
make install

Dann hat er doch die Standart-Pfade, oder?
Mein php geht ja ohne Probleme. Es ist nur das er die php Befehle mysql_connect und mysql_pconnect(oder wie auch imm die heissen) nicht kennt.

Hier der Configure Command aus meiner Test.php (also <?phpinfo()?>)

'./configure' '--prefix=/usr' '--with-apxs' '--libdir=/usr/lib/php4' '--includedir=/usr/include' '--datadir=/usr/share/php' '--with-config-file-path=/etc' '--enable-inline-optimization' '--enable-magic-quotes' '--enable-track-vars' '--enable-memory-limit' '--enable-wddx' '--enable-bcmath' '--enable-sigchild' '--with-xml' '--with-mm' '--enable-ftp=shared' '--enable-exif=shared' '--with-gd=shared,/usr' '--with-ttf' '--enable-gd-imgstrttf' '--with-png-dir=/usr' '--with-jpeg-dir=/usr' '--enable-sysvsem=shared' '--enable-sysvshm=shared' '--enable-shmop=shared' '--with-unixODBC=shared' '--with-mysql=shared,/usr' '--with-ldap=shared' '--with-imap=shared' '--with-imap-ssl' '--with-pgsql=shared' '--with-gettext=shared' '--with-pspell=shared' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-sybase-ct=shared,/usr/freetds' '--with-pdflib=shared' '--with-oci8=shared' '--with-swf=shared,/home/troels/rpm/BUILD/php-4.0.4pl1/swflib' '--enable-sockets=shared' '--with-gmp=shared' '--with-dom=shared' '--with-qtdom=shared,/usr/lib/qt-2.2.4' '--with-curl=shared' '--with-openssl' '--enable-apc=shared' '--with-ming=shared' '--with-imlib=shared' '--with-zlib=/usr'



[Dieser Beitrag wurde von sUbsYs am 28. M&auml;rz 2001 editiert.]

28-03-2001, 19:00
In der INSTALL steht, dass ich den Pfad zu shared libaries angeben soll. Als Beispiel ist die libmysqlclient.so angegeben. Nun könnte das nun der auslöser für das Problem sein. Wo kann ich diese Datei finden??

28-03-2001, 20:16
Ich hab folgende Pakete installiert:
mod_php-4.0.4pl1
php-4.0.4pl1
php-mysql-4.0.4pl1
MySQL-3.23.35
MySQL-shared-3.23.36
MySQL-client-3.23.35
ALLE Pakete wurden OHNE Probleme installiert!
Was soll ich den noch machen?

29-03-2001, 14:17
Inzwischen geht es. Ich hab alles an Paketen runtergeschmissen und neu installiert.
Irgendwas hat da eindeutig nicht gestimmt, wenn ich bloss wüsste was!

30-03-2001, 00:34
hi

was genau steht denn hier?
/home/subsys.tzo.cc/html/admin/lib.inc.php on line 255
poste das mal

gruß
Daniel