Install script findet mysql nicht

Please post all install related problems here. Visit this forum first for troubleshooting.
Post Reply
bossy22
Posts: 55
Joined: Sun 9. Nov 2003, 22:05

Install script findet mysql nicht

Post by bossy22 »

Hallo,

ich glaube ich habe ein kleines Problem mit meiner Debian installation (Testing).

Wenn ich die setup.php aufrufe kommt folgende Fehlermeldung:

atal error: Call to undefined function: mysql_pconnect() in /var/www/phpwcms/include/inc_lib/default.inc.php on line 25

Der mysqld läuft aber. Ich habe zumindest über phpmyadmin Datenbank und User angelegt.

Folgende Pakete sind installiert:

mysql-server
mysql-client
php4-mysql
mysql.common


Jemand ne Idee was fehlen könnte?

Gruß

Bossy
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Re-check permissions for files and folders
you have to check access rights for special files and folders.


1) DIR phpwcms_tmp/thumb_list 777
2) DIR phpwcms_tmp/thumb_preview 777
3) DIR phpwcms_ftp 777
4) DIR phpwcms_filestorage/1...10 777
5) DIR content/images 777

6) FILE setup/setup.conf.inc.php 666
7) FILE phpwcms_template/inc_css/frontend.css 666
8) FILE phpwcms_template/inc_default/startup.html 666


All other files listed above can set to 644, directories to 755. Sometimes it can help to set mode to 766 for the following directories: phpwcms_tmp, phpwcms_template, phpwcms_ftptakeover, inc_css, content. If you have further access problems try to set all files and directories to 777 (not recommend).
User avatar
Oliver Georgi
Site Admin
Posts: 9900
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Entferne mal das Häkchen für persistent Connections.
Oder erlaube den persistenten Datenbankzugriff in der php.ini

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
bossy22
Posts: 55
Joined: Sun 9. Nov 2003, 22:05

Post by bossy22 »

Hatte einen Fehler gemacht. Habe mich unter Localhost nicht bis zum setup durchgeklickt und dadurch die index.php aufgerufen. Habe trotzdem weiterhin das Problem.

Habe mich durchs Setup gehangelt. ging alles glatt, bis zum zum ersten Login:
Dann kommt das:

Fatal error: Call to undefined function: mysql_connect() in /var/www/phpwcms/include/inc_lib/default.inc.php on line 27

Bis dahin läuft alles, auch wenn ich die localhost und user etc. für die mysql angebe.

Habe mich angeklickten und nicht angeklicktem Häkchen versucht.

Die Zeile in der php.ini lautet wie folgt:

[MySQL]
; Allow or prevent persistent links.
mysql.allow_persistent = On

Das ist doch die Zeile ,oder?

Noch was :

Hab auch versucht mambo zu installieren. Auch der sagt mir:

MySQL support Unavailable

Iregendwas ist hier falsch konfiguriert.
User avatar
Oliver Georgi
Site Admin
Posts: 9900
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Jo, klingt nach PHP5 - da ist der MySQL Support nicht mehr von Haus aus drin - also die dafür benötigte PHP-Erweiterung. Die Befehle gibt es an sich schon noch.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
bossy22
Posts: 55
Joined: Sun 9. Nov 2003, 22:05

Post by bossy22 »

Das glaube ich nicht.

Debian 3.1 (testing) hat folgendes Standardpaket:

Package php4

* testing (web): A server-side, HTML-embedded scripting language
4:4.3.4-4: alpha arm hppa i386 ia64 m68k mips mipsel powerpc s390 sparc


Hab nur Standards installiert.

Hier nochmal der komplette Auszug aus der php.ini.

Ich will nicht nerven, aber vielleicht hast du ja ne Antwort.

Gruß

[MySQL]
; Allow or prevent persistent links.
mysql.allow_persistent = On

; Maximum number of persistent links. -1 means no limit.
mysql.max_persistent = -1

; Maximum number of links (persistent + non-persistent). -1 means no limit.
mysql.max_links = -1

; Default port number for mysql_connect(). If unset, mysql_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
; at MYSQL_PORT.
mysql.default_port =

; Default socket name for local MySQL connects. If empty, uses the built-in
; MySQL defaults.
mysql.default_socket =

; Default host for mysql_connect() (doesn't apply in safe mode).
mysql.default_host =

; Default user for mysql_connect() (doesn't apply in safe mode).
mysql.default_user =

; Default password for mysql_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
; and reveal this password! And of course, any users with read access to this
; file will be able to reveal the password as well.
mysql.default_password =

; Maximum time (in secondes) for connect timeout. -1 means no limimt
mysql.connect_timeout = 60

; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
; SQL-Erros will be displayed.
mysql.trace_mode = Off
Naucki
Posts: 22
Joined: Thu 26. Feb 2004, 14:14

Post by Naucki »

Der Fehler ist doch eindeutig, oder ?
Fatal error: Call to undefined function: mysql_pconnect()
(Nicht definierte Funktion)
Das hat weder mit persistenten verbindungen noch mit anderen Settings @ my.cnf zu tun.

Du hast PHP per Debian Packete installiert. Dort fehlt die mySQL Extention.

Code: Select all

apt-get install php4-mysql
sollte abhilfe schaffen
bossy22
Posts: 55
Joined: Sun 9. Nov 2003, 22:05

Post by bossy22 »

Nein die ext. fehlt nicht:

debian:~# apt-get install php4-mysql
Reading Package Lists... Done
Building Dependency Tree... Done
php4-mysql is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 174 not upgraded.

Das haben sie mir beim Debianforum auch schon gesagt.

Gruß
bossy22
Posts: 55
Joined: Sun 9. Nov 2003, 22:05

Post by bossy22 »

Soll ich die DB nochmal runterfahren und neu starten?

wie mache ich das über die shell?

danke nochmal
bossy22
Posts: 55
Joined: Sun 9. Nov 2003, 22:05

Post by bossy22 »

Für alle die das Problme mal haben:

Offentsichtlich genügt es unter Debian nicht php4-mysql über apt-get zu installieren.

Folgende Zeile ist in der php.ini auskommentiert:

; Example lines:

;extension=mysql.so
;extension=gd.so

Semikolon vor etxension-mysql.so wegnehmen, apache per

/etc/init.d/apache stop anhalten und mit

/etc/init.d/apache start neu starten.

dann funzt alles..

Gruß

bossy
Post Reply