Results 1 to 5 of 5

Thread: Busybox and thttpd Problems

  1. #1

    Busybox and thttpd Problems

    Hi outthere,
    I have problems running the thttp cgi scripts.
    Into the first line there are the reference to ash.sh
    "#!/bin/ash"
    With this shell there are no data into my browser. When I change the path to the new version of busybox to "#!/opt/bin/ash" there is no problem starting the scripts.
    bin/ash is a link to bin/ash/busybox.
    Does anyone know how I can change the link? I don't want to edit all the .cgi files. I also can't manually rm the link with root permissons. There is no Access.

    Another question is how I can show my personal web page but I cannot login. No User like admin, root or self created users are accepted.

    When I click on PhotoAlbum the listAlbum.cgi file comes in plain text. No script will be executed.

    I hope you can help with a few of my problems.

    Thanks
    Magnus

  2. #2
    Making /bin "writeable" is possible. Follow the instructions here:

    http://wl500g.info/showthread.php?t=8753

    I'll warn you, though, messing with the shell is dangerous without a serial console. Native asus programs can get very confused and it's impossible to know without watching them complain on the console.

    On my router, I've created a small program that I put in place of /bin/sh which executes whatever shell is pointed to by the $KCSHELL environment variable. If $KCSHELL is not set, it runs /bin/busybox as /bin/sh. This helps keep asus executables happy because they don't set $KCSHELL. I set $KCSHELL to /opt/bin/bash within my .profile so all of my build scripts that call /bin/sh actually run bash.

    If you're interested in pursuing this, I can post both the source and executable for my shell replacement.

    - K.C.

  3. #3
    Hi,

    Making /bin "writeable" is possible. Follow the instructions here:
    Is there a chance running the cgi scripts with the old busybox version in /bin?
    I don't want to change the link and I don't want to edit every cgi script to /opt/bin.

    Do you have an idea how I can login to my personal webpage?

    ciao
    Magnus

  4. #4
    Quote Originally Posted by Magnus View Post
    Hi,


    Is there a chance running the cgi scripts with the old busybox version in /bin?
    I don't want to change the link and I don't want to edit every cgi script to /opt/bin.
    The stock busybox is very old and full of bugs. I've been unable to do even *simple* things like:

    VAR=`/path/to/command`

    Works Ok from a shell, but when executed from a system call VAR never gets set. You're probably seeing similar quirks.

    If I roll another binary, I can add in the "kcsh" by default. But right now there's no compelling reason to do so. The mount option, as detailed in the previous post, is a much better solution which, so far, has solved all of my problems. It also solves yours.


    Do you have an idea how I can login to my personal webpage?
    No. I restart httpd and point to my own content. I don't use the asus pages.

    - K.C.

  5. #5

    thttpd SSI?

    Seems our white brick is using thttpd server. Can any kind sould tell me if SSI's work on it, or how to make it work. I have very specific thing to make and only SSI can save me :-)

    Basically, I need

    <!--#include virtual="footer.html"-->

    to work :-)

    I've found http://www.acme.com/software/thttpd/ssi_man.html

    but I have no idea whether this is included in our box, or needs to be added, or is compiled for wl700gE and can be added, or even if our version of thttpd has CGI....

    Any help greatly appriciated.

    Dalibor

Similar Threads

  1. ad new users
    By jozef in forum Dutch Discussion - Nederlands
    Replies: 2
    Last Post: 16-06-2006, 19:41

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
  •