GUIDE: Complete and detailed in making a PHP enabled webserver + ssh server.
Changelog :
29-06-2005
+ CRON job scheduling system tutorial added
16-06-2005
+ SAMBA tutorial added
25-05-2005
+ esmtp tutorial added
# php webserver tutorial split in two :
1. php enabled webserver
2. ipkg package system tutorial
18-05-2005
+ Hardware comparison table added
11-05-2005
+ Added a page with general information about Olegs Firmware
+ Added a complete guide for setting up a Cross Compiling Build Environment
10-05-2005
# Username related error in the vsftpd guide corrected.
02-05-2005
+ Added a complete vsftpd guide
29-04-2005
+ Added a small guide in howto enable perl .pl / .cgi scripts
28-04-2005
# Switched from thttpdphp to php-thttpd
# Changed webroot to comply with Unslung standards
# Corrected small error in setting eXecutable flag (thanks rdk)
+ Added a small ssh-server only guide as well.
----
http://macsat.com/wlguide/index.php
----
I just made a complete and quite detailed guide on how to make your ASUS WL device into a full featured PHP enabled webserver, and a ssh server.
The guide should be usuable even for people that dont know linux in advance !!
The Guides Include :
*PHP enabled webserver + ssh server guide
*ssh server guide
Link :
http://macsat.com/wlguide/index.php
Wil be updated shortly :-)
Hi Jean-Fabrice
Thanks for the nice words.
The thttpd package thing will be updated soon, and also the placement of the www dir :-)
Will keep people posted in here.
/macsat
Access from WAN with thttpd
Quote:
Originally Posted by mullog
thx for the guide. all works fine except access from wan.
Am I supposed to have the firewall enabled in web setup?
I had the same problem. The solution was to take port 80 in the list of the virtual servers (under NAT Settings):
Port range: 80
Local IP: local IP address of the router
Local port: the port number you have chosen for local access to your web server
Protocol: TCP
I do not know if it it is the unique solution (and the best ?) but it works. May be the (excellenet) howto could be updated with this point.
vsftpd + olegs CR5 firmware.
Hi guys
Sorry for keeping you in the dark, I have been away on a conference for a couple of days, so I havent been able to check my mail / this forum.
Foxtree : The username in /opt/etc/xinetd.d/vsftp should be the same as your login on the admin webpages on your router. I kindda forgot that :-) Thanks for "finding" that little error for me.
Britnet : CR5 of the Oleg firmware, should have no impact on my guides.
no php.ini in /opt/etc, please post working php.ini file :-)
Hi
I have the php server running. But I cannot use it as I would like to:
I also installed sqlite via ipkg. I have created a db called wordpress.db with sqlite3
I have download wordpress blogging system and sqlite patch (to be found here:http://elizabethmariesmith.com/?p=19)
With no php.ini file in /opt/etc I have errors, mostly session errors trying to write to /tmp (this directory is write enabled?!)
I really want to get this working, I have then taken the php-dist.ini and php recommended file from a php5 distribution and copied to /opt/etc because I didn't have a php.ini there (phpinfo() shows the path but no the file)
I have also changed the extensions path in php.ini to /opt/lib/php/extensions to be able to use the gd functions installed. What else has to be changed to run smoothly on the wl500g?!
But I still get some weird errors mostly:
With sqlite admin:
Undefined index: DOCUMENT_ROOT in .....
With wordpress installation:
Fatal error: main() [function.require]: Failed opening required '/opt/share/www/wordpress/wp-includes/functions.php' (include_path='.:')
Can someone post his php.ini file that he is using? Thanks a lot :-) Maybe you could even add this to your guide...
Regards,
Rainer
esmtp tutorial now added...
I have now added a esmtp tutorial to my page.
This will enable you to make the router send out mails....very useful for php pages, perl scripts and certail server programmes, that likes to send status mails.
Tutorials I am considering making :
- crontab
- samba (windows drive / folder sharing)
- multi user setup
I would like comments, both on existing turorials / guides, and on future plans....
Regards
macsat
bittorrent is not too hard...
It seems like all you need to do to get torrent running is :
Code:
ipkg install torrent
Then you use the command :
Code:
btget filename.torrent
or
Code:
btget -h http://www.somedomain.com/filename.torrent
I havent testet it much, but it seems to be "it"
SAMBA / Windows Network Share Tutorial added.
Hi guys
I have added a simple SAMBA tutorial on my page.
/macsat
web not accesfible from wan
I installed thttpd and it is running fine and I can see the web from the LAN side, but not from the WAN side, unless I completle disable the firewall via the webinterface. Otherwise, the server cannot be found - even when I opened ports 1:65535 both ways (LAN>WAN and WAN>LAN).
the log says this:
Code:
Jun 23 21:46:36 kernel: DROPIN=eth1 OUT= MAC=00:11:2f:86:8e:f0:00:80:48:1e:6b:84:08:00 SRC=194.108.97.134 DST=10.102.236.214 LEN=48 TOS=0x00 PREC=0x20 TTL=115 ID=6375 DF PROTO=TCP SPT=1713 DPT=8080 SEQ=1399993079 ACK=0 WINDOW=8192 RES=0x00 SYN URGP=0 OPT (0204057001010402)
Jun 23 21:46:36 kernel: DROPIN=eth1 OUT= MAC=00:11:2f:86:8e:f0:00:80:48:1e:6b:84:08:00 SRC=194.108.97.134 DST=10.102.236.214 LEN=48 TOS=0x00 PREC=0x20 TTL=115 ID=6375 DF PROTO=TCP SPT=1713 DPT=8080 SEQ=1399993079 ACK=0 WINDOW=8192 RES=0x00 SYN URGP=0 OPT (0204057001010402)
Jun 23 21:46:44 kernel: DROPIN=eth1 OUT= MAC=00:11:2f:86:8e:f0:00:80:48:1e:6b:84:08:00 SRC=194.108.97.134 DST=192.168.1.1 LEN=48 TOS=0x00 PREC=0x20 TTL=115 ID=6376 DF PROTO=TCP SPT=1714 DPT=81 SEQ=2333953345 ACK=0 WINDOW=8192 RES=0x00 SYN URGP=0 OPT (0204057001010402)
194.108.97.134 being the adress os the computer I am trying to access the web (it is dynamic;-)), 10.102.236.214 being the adress of my router (I am connected through a private network, however, I have got a public IP adress, which is assigned at the gateway - at least I think so) 192.168.1.1 being adress of the router.
I have no idea how to solve this problem - can you help me?(or at least explain, what those records in log mean?)