The page tells me that the costum ERROR pages are stored in a directory named ERRORS. In the top of your web directory. But when I take a look in /opt/share/www there's only a cgi-bin and my own webpages. Am I doing something wrong?
Thanks
The page tells me that the costum ERROR pages are stored in a directory named ERRORS. In the top of your web directory. But when I take a look in /opt/share/www there's only a cgi-bin and my own webpages. Am I doing something wrong?
Thanks
My Router Specs:
Model: ASUS WL500G Deluxe
Firmware Version: 1.9.2.7-7G (OLEG)
You have to create a directory named /opt/share/www/errors
Then create err404.html there.
Check if permissions are set correctly.
I have WL-500gx with two USB keys, one for /opt and the other is an old 32mb that is used for swap. I've successfuly installed thttpd and run my php's quite well from WAN. The problem is that POSTing anything from WAN returns nothing. POSTing from LAN works without problems.
This is what thttpd.log says:
note two zeros after request string. First should be status code (e.g 200 for success) and the second should be bytes sent.213.253.102.145 - - [15/Sep/2006:13:17:10 +0100] "POST /ccn/ccn.php HTTP/1.1" 0 0 "http://153.5.16.38/ccn/ccn.php
" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6"
I'm thinking that POST data doesn't arrive to the server. This is my post-firewall (I have thttpd configured on port 8108 and enabled forwarding from 80 too):
Any ideas?#!/bin/sh
iptables -D INPUT -j DROP
#thttpd
iptables -A INPUT -p tcp --dport 8108 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -t nat -A PREROUTING -i $1 -p tcp --dport 80 -j DNAT --to-destination $4:8108
# ssh
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -t nat -A PREROUTING -i $1 -p tcp --dport 22 -j DNAT --to-destination $4:22
# drop rest
iptables -A INPUT -j DROP
Thanks in advance,
Hi there,
is there someone, who is succesfully using WL-500gP as a web server with thttpd, php and mysql?
I'm trying to manage it for more than 14 days now, but still have problems. I'm using latest Oleg's firmware (1.9.2.7-7f-pre7). Then I installed ipkg and next thttpd (I also tried Apache instalation too, but I wasn't able to start httpd, so I installed thttpd instead of Apache).
After installing PHP I tried to install MySQL, but there were errors at the end of installation process...
Finally, I am able to connect to localhost MySQL server, but when I want to obtain some data from server, I receive error message like:
Such type of error I receive every time, I want to select some data from any table. I tried to repair tables using myisamchk and REPAIR command, I tried also to delete them and make new ones, but the result is still the same. It is strange, that sometimes, after mysqld restart I can select some data from any table, but only from first table I tried to use SELECT command with. Other tables makes the same error messagess...Code:[ERROR] /opt/libexec/mysqld: Incorrect information in file: './mysql/host.frm'
I already tried to copy tables files from another (functional) database, but the result was the same.
Dont you have the same troubles, or are you satisfied with your mysql?
I am not able to install/use php-mysql extension for thttpd too, but Im not sure, if is not because of wrong mysql installation/configuration.
Thank you for every reply...
Regards, JFK
The only way to get all three thing running is to have deluxe od premium with lot of swap (512MB at least) and installing alternative feed for Oleg firmware based on uClibc 0.9.28.
See http://ipkg.nslu2-linux.org/feeds/op.../cross/stable/
mysql needs some changes in scripts.
Hi oleo,
thank you for your reply.
I tried to enlarge my swap adding 512MB to it, but there are still the same errors.
I'm not sure, that it is a question of memory, I thought about files locking or permittion troubles instead. But who knows? The strange thing is, that after connecting to mysqld server if I try to create another table, daemon makes table.frm file, but then mysql session freeze (I have to use Ctrl+c) and table.frm is every time the same (by my opinion unfinished = corrupted). But even when I copy correct table files instead, I'm still receiving errors...
Can I ask you to explain me your remark about uClibc library? Should I install uClibc package? Because I tried it too, but it caused more another problems. For example there was functionless find command, my ssh connection to ASUS device became unstable (connection was opened with no response) and so on... What firmware version should I use for my intended thttpd, php and mysql issues?
Best regards, JFK
Please read http://wl500g.info/showthread.php?t=2036 before asking any further.
Asus: WL-500g
Firmware: 1.9.2.7-7b
I have insalled both, thttpd and microperl, but it seems thttpd has problems to deal with cgi. If I execute a cgi test file to show "Hello world" from the command prompt it does work fine therefore no problems with microperl. If I execute the same file via web browser I get a blank page. If I kill thttpd and use busybox_httpd instead, it does work without problems. Some idea? Here you go the thttpd.conf file: (I do not use any extra parameter when calling thttpd)
PS: if I use "chroot" instead of "nochroot" I get "500 Internal Error. There was an unusual problem serving the requested URL '/cgi-bin/test.cgi'"Code:dir=/tmp/harddisk/phpwebserver port=8181 user=nobody nochroot nosymlink novhost logfile=/tmp/harddisk/log/thttpd.log pidfile=/tmp/harddisk/run/thttpd.pid cgipat=/cgi-bin/*
Hi,
I have a problem with auto recognizing codepage by either Mozilla or IE. I created website with charset=iso-8859-2 in HEAD section but whenever I access my website the codepage is not recognized and is set to 8859-1. Everytime I have to switch it manually. The codepage of the same website placed at public serwer is fine. I am running Oleg's firmaware 1.9.2.7-7f at WL-500g. Can anyone help me to fix it?
addline into /opt/etc/thttpd.confCode:charset=iso-8859-2
Thx m8. That was it!!!!!
Hello, i have problem with thttpd, i install it with tutorial. I need RRDtool, but thttpd dont works. Ifi start it and look with nmap what on router runs @ what app listening. On port 8080 is thttpd here. Okay. I check it with browser http://my.router:8080/ .. nothing. Then i look with nmap again, but port 8080 is refused.. Thttpd calm down. Do you know why? thx for help
I have exactly the same problem on my WL500g with the latest version of thttpd.
try...
Code:iptables -D INPUT -j DROP iptables -I INPUT -p tcp --dport 8108 -j ACCEPT iptables -I INPUT -p tcp --dport 80 -j ACCEPT iptables -t nat -A PREROUTING -i $1 -p tcp --dport 80 -j DNAT --to-destination $4:8108 iptables -A INPUT -j DROP