www.mamboteam.com
macsat.com - OpenWrt | Olegs Firmware  
Home arrow Tutorials - OpenWrt (White Russian) arrow ASUS WL-Series thttpd CGI / Perl guide
Friday, 21 November 2008
 
 
Main Menu
Home
About
News
Tutorials - OpenWrt (WR)
Tutorials - Oleg
Wiki (RDC Based Routers)
Online Shop
Forum
Downloads
Free Linux eBooks
Links
Search
Contact Us
We have 5 guests online
2811097 Visitors
Login
Welcome Guest.






Lost Password?
No account yet? Register
Old macsat.com
Nokia Unlock (Dansk)
Nokia Unlock (English)
XBins IRC Chat
ASUS WL-Series thttpd CGI / Perl guide PDF Print E-mail
(1 vote)
Written by macsat   
Friday, 25 November 2005

This is a step for step guide for adding perl / .pl / CGI support to your ASUS WLxxxx based webserver.
The guide is made using a ASUS WL-500G Deluxe (or WL-500GX as it is sometimes called).
It should however apply to all the ASUS wireless line of products that are Linux based. Theese products are to my knowledge :

  • ASUS WL-500b
  • ASUS WL-500bv2
  • ASUS WL-500g
  • ASUS WL-500g Deluxe (WL500-gx)
  • ASUS WL-HDD
  • If you are the lucky owner of any of the above devices, you have come to the right place.
    If you still dont have one of the above devices - dont hesitate, go buy one :-)

    After following the steps in this guide, your ASUS WL device will have all its normal functionality,
    and also contain a full featured PHP enabled webserver that can be accessed from the WAN (Internet).

    Guide Index

    1. Prerequisites - What is needed to get started.
    2. Installing needed software packages
    3. Configuring the webserver

    Prerequisites

    This guide is made as a "follow-up" for my thttpd Web Server Tutorial.
    This means that I consider the setup to be simular to the setup you will have after completing that guide.

    Installing Needed Software Packages

    The needed package will be installed using the ipkg package management system.
    ipkg install microperl < enter >

    Configuring the Web Server

    The webserver is quite easy to configure for using .pl / .cgi scripts
    First create a cgi-bin directory :
    mkdir /opt/share/www/cgi-bin < enter >
    Edit the webserver configuration file :
    /opt/bin/nano /opt/etc/thttpd.conf < enter >
    At the bottom of the file, add the following line :
    cgipat=/cgi-bin/*
    Save the file by pressing < ctrl > + O followed by < enter >, exit nano with < ctrl > + X followed by < enter >
    Restart the webserver :
    /opt/etc/init.d/S80thttpd restart < enter >
    Now your web server will be able to execute Perl based cgi / pl scripts in the /cgi-bin of your webserver :-)
    I hope you found this guide useful.
    Comments are welcome to This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
    Last Updated ( Tuesday, 10 January 2006 )
     
    < Prev   Next >
    Buy Router
    Buffalo Technology WBR2G54
    Buffalo Technology WBR2G54
    Recent Forum Topics
    Donations

    If you appriciate this site, please consider making a small donation.

    All donations will be used to cover expenses from running macsat.com.

    Sponsored Ads
     
    Top! Top!