Bekijk de volledige versie : wl-hdd with a php web server?
youngprodigys
31-05-2005, 21:01
Right, had a few problems with Oleg's 1.9.2.7-4 mod.
My problem - it didnt bloomin work.
i have followed it to a tee 5 times,
it just wont mount my hdd or start the php web server.
i can install the software needed and its all good up to there and i can mod the thttpd.conf fiile
the dropbear bit goes well too.
But now heres where it all goes pete tong - "making the webserver and build-in ssh server startup at boot,ans making them accessible from wan"
i change the "mount /dev/discs/disc0/part1 /opt" and correct it to match mine
"mount /dev/discs/disc0/part5 /opt " and then the swapon to part6
Now i flashfs save,commit,enable and reboot - the swap partition is working but my webserver isnt and i have to mount part5 myself on reboot - what am i doing wrong?
if any1 has go this working on there wl-hdd and has created a firmware?
it would be good to see my wl-hdd working as a php webserver because then i can use it.
Anyone got any ideas?
Thanks - Kieran
Hi
Have you tried to just run :
/opt/etc/init.d/S80thttpd
after you router has rebooted ?
youngprodigys
01-06-2005, 08:26
ive tryed lots of things to remember, il give this a go, going to work now though so il let you know about 6pm
Thanks
Youngprodigys
youngprodigys
01-06-2005, 20:41
Right, i tried what you said and heres the outcome - as i can see the device IS mounted and so is the swap. but no webserver and no ftp - as soon as i flashfs i lost the ability to ftp.
(none) login: admin
Password:
[admin@(none) root]$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 2944 2944 0 100% /
/dev/discs/disc0/part5 10854013 53714 10236821 1% /opt
[admin@(none) root]$ free
total used free shared buffers
Mem: 13948 12816 1132 0 1080
Swap: 506012 1148 504864
Total: 519960 13964 505996
[admin@(none) root]$ /opt/etc/init.d/s80thttpd
-sh: /opt/etc/init.d/s80thttpd: not found
[admin@(none) root]$
ignor the PHP on the top box - just didnt know how to put a box round it.
any ideas any1? i followed the instructions as i should have
Thanks
Youngprodigys
The command should be :
/opt/etc/init.d/S80thttpd start
Case DOES matter....this will not work :
/opt/etc/init.d/s80thttpd start
And you did use lower-case for your 'S' in 'S80thttpd'
youngprodigys
01-06-2005, 22:07
Hi, thanks for the quick reply, i did as you said and got the following
(none) login: admin
Password:
[admin@(none) root]$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 2944 2944 0 100% /
/dev/discs/disc0/part5 10854013 53714 10236821 1% /opt
[admin@(none) root]$ /opt/etc/init.d/S80thttpd start
Warning : /opt/var/run/thttpd.pid still present. Unclean shutdown ?
Starting thttpd... done
[admin@(none) root]$
so does this mean it is working? i try to type the web address http://192.168.123.99/index.htm - and get nothing.
could it be a problem with the setup of the firewall - im going to re do this now.
+ why can i not get ftp? whats the command to set it running again?
Thanks
Youngprodigys
For accessing your new www server from your LAN, using the LAN ip address, you need to connect to port 81...like :
http://my.router:81
Try to just click the above link, and see if it works...
ftp depends on your setup..
Did you mount your ONLY attached storage on /opt ??
Then the built-in stupid-ftpd server will not start up. That one expects something to be mounted on /tmp/harddisk
I can only recommend you trying to get vsftpd running....there is a guide for that on www.macsat.com/wlguide.
youngprodigys
01-06-2005, 22:54
You are a legend - running it on port :81 it works, im setting everything up to suit
Thanks
+ it is my only attached storage - im starting on your other guide, il let you know
+ 1 more thing - you are a true pioneer for your guides
well done to you!
youngprodigys
03-06-2005, 19:05
at the end of my rag with this now, its b*ll*x
I have my webserver running - how the hell do i add file to it?
run ftp? - cant, screws it up, now im left with your vsftpd server running - kicks the webserver off and changes the mount to /tmp/harddisk
im only following your instructions - to the word almost!
any1 else got this problem?