OpenWrt Forum Archive

Topic: My Webinterface

The content of this topic has been archived on 26 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,
because i found no simple php/pearl-free webinterface for openwrt, i decided to create my own.
now the work is done and i thought maybe, some others like it to.

-You can read ifconfig, logread, routes ... in it and you can forward ports temporary (till the next boot).
If i want a forwards ports not temporary i am still using the config files. I want to know what status the router have, when it is rebooted wink so others are only allowed to forward the ports temporary.

-it is not writing in the flash-memory.

-There is a password authentification (htpasswd). i set it to admin:admin
there is no other security, because my firewall only allow connections to the webinterface from my local network.

Screenshots:
Screenshot 1
Screenshot 2
Screenshot 3

Webserver:
Webserver.rar

If there are any wrong words (or some german big_smile), please let me know.
I just made the english version in a few minutes, I use it in german.

You can improve it, add other modules if you want, but keep it clean and keep it orange.


cheers christoph

Oh, the screenshots are in german, the RAR-Archive is not smile

and please be mild with your comments, it's the first i've ever done in cgi

Edit:
itwas a little bug inside, now its gone smile (if you allready downloaded it please replace the /www/cgi-bin/forwarding.cgi file)
I use shell scripts as well as haserl scripts.
so please install haserl.
I use thttpd don't know it runs under mini-httpd

haserl
thttpd

(Last edited by VespaTS on 19 Apr 2005, 18:45)

Hello!

Nice work! thank you!
When i access the Webinterface, i get the error:

The requested URL '/cgi-bin/start.cgi' resolves to a file that is not world-readable.

I can see the orange frame in the left side, but clicking on Portforwaring, Info or whatever resolves in that error.
Any idea ?

Hello,

maybe set up the cgi-path?
you can add the" -c [cgi-path] " command in /etc/init.d/S50thttpd file
(f.e. "   /usr/sbin/thttpd -C /etc/thttpd.conf -c /www/cgi-bin/   ")

Think cgi-bin is default, because I haven't use the " -c " command with thttpd, but you can try.

Do you allready tryed this:
chmod 777 /www/cgi-bin/*

hope this helps.
how i already said, i just "chmoded" the files in the cgi path and it works fine on my and on the router of a friend.

please tell me if you have success or not.
if not, i hope i or someone else in the forum can help you

cheers christoph

Hello, now it works,

i "chmoded" 777 /www/cgi-bin/*
an i needed to "chmod 444" the rest of www -> now ist working fine !!

Please give me feedback if something don't work. Then I try to fix it. If all works, I am just happy.

cheers christoph

Hi, I tried it and could see the left frame ok, but on the right frame I only got errors like:

The requested URL '/cgi-bin/start.cgi' resolves to a file which is marked executable but is not a CGI file; retrieving it is forbidden.

I tried chmod's like described above, but I can't get I working. Do you have any suggestions to me?

right cgi-path?

VespaTS wrote:

right cgi-path?

of course ;-)
Starting with '/usr/sbin/thttpd -C /etc/thttpd.conf -c /www/cgi-bin/'
Files already in right place.

The discussion might have continued from here.