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-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:
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-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.
PHP Code:
[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]$