Results 1 to 9 of 9

Thread: Streaming Server - KPlaylist

  1. #1

    Streaming Server - KPlaylist

    Wie in diesem 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 Tutorial sehr einfach war.

    Im nächsten Schritt wurde (php)-Mysql installiert.
    Code:
    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:

    Code:
    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:

    Code:
    ; 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?
    Last edited by sequence; 24-02-2008 at 13:28. Reason: Erweiterung

  2. #2
    Join Date
    Nov 2005
    Location
    Germany
    Posts
    423

    PHP.ini von einem Debian-Server mit kPlaylist

    Hi,

    ich kann dir eine PHP.ini von einem Debian-Server mit kPlaylist senden wenn dir das was hilft.

    Gruß.

  3. #3
    Gerne! Vllt. finde ich so die Stelle, an der das Mysql Modul ausgewiesen ist.

    In anderen Foren habe ich gelesen, dass die php-mysql Connectivity nach dem Installieren des 'php-mysql' Pakets out-of-the-box funktieren sollte :/

  4. #4
    Join Date
    Nov 2005
    Location
    Germany
    Posts
    423
    Hi,
    Quote Originally Posted by sequence View Post
    In anderen Foren habe ich gelesen, dass die php-mysql Connectivity nach dem Installieren des 'php-mysql' Pakets out-of-the-box funktieren sollte :/
    wie meinst du das?

    Gruß.

    PS:
    Habe es testweise hinbekommen den Music Player Daemon www.MusicPD.org und das phpMp - Web interface written in PHP ans laufen zu bekommen.
    Ich muß sagen das der mehr CPU benätigt als mein normaler Player (siehe mein HowTo). Wobei mir andere das Gegenteil mitteilen. Jetzt weiß ich nicht ob es ein andere Version ist die die benutzten oder ob das mit dem Compilieren zusammenhängt und der Gleitkommazahlen und das das die WL-HDD nicht richtig kann aufgrund ihrer MIPS-CPU.
    Attached Images Attached Images  
    Last edited by WLAN-Fan; 25-02-2008 at 19:23.

  5. #5
    In anderen Foren habe ich gelesen, dass die php-mysql Connectivity nach dem Installieren des 'php-mysql' Pakets out-of-the-box funktieren sollte :/

    -> wie meinst du das?
    durch folgende msg gehe ich davon aus, dass php-mysql nicht konfiguriert/aktiviert ist.

    Code:
    Your PHP seem to lack MySQL support. Please locate your php.ini file and enable MySQL support.
    auf der suche nach einem hinweis, wie das in der php.ini zu verankern wäre, bin ich auf diesen post gestoßen.

    offensichtlich soll sich das paket selbst konfigurieren; was es in meinem fall nicht getan hat, oder die fehlermeldung ist irreführend.

    da stecke ich momentan :/

    @musicpd & phpmp ... sieht aufgeräumt aus. wär fein, wenns eine applikation gäbe, die sowohl per http streamen, als auch lokal als jukebox arbeiten könnte.

  6. #6
    habe einiges ausprobiert. und es funktioniert nun.

    folgende schritte haben zum erfolg geführt:
    1) cherokee + php installation mit diesem tutorial.
    2) ikpg install php-mysql
    3) in der php.ini "extension=mysql.so" hinzufügen.
    4) bei bedarf das "memory_limit" in der php.ini raufsetzen. siehe hier warum.
    5) download unzip, untar & copy kplaylist into the web dir.

    enjoy
    Last edited by sequence; 26-02-2008 at 13:32.

  7. #7
    Join Date
    Nov 2005
    Location
    Germany
    Posts
    423
    Hi,
    Quote Originally Posted by sequence View Post
    1) cherokee + php installation mit diesem tutorial.
    Ist cherokee ein WebServer?
    Wenn ja was macht der anders als "ipkg install php-thttpd" thttpd-Web-Server?
    Läuft der stabiler? Resorcenschonender?
    Quote Originally Posted by sequence View Post
    2) ikpg install php-mysql
    Wie stabil ist den MySQL auf der WL-HDD damit?
    Oder was kann ich erwarten und was nicht?

    Hast du den http + MySQL-Server mit in den Cron aufgenommen so als Watchdog so zu sagen?
    Quote Originally Posted by sequence View Post
    3) in der php.ini "extension=mysql.so" hinzufügen.
    Wie biste drauf gekommen?

    Gruß WLAN-Fan.

  8. #8
    Ist cherokee ein WebServer?
    Wenn ja was macht der anders als "ipkg install php-thttpd" thttpd-Web-Server?
    Läuft der stabiler? Resorcenschonender?
    Ja, das ist ein WebServer.
    Ja, er dürfte lt. diesem einfachen Benchmark performanter arbeiten. Ist denke ich für unseren Einsatzzweck recht egal.

    Wie stabil ist den MySQL auf der WL-HDD damit?
    Oder was kann ich erwarten und was nicht?

    Hast du den http + MySQL-Server mit in den Cron aufgenommen so als Watchdog so zu sagen?
    Uhm ... bis jetzt rennt MySql stabil.
    Ja, der MySql Server & Cherokee werden beim Booten hochgefahren. Das macht ipkg.

    Wie biste drauf gekommen?
    Frage nicht ^^
    Last edited by sequence; 26-02-2008 at 19:25.

  9. #9
    Quote Originally Posted by sequence View Post
    habe einiges ausprobiert. und es funktioniert nun.

    folgende schritte haben zum erfolg geführt:
    1) cherokee + php installation mit diesem tutorial.
    2) ikpg install php-mysql
    3) in der php.ini "extension=mysql.so" hinzufügen.
    4) bei bedarf das "memory_limit" in der php.ini raufsetzen. siehe hier warum.
    5) download unzip, untar & copy kplaylist into the web dir.

    enjoy
    Funktioniert perfekt! Riesen dankeschön dafür

    Hatte lighttpd mit php schon installiert und bin dann bei punkt 2 eingestiegen. Wichtig vor der mysql installation muss der rootuser "root" heißen
    Last edited by DjDuffy; 26-02-2008 at 19:53.

Similar Threads

  1. iptables to port forward to a server
    By oggie in forum WL-500gP Q&A
    Replies: 2
    Last Post: 07-02-2008, 17:48
  2. ASUS WL-500gP + Oleg und Virtuelle Server
    By Sassi in forum German Discussion - Deutsch (DE)
    Replies: 4
    Last Post: 29-05-2007, 16:25
  3. HowTo install a lightweight blog server
    By Tamadite in forum WL-500g/WL-500gx Tutorials
    Replies: 0
    Last Post: 03-12-2006, 01:46
  4. Gameserver
    By blingbling in forum WL-500gP Q&A
    Replies: 2
    Last Post: 17-07-2006, 15:37
  5. FTP server op wl500g-dlx niet bereikbaar vanaf internet
    By Sawilla in forum Dutch Discussion - Nederlands
    Replies: 16
    Last Post: 19-12-2005, 09:37

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •