Install script findet mysql nicht
Install script findet mysql nicht
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
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
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
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).
- Oliver Georgi
- Site Admin
- Posts: 9900
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
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.
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.
- Oliver Georgi
- Site Admin
- Posts: 9900
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
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
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
Der Fehler ist doch eindeutig, oder ?
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.
sollte abhilfe schaffen
(Nicht definierte Funktion)Fatal error: Call to undefined function: mysql_pconnect()
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
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
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