sequence
24-02-2008, 12:08
Wie in diesem (http://wl500g.info/showthread.php?t=13134) Thread beschrieben, konnte ich gnump3d zum Laufen bringen. Jedoch treten bei größeren Mengen an MP3s (~200gb) Probleme auf. Außerdem gibt es kein User Management -> alle Besucher können auf alle MP3s zugreifen; schlecht in Tagen wie diesen.
Insofern werde ich nun dem Rat von "WLAN-Fan" (thx!) folgen und KPlaylist versuchen.
Erster Schritt war für mich lighttpd + php zum Laufen zu kriegen, was dank diesem (http://www.nslu2-linux.org/wiki/HowTo/DeployPHPWebAppUsingFastCGI)Tutorial sehr einfach war.
Im nächsten Schritt wurde (php)-Mysql installiert.
ipkg install php-mysql -V 2
pkg_info_preinstall_check: updating arch priority for each package
pkg_info_preinstall_check: update file owner list
Installing php-mysql (5.2.5-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/php-mysql_5.2.5-1_mipsel.ipk
using latest matching mysql 4.1.20-3 mipsel
Installing mysql (4.1.20-3) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/mysql_4.1.20-3_mipsel.ipk
Running script /opt/ipkg-ujh8SN/mysql-TFJTGg/preinst
installing maintainer scripts
installing data files
extracting data files to /
creating mysql.list file
creating //opt/lib/ipkg/info/mysql.list file for pkg mysql
resolving conf files
cleanup temp files
cleanup_temporary_files: pkg=mysql local_filename=/opt/ipkg-ujh8SN/mysql_4.1.20-3_mipsel.ipk tmp_dir=/opt/ipkg-ujh8SN
Done.
Running script /opt/ipkg-ujh8SN/php-mysql-4CcFZ8/preinst
installing maintainer scripts
installing data files
extracting data files to /
creating php-mysql.list file
creating //opt/lib/ipkg/info/php-mysql.list file for pkg php-mysql
resolving conf files
cleanup temp files
cleanup_temporary_files: pkg=php-mysql local_filename=/opt/ipkg-ujh8SN/php-mysql_5.2.5-1_mipsel.ipk tmp_dir=/opt/ipkg-ujh8SN
Done.
Configuring unpacked packages
Configuring mysql
Running script //opt/lib/ipkg/info/mysql.postinst
`root:root': invalid user
Starting MySQL.. SUCCESS!
Configuring php-mysql
Running script //opt/lib/ipkg/info/php-mysql.postinst
writing status file
pkg_write_changed_filelists: saving changed filelists
creating mysql.list file
creating //opt/lib/ipkg/info/mysql.list file for pkg mysql
creating php-mysql.list file
creating //opt/lib/ipkg/info/php-mysql.list file for pkg php-mysql
Successfully terminated.
Mit mysql komme ich in den DB Shellprompt, es sah noch alles sehr gut aus, aber nachdem ich das Php Installfile von Kplaylist ins Php-Dir gespielt habe, bekam ich diesen Error im Webbrowser zu gesicht:
Your PHP seem to lack MySQL support. Please locate your php.ini file and enable MySQL support.
Die Datei php.ini liegt in /opt/etc/ & enthält folgende Passage, die für Mysql relevant zu sein scheint:
; 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 seconds) for connect timeout. -1 means no limit
mysql.connect_timeout = 60
; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
; SQL-Errors will be displayed.
mysql.trace_mode = Off
Ich habe versucht default_host auf localhost & default_user auf root zu setzen. Das hat aber leider keinen Erfolg gebracht.
Einen Konfigeintrag zum Aktivieren/Deaktivieren konnte ich nicht finden.
Hat jemand von euch schon Erfahrung mit dem Problem gemacht?
Insofern werde ich nun dem Rat von "WLAN-Fan" (thx!) folgen und KPlaylist versuchen.
Erster Schritt war für mich lighttpd + php zum Laufen zu kriegen, was dank diesem (http://www.nslu2-linux.org/wiki/HowTo/DeployPHPWebAppUsingFastCGI)Tutorial sehr einfach war.
Im nächsten Schritt wurde (php)-Mysql installiert.
ipkg install php-mysql -V 2
pkg_info_preinstall_check: updating arch priority for each package
pkg_info_preinstall_check: update file owner list
Installing php-mysql (5.2.5-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/php-mysql_5.2.5-1_mipsel.ipk
using latest matching mysql 4.1.20-3 mipsel
Installing mysql (4.1.20-3) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/mysql_4.1.20-3_mipsel.ipk
Running script /opt/ipkg-ujh8SN/mysql-TFJTGg/preinst
installing maintainer scripts
installing data files
extracting data files to /
creating mysql.list file
creating //opt/lib/ipkg/info/mysql.list file for pkg mysql
resolving conf files
cleanup temp files
cleanup_temporary_files: pkg=mysql local_filename=/opt/ipkg-ujh8SN/mysql_4.1.20-3_mipsel.ipk tmp_dir=/opt/ipkg-ujh8SN
Done.
Running script /opt/ipkg-ujh8SN/php-mysql-4CcFZ8/preinst
installing maintainer scripts
installing data files
extracting data files to /
creating php-mysql.list file
creating //opt/lib/ipkg/info/php-mysql.list file for pkg php-mysql
resolving conf files
cleanup temp files
cleanup_temporary_files: pkg=php-mysql local_filename=/opt/ipkg-ujh8SN/php-mysql_5.2.5-1_mipsel.ipk tmp_dir=/opt/ipkg-ujh8SN
Done.
Configuring unpacked packages
Configuring mysql
Running script //opt/lib/ipkg/info/mysql.postinst
`root:root': invalid user
Starting MySQL.. SUCCESS!
Configuring php-mysql
Running script //opt/lib/ipkg/info/php-mysql.postinst
writing status file
pkg_write_changed_filelists: saving changed filelists
creating mysql.list file
creating //opt/lib/ipkg/info/mysql.list file for pkg mysql
creating php-mysql.list file
creating //opt/lib/ipkg/info/php-mysql.list file for pkg php-mysql
Successfully terminated.
Mit mysql komme ich in den DB Shellprompt, es sah noch alles sehr gut aus, aber nachdem ich das Php Installfile von Kplaylist ins Php-Dir gespielt habe, bekam ich diesen Error im Webbrowser zu gesicht:
Your PHP seem to lack MySQL support. Please locate your php.ini file and enable MySQL support.
Die Datei php.ini liegt in /opt/etc/ & enthält folgende Passage, die für Mysql relevant zu sein scheint:
; 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 seconds) for connect timeout. -1 means no limit
mysql.connect_timeout = 60
; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
; SQL-Errors will be displayed.
mysql.trace_mode = Off
Ich habe versucht default_host auf localhost & default_user auf root zu setzen. Das hat aber leider keinen Erfolg gebracht.
Einen Konfigeintrag zum Aktivieren/Deaktivieren konnte ich nicht finden.
Hat jemand von euch schon Erfahrung mit dem Problem gemacht?