PDA

Bekijk de volledige versie : Problem mit installtion von Lighttpd



Grabber66
26-01-2011, 21:33
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 (http://www.wl500g.info/showthread.php?t=20306) 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 :


[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-1) to /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-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/pcre_8.12-1_mipsel.ipk
Installing libuclibc++ (0.2.2-9) to /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-1) to /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:


[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-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/php_5.2.17-1_mipsel.ipk
Installing libxml2 (2.7.8-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/libxml2_2.7.8-1_mipsel.ipk
Installing libxslt (1.1.26-2) to /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-1) to /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-1) to /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-1) to /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-1) to /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-1) to /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-6) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/libgd_2.0.35-6_mipsel.ipk
Installing libpng (1.2.44-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/libpng_1.2.44-1_mipsel.ipk
Installing libjpeg (6b-3) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/libjpeg_6b-3_mipsel.ipk
Installing freetype (2.3.6-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/freetype_2.3.6-1_mipsel.ipk
Installing fontconfig (2.8.0-0) to /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-7) to /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-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/php-imap_5.2.17-1_mipsel.ipk
Installing imap-libs (2007a1-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/imap-libs_2007a1-1_mipsel.ipk
Installing php-ldap (5.2.17-1) to /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-1) to /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-1) to /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-3) to /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-1) to /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-1) to /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.


[admin@Asus WL500gx root]$ /opt/bin/mysqladmin -u root password 'meinpasswort'
/opt/bin/mysqladmin: connect 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]$

Grabber66
26-01-2011, 21:34
Auch ein neustart bringt da keinen weiteren erfolg.

Ich habe dann dennoch weitergemacht...




[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]$




[admin@Asus WL500gx root]$ ipkg install eaccelerator
Installing eaccelerator (0.9.5.3-5.2.17-1) to /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.

[admin@Asus WL500gx root]$ pss
PID TTY STAT TIME COMMAND
1 ? S 0:02 /sbin/init
2 ? S 0:00 [keventd]
3 ? SN 0:00 [ksoftirqd_CPU0]
4 ? S 0:00 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
61 ? Ss 0:00 syslogd -m 0 -O /tmp/syslog.log -S -D -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 -p /var/run/udhcpc0.pid -s /tmp/udhcpc
141 ? S 0:00 upnp -D -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

!gm
27-01-2011, 12:14
der MySQLuser stimmt nicht, steht ja da - wie meldest du dich an? root-passwort oder admin-passwort (default)

Grabber66
27-01-2011, 19:38
ich melde mich mit admin : pasword an.

Grabber66
29-01-2011, 16:46
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 ?

newbiefan
30-01-2011, 07:17
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

Grabber66
30-01-2011, 11:06
Danke für die Infos:

leider klappt es bei mir nicht wirklich.


[admin@Asus WL500gx root]$ adduser -S -H -G root root
adduser: group name 'root' is in use
[admin@Asus WL500gx root]$ adduser -H -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.

Grabber66
30-01-2011, 11:16
sry, hab es jetzt gefunden. Ich konnte den user admin einfach im webif zum user root machen. Ich hoffe, das es dann jetzt klappt.

newbiefan
30-01-2011, 15:45
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

thejew
31-01-2011, 15:18
n bissel offtopic:

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

newbiefan
31-01-2011, 20:35
n bissel offtopic:

@newbiefan: htop kannte ich noch gar nicht ... das ist ja mal ziemlich sexy :D
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

Grabber66
03-02-2011, 19:28
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.


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

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.