Page 1 of 2 12 LastLast
Results 1 to 15 of 48

Thread: Complete detailed guide for PHP enabled webserver + ssh server.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Smile 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
    Last edited by macsat; 29-06-2005 at 10:13. Reason: CRON tutorial added

  2. #2
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt a.M.
    Posts
    299
    Had somebody test this guide?
    WL-500gP => 1.9.2.7-7g (2007-04-06)
    Running: thttpd, php 5.1, vsftp, rrdtool

    http://onlinefussballmanager.de/userbar/0/53647.png

  3. #3
    Join Date
    Jul 2004
    Location
    near Lyon @ France
    Posts
    195
    This howto is very nice and complete. Thank you macsat !

    Just a few things:
    1) phpthttpd is now obsolete.
    Instead of running
    Code:
    cd /opt/tmp < enter > 
    wget http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/thttpdphp_2.25b-5.0.3-1_mipsel.ipk < enter > 
    /opt/bin/ipkg install thttpdphp_2.25b-5.0.3-1_mipsel.ipk < enter > 
    rm thttpdphp_2.25b-5.0.3-1_mipsel.ipk < enter >
    Code:
    ipkg install php-thttpd < enter >
    This will install thttpd with php support plus the full php package (giving you additionnals modules)

    2) webroot *should* sits under /opt/share/www.
    Unslung staff makes this (arbitrary) choice so that web-related packages can all rely on this dir at install time. storing your webroot somewhere else will not guarantee that web-related package will be web visible once installed.


    JF
    Last edited by Jean-Fabrice; 28-04-2005 at 14:03.

  4. #4
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt a.M.
    Posts
    299
    Thank you,

    can i change the www files via ftp?
    WL-500gP => 1.9.2.7-7g (2007-04-06)
    Running: thttpd, php 5.1, vsftp, rrdtool

    http://onlinefussballmanager.de/userbar/0/53647.png

  5. #5

    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
    macsat
    http://www.macsat.com - Tutorials and information on using ASUS WL-500G and family.

  6. #6

    thanks for this howto

    Hi Macsat

    I ve also used this howto and found it very useful to learn how the ipkg stuff works Thank you!

    Its just at one place where you put

    mkdir /usr/local < enter >
    mkdir /usr/local/sbin < enter >
    touch /usr/local/sbin/post-boot < enter >
    touch /usr/local/sbin/post-firewall < enter >
    =>>> chmod -x /usr/local/sbin/* < enter >

    Shouldn't this last line be chmod +x ??
    At least thats what worked for me....

    The rest was fine

    Regards,
    Rainer

  7. #7

    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
    macsat
    http://www.macsat.com - Tutorials and information on using ASUS WL-500G and family.

  8. #8
    Well, for crontab there is a little howto being discussed at the moment, so you're more then welcome to use my example there atleast. http://wl500g.info/showthread.php?t=1058

    And a nice tutorial I have been contemplating writing is about SSH tunneling/port forwarding, which is great for accessing local network safely. With dropbear setup there is actually nothing more that needs configuring on the server so it's all just learning how to use the ssh client (like putty). I use it for http access to admin pages, Remote Desktop on LAN pc, Samba to LAN PC..

    As for tunneling samba traffic, I found a neat trick on the net. http://www.blisstonia.com/eolson/notes/smboverssh.php
    The problem is that in windows you cannot samba to an other port than 139. Thus you need to turn off local sharing to connect through localhost:139. But this trick solves that problem by setting up a new loopback adapter.

    Good work! Keep it up!
    B.

  9. #9
    Quote Originally Posted by macsat
    I would like comments, both on existing turorials / guides, and on future plans....
    t
    Hi! Your tutorials are excellent. I'm voting for a ctorrent tutorial, it would be great to have console torrent client on wl500.

    Thanks again for great tutorials

  10. #10

    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"
    macsat
    http://www.macsat.com - Tutorials and information on using ASUS WL-500G and family.

  11. #11

    SAMBA / Windows Network Share Tutorial added.

    Hi guys

    I have added a simple SAMBA tutorial on my page.

    /macsat
    macsat
    http://www.macsat.com - Tutorials and information on using ASUS WL-500G and family.

  12. #12
    I got a few problems:

    - Everytime when the webserver is running it dies after 40 minutes or less. When I open the site it says failed to connect. I've tried reinstall everything but that didn't help.

    - I've installed vsftpd. Everytime when I try to connect with a ftp client it says: "500 OOPS: vsftpd: not found: directory given in 'secure_chroot_dir':/usr/share/empty"

    I hope someone can help me with this.

  13. #13
    Join Date
    Jan 2005
    Location
    Kysice,Czech Republic
    Posts
    46
    so just make that directory;-). I suppose you followed macsat guides and you are using some kind of usb storage device. You have it mounted somewhere - you can find out where by typing
    Code:
    df
    in telnet - if you followed the guide, it should be mounted as /opt, so just make the directory
    Code:
     mkdir /opt/usr/share/empty
    and then change the value in secure_chroot_dir=/usr/share/empty (if you already created it) vsftpd config file via some text editor to this :
    secure_chroot_dir=/opt/usr/share/empty
    (you cannot just make the directory in /usr/share/empty - it is a directory directly in your asus device and cannot be so easilly changed if ever, I guess - just hoping I am not doing any FUD)

  14. #14
    The directory already excists. I've tried to put "secure_chroot_dir=/opt/usr/share/empty" in the config files but it still doesn't work.

    I still got disconnection problems with the webserver
    Log:
    click here

  15. #15
    Join Date
    Jan 2005
    Location
    Kysice,Czech Republic
    Posts
    46

    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?)

Page 1 of 2 12 LastLast

Similar Threads

  1. Idiot's guide to setting up bridge mode?
    By tsb4k in forum WL-HDD Q&A
    Replies: 0
    Last Post: 03-09-2005, 23:46
  2. Internet is blocked when WL-500 is enabled
    By Old Harry in forum WL-500g Q&A
    Replies: 2
    Last Post: 22-12-2004, 16:52
  3. Complete webserver+ftp installation
    By seann in forum WL-500g Q&A
    Replies: 9
    Last Post: 19-12-2004, 22:01
  4. detailed logfiles
    By tommy777 in forum WL-500g Q&A
    Replies: 1
    Last Post: 30-05-2004, 20:54

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •