Oh, yes, I forgot: 1.8.1.7 CR3. I'm not running from rootfs. I did see Oleg upped 1.9.2.7 CR3b on which I was waiting, so I'll be happy to upgrade.
This version is working fully on my box. Most of the script is using system command. If some are unavailable, it won't be able to run. Do you have any specific firmware?
Oh, yes, I forgot: 1.8.1.7 CR3. I'm not running from rootfs. I did see Oleg upped 1.9.2.7 CR3b on which I was waiting, so I'll be happy to upgrade.
It has been tested on the latest Oleg firmware, so yes it should work.
Still no luck
Here's what I've done so far:
- Upgraded to latest custom firmware 1.9.2.7 CR3b from Oleg (ofcourse )
- Created an ext3 partition on my HDD, initialized it and mounted it on /tmp/extra:
- Then I've copied the first build from erik_bies (the one with the subdirectories) to the ext3 partition and updated the thttpd program with the latest build with PHP4 support.Code:mkdir /tmp/extra mount -o rw /dev/scsi/host0/bus0/target0/lun0/part5 /tmp/extra
- I changed the rights of several directories:
I've noticed that the /www directory needs execute priviledges, otherwise the webserver will report an '500 - internal server error'.Code:drw-r--r-- 2 admin nobody 1024 Jan 15 15:23 etc drwx------ 2 admin root 12288 Jan 15 00:26 lost+found drw-r--r-- 3 admin nobody 1024 Jan 15 15:23 man drw-r--r-- 2 admin nobody 1024 Jan 15 15:23 sbin drwxr-xr-x 4 admin nobody 1024 Jan 15 15:23 www
- I copied phpsysinfo-dev into the /www directory and also into the /www/cgi-bin directory.
- I've renamed the config.php.new to config.phpCode:drwxr-xr-x 3 admin nobody 1024 Jan 15 15:28 cgi-bin -rw-r--r-- 1 admin nobody 323 Jan 4 00:30 index.html drwxr-xr-x 5 admin nobody 1024 Jan 15 15:42 phpsysinfo-dev
When I request the index.html page it says:
When I request the phpsysinfo page (http://wl500g:81/phpsysinfo-dev) it says:Code:If you see this you are sucessfully running thttpd on wl500x
Also when I request the same page from cgi-bin (http://wl500g:81/cgi-bin/phpsysinfo-dev) it says the same as above.Code:Error: Linux is not currently supported
I've also written a test php script which I placed into the /www and the /www/cgi-bin folder, and in both cases the script worked perfect (Hello World).
My conclusion so far is: PHP is running fine, I only need some extra stuff for phpsysinfo. Any ideas what might cause the phpsysinfo to report the error?
Styno:
I had the same problem with phpsysinfo that it said that Linux was not supported.
The problem was that phpsysinfo looks for a file called class.Linux.inc.php in sysinfo/includes/os/
I had that file but with a lowercase L in the word class.Linux.inc.php.
Moved the file with
and it worked fine after that.Code:mv class.linux.inc.php class.Linux.inc.php
Hope this will work for you too.
Yep, that was my problem too, among with some other files who were also lowercase. It's because I copied the files through a SAMBA share (which converts every file/dir to lowercase) that I had this problem.Originally Posted by Jaap
So to everyone: Do not unpack the files to a SAMBA share, because it will break the website.
Thanks Jaap!
Starting with 1.9.2.7-3 samba preserves file case (i.e. required options are set in the config file).
FYI
By default thttpd is trying to load whole page to memory before sending it to client. This means that kernel will kill it, when somebody wants to download any huge file from your web.
But it can be changed! Look for following lines in configure script:
> if test "$cross_compiling" = yes; then
> ac_cv_func_mmap_fixed_mapped=no
WL500g CAN do mmap, so you can set ac_cv_func_mmap_fixed_mapped to yes.
Then thttpd only memory-maps file and big files are served without impact on free memory.
Friend compiled it for me, but without PHP.
where does it go wrong with me ??
When i install the thttpd with php is works great on *.html and *.php
After rebooting my wl500g
and start the ./thttpd -C ../etc/thttpd.conf -c /cgi-bin/* again
i get this on *.html
403 Forbidden
The requested URL '/' resolves to a file which is marked executable but is not a CGI file; retrieving it is forbidden.
*.php still works fine.
You will have to do a chmod -x on all html files. Also the filesystem needs to be ext2 or ext3 (on FAT filesystems all files have execute rights).
ok thank you styno
chmod is no probleem
only thing is that i have only windows xp running and can't format too ext2 or ext3.
Is it possible to format it on the wl500g itself ?
thanks too all
Yes, the newer firmwares from Oleg allow you to format ext2 and ext3 partitions. Don't know if there is a tool present to create those partitions though, but you can use Ranish partition manager (freeware) for that.
Check this thread: http://wl500g.info/showthread.php?t=1518
In recent Oleg's firmwares is FDISK applet present (as part of Busybox) so you don't need any external application.Originally Posted by Styno
Hello,
Hello i have some problem to acces some file with this web server.For exemple if i try to see a jpg or gif file i obtain an error witch say 403 Forbiden this file is executable but not containing a CGI scipt.
I have made all the file executable.
ThX
Chmod -x the .jpg file.Originally Posted by Rom666