CGI configuration on Linux

Sharky Forums


Results 1 to 4 of 4

Thread: CGI configuration on Linux

  1. #1
    Expensive Sushi
    Join Date
    Mar 2001
    Location
    Dallas, TX, USA
    Posts
    23

    Question CGI configuration on Linux

    I'd like to configure my Linux box as a CGI server. What steps do I need to take? Also,
    can someone explain some of the advantages/
    disadvantages of CGI vs. ASP as a server-side
    scripting tool? What other server-side scripting tools are out there?

    Thanks in advance.

  2. #2
    Reef Shark gammaray51's Avatar
    Join Date
    Sep 2000
    Location
    Virgina Beach, VA
    Posts
    493

    Post

    never used asp so I cant help you on that. Your server software should setup a cgi-bin directory where everything can be executed from. If not then you will need to create one and tell the server where it is in the config file. Then you need to make sure that you make the it executable. This can be done with a chmod -755 (I think, you may want to check on that).

  3. #3
    NullPointerException rock's Avatar
    Join Date
    Sep 2000
    Location
    York, PA
    Posts
    6,203

    Post


    chomd 755 is correct - this will give -rwxr-xr-x.

    You need to install/configure a web server and put your cgi binaries in the right directories. The main disadvantage of running CGI is that you need to spawn an external binary every time the client wants to do anyything. The main advantage is that you can really restrict the # of holes through your firewall.

    Now that we support Java Server Pages, we're trying to phase out CGI support in favor of JSPs - then you just need a little servlet server like Tomcat or Enhydra, which are really easy to set up.

    Open Source is free like a puppy is free.

    It's only when you look at an ant through a magnifying glass on a sunny day that you realise how often they burst into flames.

    Understanding Evolution

  4. #4
    Reef Shark Pestilence's Avatar
    Join Date
    Dec 2000
    Location
    Hickville, USA. :(
    Posts
    353

    Post

    ASP is Windows only so it's not even an option for you. And what type of cgi are you referring to? Perl cgi? C cgi? Php?

    ------------------
    (\__/) See the bunny.
    (='.'=) Hear the bunny.
    (") (") Pet the bunny.

    BE the bunny.

    Data Structure programming assignment solutions found here! http://www.sa.sc.edu/cp/java/
    By Yours truly.
    God damnit, better graphics != revolutionary gaming! Get it through your skull!

Posting Permissions

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