Results 1 to 12 of 12

Thread: Problem mit installtion von Lighttpd

  1. #1

    Problem mit installtion von Lighttpd

    Hallo zusammen,

    ich betreibe schon lange mein AsusWL500gx als nfs server für meine DBox.
    Das ist aber aufgrund einer neuen Settopbox nicht mehr nötig.
    Also wollte ich die HDD gegen einen USB-Stick tauschen und mir nach dieser Anleitung Lighttpd, PHP, MySQL und Eaccelerator installieren.
    Ich habe nochmals die schritte von wengi in seinem super tutorial ausgeführt,
    oder überprüft, ob alles identisch ist. Bis dahin ist alles super.
    Doch nun wollte ich die weiteren Schritte durchführen, und komme zu fehlermeldungen und keinem lauffähigen php/mysql.
    Der erste Teil klappt noch :
    PHP Code:
    [admin@Asus WL500gx root]$ ipkg update
    Downloading http
    ://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz
    Inflating http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz
    Updated list of available packages in /opt/lib/ipkg/lists/optware
    Successfully terminated
    .
    [
    admin@Asus WL500gx root]$ ipkg upgrade
    Nothing to be done
    Successfully terminated
    .
    [
    admin@Asus WL500gx root]$ ipkg install lighttpd
    Installing lighttpd 
    (1.4.28-1to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/lighttpd_1.4.28-1_mipsel.ipk
    package lighttpd suggests installing libxml2
    package lighttpd suggests installing lua
    package lighttpd suggests installing sqlite
    package lighttpd suggests installing mysql
    Installing pcre 
    (8.12-1to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/pcre_8.12-1_mipsel.ipk
    Installing libuclibc++ (0.2.2-9to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/libuclibc++_0.2.2-9_mipsel.ipk
    Installing spawn-fcgi (1.6.3-1to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/spawn-fcgi_1.6.3-1_mipsel.ipk
    Configuring libuclibc++
    Configuring lighttpd
    Starting web server
    lighttpd
    Configuring pcre
    Configuring spawn
    -fcgi
    Successfully terminated
    .
    [
    admin@Asus WL500gx root]$ 
    Doch dann fängt es an:
    PHP Code:
    [admin@Asus WL500gx root]$ ipkg install php php-curl php-dev php-fcgi php-gd php-imap php-ldap php-mbstring php-mysql php-pear php-xmlrpc
    Installing php 
    (5.2.17-1to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/php_5.2.17-1_mipsel.ipk
    Installing libxml2 (2.7.8-1to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/libxml2_2.7.8-1_mipsel.ipk
    Installing libxslt (1.1.26-2to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/libxslt_1.1.26-2_mipsel.ipk
    Installing php-curl (5.2.17-1to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/php-curl_5.2.17-1_mipsel.ipk
    Installing libcurl (7.21.3-1to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/libcurl_7.21.3-1_mipsel.ipk
    Installing php-dev (5.2.17-1to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/php-dev_5.2.17-1_mipsel.ipk
    Installing php-fcgi (5.2.17-1to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/php-fcgi_5.2.17-1_mipsel.ipk
    Installing php-gd (5.2.17-1to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/php-gd_5.2.17-1_mipsel.ipk
    Installing libgd (2.0.35-6to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/libgd_2.0.35-6_mipsel.ipk
    Installing libpng (1.2.44-1to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/libpng_1.2.44-1_mipsel.ipk
    Installing libjpeg (6b-3to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/libjpeg_6b-3_mipsel.ipk
    Installing freetype (2.3.6-1to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/freetype_2.3.6-1_mipsel.ipk
    Installing fontconfig (2.8.0-0to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/fontconfig_2.8.0-0_mipsel.ipk
    Installing gconv-modules (2.2.5-7to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/gconv-modules_2.2.5-7_mipsel.ipk
    Installing php-imap (5.2.17-1to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/php-imap_5.2.17-1_mipsel.ipk
    Installing imap-libs (2007a1-1to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/imap-libs_2007a1-1_mipsel.ipk
    Installing php-ldap (5.2.17-1to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/php-ldap_5.2.17-1_mipsel.ipk
    Installing php-mbstring (5.2.17-1to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/php-mbstring_5.2.17-1_mipsel.ipk
    Installing php-mysql (5.2.17-1to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/php-mysql_5.2.17-1_mipsel.ipk
    Installing mysql (4.1.22-3to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/mysql_4.1.22-3_mipsel.ipk
    Installing php-pear (5.2.17-1to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/php-pear_5.2.17-1_mipsel.ipk
    Installing php-xmlrpc (5.2.17-1to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/php-xmlrpc_5.2.17-1_mipsel.ipk
    Configuring fontconfig
    Configuring freetype
    Configuring gconv
    -modules
    Configuring imap
    -libs
    Configuring libcurl
    Configuring libgd
    Configuring libjpeg
    Configuring libpng
    Configuring libxml2
    Configuring libxslt
    Configuring mysql
    invalid user
    : `root'
    Installing all prepared tables
    Fill help tables

    To start mysqld at boot time you have to copy support-files/mysql.server
    to the right place for your system

    PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
    To do so, start the server, then issue the following commands:
    /opt/bin/mysqladmin -u root password 'new-password'
    /opt/bin/mysqladmin -u root -h Asus WL500gx password 'new-password'
    See the manual for more instructions.

    You can start the MySQL daemon with:
    cd /opt ; /opt/bin/mysqld_safe &

    You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
    cd sql-bench ; perl run-all-tests

    Please report any problems with the /opt/bin/mysqlbug script!

    The latest information about MySQL is available on the web at
    http://www.mysql.com
    Support MySQL by buying support/licenses at http://shop.mysql.com
    invalid user: 
    `root:root'
    Starting MySQLsh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    .sh: WL500gx.pid: unknown operand
    . ERROR!
    Configuring php
    Configuring php-curl
    Configuring php-dev
    Configuring php-fcgi
    Configuring php-gd
    Configuring php-imap
    Configuring php-ldap
    Configuring php-mbstring
    Configuring php-mysql
    Configuring php-pear
    [PEAR] Archive_Tar    - installed: 1.3.7
    [PEAR] Console_Getopt - installed: 1.2.3
    [PEAR] Structures_Graph- installed: 1.0.3
    [PEAR] XML_Util       - installed: 1.2.1
    [PEAR] PEAR           - installed: 1.9.1
    Wrote PEAR system config file at: /opt/etc/pear.conf
    You may want to add: /opt/share/pear to your php.ini include_path
    Configuring php-xmlrpc
    Successfully terminated.
    [admin@Asus WL500gx root]$ 
    mysql scheint da Fehlerhaft zu sein.
    PHP Code:
    [admin@Asus WL500gx root]$ /opt/bin/mysqladmin -u root password 'meinpasswort'
    /opt/bin/mysqladminconnect to server at 'localhost' failed
    error
    'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
    Check that mysqld is running and that the socket: '
    /tmp/mysql.sock' exists!
    [admin@Asus WL500gx root]$ 

  2. #2
    Auch ein neustart bringt da keinen weiteren erfolg.

    Ich habe dann dennoch weitergemacht...

    PHP Code:

    [admin@Asus WL500gx root]$ mysql
    ERROR 2002 
    (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
    [admin@Asus WL500gx root]$ 
    PHP Code:
    [admin@Asus WL500gx root]$ ipkg install eaccelerator
    Installing eaccelerator 
    (0.9.5.3-5.2.17-1to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/eaccelerator_0.9.5.3-5.2.17-1_mipsel.ipk
    Configuring eaccelerator
    Successfully terminated
    .
    [
    admin@Asus WL500gx root]$ 
    Das scheint ja wieder zu klappen....

    Dennoch bleibt es nach nem reboot nicht sehr erfolgreich.
    PHP Code:
    [admin@Asus WL500gx root]$ pss
      PID TTY      STAT   TIME COMMAND
        1 
    ?        S      0:02 /sbin/init
        2 
    ?        S      0:00 [keventd]
        
    ?        SN     0:00 [ksoftirqd_CPU0]
        
    ?        S      0:00 [kswapd]
        
    ?        S      0:00 [bdflush]
        
    ?        S      0:00 [kupdated]
        
    ?        S      0:00 [mtdblockd]
       
    61 ?        Ss     0:00 syslogd -m 0 -/tmp/syslog.log ---l 7 -b 1
       65 
    ?        Ss     0:00 klogd
       66 
    ?        Ss     0:00 telnetd
       70 
    ?        S      0:00 dropbear -4
      165 
    ?        Ss     0:01  \_ dropbear -4
      194 pts
    /0    Ss     0:00      \-sh
     5763 pts
    /0    R+     0:00          \_ ps axf
       72 
    ?        S      0:00 httpd vlan1
       77 
    ?        Ss     0:01 nas /tmp/nas.lan.conf /tmp/nas.lan.pid lan
       82 
    ?        S      0:00 dnsmasq
       84 
    ?        S      0:00 lld2d br0 eth1
       85 
    ?        S      0:00 [khubd]
      
    103 ?        S      0:00 /usr/sbin/portmap
      104 
    ?        Ss     0:00 /usr/sbin/statd
      106 
    ?        S      0:00 [nfsd]
      
    107 ?        S      0:00 [lockd]
      
    108 ?        S      0:00  \[rpciod]
      
    110 ?        Ss     0:00 /usr/sbin/mountd
      111 
    ?        S      0:00 [usb-storage-0]
      
    112 ?        S      0:00 [scsi_eh_0]
      
    122 ?        Ss     0:00 watchdog
      140 
    ?        Ss     0:00 udhcpc -i vlan1 -/var/run/udhcpc0.pid -/tmp/udhcpc
      141 
    ?        S      0:00 upnp --L br0 -W vlan1
      149 
    ?        S      0:00 [kjournald]
      
    150 ?        S      0:00 [kjournald]
      
    153 ?        Ss     0:00 /usr/sbin/vsftpd
      169 
    ?        Ss     0:00 /opt/sbin/smbd -D
      199 
    ?        S      0:00  \/opt/sbin/smbd -D
      173 
    ?        Ss     0:00 /opt/sbin/cron
      191 
    ?        S      0:08 /bin/sh /opt/bin/mysqld_safe --datadir=/opt/var/lib/mysql --pid-file=/opt/var/lib/mysql/Asus WL500gx.pid
     5764 
    ?        S      0:00  \/bin/sh /opt/bin/mysqld_safe --datadir=/opt/var/lib/mysql --pid-file=/opt/var/lib/mysql/Asus WL500gx.pid
     5768 
    ?        R      0:00      \_ grep -c pid-file=/opt/var/lib/mysql/Asus 
    Kann mir da jemand weiterhelfen ?

    THX

  3. #3
    der MySQLuser stimmt nicht, steht ja da - wie meldest du dich an? root-passwort oder admin-passwort (default)
    RT-N66U TomatoUSB 1.28.0000 MIPSR2-135 K26AC USB AIO-64K running Entware-NG
    pyload 0.4.9
    minidlna 1.1.2
    samba 3.6.5
    openvpn 2.3.10
    ̶W̶L̶5̶0̶0̶g̶P̶ ̶1̶.̶9̶.̶2̶.̶7̶-̶r̶t̶n̶-̶r̶4̶7̶5̶0 retired

  4. #4
    ich melde mich mit admin : pasword an.

  5. #5
    So wie ich das sehe, muss ich mich wohl als root anmelden, aber wie mache ich das. Mit dem admin pw komme ich als root nicht rein ?

    Oder muss ich was anderes machen ?

  6. #6
    Join Date
    Jul 2007
    Location
    Austria
    Posts
    1,336
    Quote Originally Posted by Grabber66 View Post
    So wie ich das sehe, muss ich mich wohl als root anmelden, aber wie mache ich das. Mit dem admin pw komme ich als root nicht rein ?

    Oder muss ich was anderes machen ?
    auf der Console vom Router:
    ipkg install adduser

    in Google eingeben: adduser syntax
    und lesen

    Wenn du nach dem HowTo installiert hast, empfehle ich dringend auch die Posts zu lesen - da sind gute Hinweise dabei

    HTH
    Alle HowTo's, all howto's

    RT-N16 1.9.2.7-rtn-r3121, Samba, VSFTP, Lightthpd, PHP, Perl, MySQL, Serendipity, Aria2web, HDD 640GB
    RT-N66U, 16GB MicroSD/ 2 Partitions, 2,5" HDD 1TB, running with Merlin's FW and Entware, 16 Mbit A1,
    Netgear DGND 3700V2, QNAP TS119PII 4 TB, QNAP TS209 2 TB Raid1, Backup Synology DS107+ 1 TB, HP CP1515n

  7. #7
    Danke für die Infos:

    leider klappt es bei mir nicht wirklich.
    PHP Code:
    [admin@Asus WL500gx root]$ adduser ---G root root
    adduser
    group name 'root' is in use
    [
    admin@Asus WL500gx root]$ adduser --G root root
    adduser
    group name 'root' is in use
    [
    admin@Asus WL500gx root]$ adduser -H root
    adduser
    group name 'root' is in use
    [
    admin@Asus WL500gx root]$ passwd root
    passwd
    unknown user root
    [admin@Asus WL500gx root]$ 
    Ich hab so ziemlich alle variationen ausprobiert, und immer kommt
    adduser: group name 'root' is in use

    Der User root existiert ja aber nicht. Und "groups" gibt mir nur root aus.

    Ich habe ne standart installation nach Wengi gemacht. Und noch einige
    andere pakete nachinstalliert.

    So scheint es leider nicht zu klappen.

  8. #8
    sry, hab es jetzt gefunden. Ich konnte den user admin einfach im webif zum user root machen. Ich hoffe, das es dann jetzt klappt.

  9. #9
    Join Date
    Jul 2007
    Location
    Austria
    Posts
    1,336
    Quote Originally Posted by Grabber66 View Post
    sry, hab es jetzt gefunden. Ich konnte den user admin einfach im webif zum user root machen. Ich hoffe, das es dann jetzt klappt.

    Naja, du kannst ja auch in den Config-Dateien von mysql den User einstellen.
    Vielleicht geht es dann ja....zumindest startet mysql und läuft auch unter admin (siehe Ausgabe)

    LG
    Newbiefan
    Attached Images Attached Images  
    Alle HowTo's, all howto's

    RT-N16 1.9.2.7-rtn-r3121, Samba, VSFTP, Lightthpd, PHP, Perl, MySQL, Serendipity, Aria2web, HDD 640GB
    RT-N66U, 16GB MicroSD/ 2 Partitions, 2,5" HDD 1TB, running with Merlin's FW and Entware, 16 Mbit A1,
    Netgear DGND 3700V2, QNAP TS119PII 4 TB, QNAP TS209 2 TB Raid1, Backup Synology DS107+ 1 TB, HP CP1515n

  10. #10
    n bissel offtopic:

    @newbiefan: htop kannte ich noch gar nicht ... das ist ja mal ziemlich sexy
    das werde ich wohl öfter benutzen in nächster zeit. Danke für den indirekten tipp!

  11. #11
    Join Date
    Jul 2007
    Location
    Austria
    Posts
    1,336
    Quote Originally Posted by thejew View Post
    n bissel offtopic:

    @newbiefan: htop kannte ich noch gar nicht ... das ist ja mal ziemlich sexy
    das werde ich wohl öfter benutzen in nächster zeit. Danke für den indirekten tipp!
    Hi thejew,
    ich verwende htop schon relativ lange, ist wirklich toll...
    LG
    Newbiefan
    Alle HowTo's, all howto's

    RT-N16 1.9.2.7-rtn-r3121, Samba, VSFTP, Lightthpd, PHP, Perl, MySQL, Serendipity, Aria2web, HDD 640GB
    RT-N66U, 16GB MicroSD/ 2 Partitions, 2,5" HDD 1TB, running with Merlin's FW and Entware, 16 Mbit A1,
    Netgear DGND 3700V2, QNAP TS119PII 4 TB, QNAP TS209 2 TB Raid1, Backup Synology DS107+ 1 TB, HP CP1515n

  12. #12
    So,

    ich hab es jetzt schonmal installiert bekommen.
    Hab nun in der my.cnf die user auf admin geändert, und per webif den user auch wieder auf admin.

    Starte ich nun per Hand oder durch reboot mysql kommt leider immer noch
    folgender Fehler.
    PHP Code:
    Starting MySQLshWL500gx.pidunknown operand
    .shWL500gx.pidunknown operand
    .shWL500gx.pidunknown operand
    .shWL500gx.pidunknown operand
    .shWL500gx.pidunknown operand 
    Anbei auch mal der durch mysql erstellten error log.
    Es wird immer sofort wieder versucht neu zu starten. Dadurch hab ich ne CPU
    Last von 100%.....

    P.S.: auch wenn der user in der my.cnf und per webif wieder root ist klappt
    es nicht. Kommt das gleiche.

    Leider fehlt mit da jetzt ein Ansatz um weiter zu machen.
    Attached Files Attached Files

Similar Threads

  1. Mb p5q turbo - Problem mit LAN und OS-Installation
    By tozupi in forum German Discussion - Deutsch (DE)
    Replies: 1
    Last Post: 26-07-2009, 16:58
  2. Huawei E169 am WL-500gp - Problem mit Speicher
    By gschnedl in forum German Discussion - Deutsch (DE)
    Replies: 0
    Last Post: 20-01-2009, 19:48
  3. Problem mit transmission - 1.11+r5579-1
    By wengi in forum German Discussion - Deutsch (DE)
    Replies: 4
    Last Post: 03-06-2008, 08:45
  4. Problem mit Drucker HL-1430 auf WL-500gP V2
    By EastoftheMiddle in forum German Discussion - Deutsch (DE)
    Replies: 0
    Last Post: 15-05-2008, 19:34
  5. Problem with lighttpd and php-fcgi
    By Untouchable in forum WL-500gP Q&A
    Replies: 0
    Last Post: 04-05-2008, 11:52

Posting Permissions

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