-
Oh stupid me, of course, I was thinking 81 but I wrote 80 - what was I thinking about:-)?
The log is here, seems to me like thttpd is running allright?:
Code:
PID Uid VmSize Stat Command
1 admin 336 S /sbin/init
2 admin SW [keventd]
3 admin SWN [ksoftirqd_CPU0]
4 admin SW [kswapd]
5 admin SW [bdflush]
6 admin SW [kupdated]
7 admin SW [mtdblockd]
41 admin 276 S telnetd
46 admin 324 S httpd eth1
49 admin 296 S klogd
53 nobody 388 S dnsmasq
54 admin 312 S syslogd -m 0 -O /tmp/syslog.log -S -l 7
59 admin SW [khubd]
69 admin 184 S lpd
71 admin 188 S p9100d -f /dev/usb/lp0 0
73 admin 188 S p9101d -f /dev/printers/0 1
76 admin 216 S waveservermain
80 admin SW [usb-storage-0]
81 admin SW [scsi_eh_0]
86 admin 224 S infosvr br0
89 admin 420 S watchdog
91 admin 248 S ntp
106 admin 300 S udhcpc -i eth1 -p /var/run/udhcpc0.pid -s /tmp/udhcpc
115 admin 772 S /usr/sbin/nmbd -D
117 admin 644 S /usr/sbin/smbd -D
123 admin SW [kjournald]
133 admin 300 S /opt/sbin/xinetd
146 nobody 3320 S /opt/sbin/thttpd -C /opt/etc/thttpd.conf
157 admin 464 S upnp -D -L br0 -W eth1
159 admin 524 S -sh
161 admin 392 R ps
[admin@wl500g root]$ ps
PID Uid VmSize Stat Command
1 admin 328 S /sbin/init
2 admin SW [keventd]
3 admin SWN [ksoftirqd_CPU0]
4 admin SW [kswapd]
5 admin SW [bdflush]
6 admin SW [kupdated]
7 admin SW [mtdblockd]
41 admin 280 S telnetd
46 admin 324 S httpd eth1
49 admin 296 S klogd
53 nobody 388 S dnsmasq
54 admin 312 S syslogd -m 0 -O /tmp/syslog.log -S -l 7
59 admin SW [khubd]
69 admin 184 S lpd
71 admin 188 S p9100d -f /dev/usb/lp0 0
73 admin 188 S p9101d -f /dev/printers/0 1
76 admin 208 S waveservermain
80 admin SW [usb-storage-0]
81 admin SW [scsi_eh_0]
86 admin 224 S infosvr br0
89 admin 400 S watchdog
91 admin 240 S ntp
106 admin 296 S udhcpc -i eth1 -p /var/run/udhcpc0.pid -s /tmp/udhcpc
115 admin 764 S /usr/sbin/nmbd -D
117 admin 520 S /usr/sbin/smbd -D
123 admin SW [kjournald]
133 admin 304 S /opt/sbin/xinetd
146 nobody 3320 S /opt/sbin/thttpd -C /opt/etc/thttpd.conf
157 admin 460 S upnp -D -L br0 -W eth1
159 admin 524 S -sh
163 admin 392 R ps
the thttpd.conf is here:
Code:
dir=/opt/share/www
port=81
user=nobody
nochroot
nosymlink
novhost
logfile=/opt/var/log/thttpd.log
# Please do not edit pidfile path at it is use to kill thttpd process during ini
pidfile=/opt/var/run/thttpd.pid
-
no progress
I tried formating the disk and complete reinstalling of the ipkg package, but it did not help at all. However, during the instalation of thttpd, this erorr mesagge appeared(at the bottom, I am posting a complete log of the instalation):
Code:
[admin@wl500g root]$ /opt/bin/ipkg install php-thttpd
Installing php-thttpd (2.25b-5.0.3-9) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/php-thttpd_2.25b-5.
0.3-9_mipsel.ipk
Installing php (5.0.3-13) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/php_5.0.3-13_mipsel
.ipk
Installing bzip2 (1.0.2-4) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/bzip2_1.0.2-4_mipse
l.ipk
Installing openssl (0.9.7d-3) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/openssl_0.9.7d-3_mi
psel.ipk
Installing zlib (1.2.2-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/zlib_1.2.2-2_mipsel
.ipk
Installing libxml2 (2.6.17-3) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/libxml2_2.6.17-3_mi
psel.ipk
Installing libxslt (1.1.12-3) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/libxslt_1.1.12-3_mi
psel.ipk
Installing gdbm (1.8.3-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/gdbm_1.8.3-2_mipsel
.ipk
Installing libdb (4.2.52-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/libdb_4.2.52-2_mips
el.ipk
can't get //opt/lib/ipkg/info/libdb.control open for read
Configuring bzip2
Configuring gdbm
Configuring libdb
Configuring libxml2
Configuring libxslt
Configuring openssl
Configuring php
Configuring php-thttpd
/opt/bin/update-alternatives: 185: dirname: not found
update-alternatives: Linking //opt/sbin/htpasswd to /opt/sbin/php-thttpd-htpassw
d
To complete the installation, you must edit /opt/etc/thttpd.conf,
and then run /opt/etc/init.d/S80thttpd to start thttpd.
Configuring zlib
Successfully terminated.
Collected errors:
Unable to open the control file in set_flags_from_control
Google said nothing about it, can you say if it si something important?
-
also, this is part of my starting log - does it mean something? especially this:"bind 0.0.0.0 - Address already in use"?
Code:
Jun 26 19:20:15 thttpd[145]: bind 0.0.0.0 - Address already in use
Jun 26 19:20:22 thttpd[145]: thttpd/2.25b PHP/5.0.3 starting on port 81
Jun 26 19:20:22 thttpd[145]: started as root without requesting chroot(), warning only
-
Crontab tutorial added.
Hi
I have written a complete Tutorial on how to install and configure cron for running scheduled jobs on your ASUS.
I have set up a cron-system that is kindda "RedHat-like", and very easy to use even for non-advanced users, once it has been setup by completing the Tutorial :-)
-
Hi macsat,
thanks for another fine tutorial.
a few questions:
- what is "root" supposed to be in a crontab line? is it part of the command?
- i have running a crond already, it uses a uses specific crontab e.g.
/tmp/var/spool/cron/crontabs/admin
this other crontab seems to have the standard crontab format. It runs fine.
[admin@DELTA /tmp]$ cat /tmp/var/spool/cron/crontabs/admin
# 0 * * * * cp /opt/var/log/tcpdump.log /tmp/harddisk/LOG/TCP/tcpdump.tmp-$$
# 0 * * * * cp /opt/var/log/syslog.log /tmp/harddisk/LOG/SYS/syslog.tmp-$$
# 0 * * * * cp /opt/var/log/vsftpd.log /tmp/harddisk/LOG/FTP/vsftpd.tmp-$$
# 2 * * * * cat /opt/ftp.mai /opt/var/log/vsftpd.log | sendmail xxxxxxxxxxxx@gmail.com
# 4 * * * * cat /opt/sys.mai /opt/var/log/syslog.log | sendmail xxxxxxxxxxxx@gmail.com
could you give comment on admin's crontab please?
-
I'm not sure I undestand your question...
Are you asking what the word "root" in this line in my script means? :
Code:
01 * * * * root run-parts /opt/etc/cron.hourly
?
Then it is the user as which the command is ran....I will update my Tutorial to inform about this tonight....
-
Yes, that should have been my question :rolleyes:
Every user has its own crontab, no user id inside.
Edit: I noticed too late that the system crontab has a user field. :(
-
:-)
Yes - I used the System Crontab, since the WL500g with olegs firmware is a one user system (yes...I do know that multiuser-setups CAN be made!)..
The idea behind my crontab implementation, is that after it is setup, all that is needed to run a task daily, weekly, monthly etc...is to place a script in a certain directory, and hence there is no need to "know" anything about cron to use it :-)