Page 4 of 6 FirstFirst ... 23456 LastLast
Results 46 to 60 of 79

Thread: thttpd problem

  1. #46
    Join Date
    Apr 2005
    Location
    Vienna, Austria
    Posts
    191

  2. #47
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    152
    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)

  3. #48
    Join Date
    Apr 2005
    Location
    Vienna, Austria
    Posts
    191
    You have to create a directory named /opt/share/www/errors
    Then create err404.html there.
    Check if permissions are set correctly.

  4. #49

    Arrow thttpd POST problem (server returns zero response)

    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:
    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"
    note two zeros after request string. First should be status code (e.g 200 for success) and the second should be bytes sent.

    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):

    #!/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
    Any ideas?

    Thanks in advance,

  5. #50

    Unhappy thttpd, php and mysql on WL-500gP

    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:
    Code:
    [ERROR] /opt/libexec/mysqld: Incorrect information in file: './mysql/host.frm'
    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...
    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

  6. #51
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    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.

  7. #52
    Quote Originally Posted by oleo View Post
    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

  8. #53
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    Please read http://wl500g.info/showthread.php?t=2036 before asking any further.

  9. #54
    Join Date
    Nov 2004
    Location
    Sweden
    Posts
    259

    thttpd & microperl problem

    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)
    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/*
    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'"

  10. #55

    thttpd codepage

    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?

  11. #56
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    add
    Code:
    charset=iso-8859-2
    line into /opt/etc/thttpd.conf

  12. #57
    Thx m8. That was it!!!!!

  13. #58

    thttpd problem

    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

  14. #59

    Same problem

    I have exactly the same problem on my WL500g with the latest version of thttpd.

  15. #60
    Join Date
    Nov 2004
    Location
    Sweden
    Posts
    259
    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

Page 4 of 6 FirstFirst ... 23456 LastLast

Similar Threads

  1. WL-500gP and Asus support experience
    By Blezi in forum WL-500gP Q&A
    Replies: 6
    Last Post: 03-12-2006, 12:59
  2. Problem with dieing AIR-connection
    By BòóN in forum WL-500g Q&A
    Replies: 7
    Last Post: 26-10-2004, 12:04

Tags for this Thread

Posting Permissions

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