Results 1 to 2 of 2

Thread: Running Server Side Perl Scripts

Hybrid View

  1. #1
    Junior Member registered user
    Join Date
    Apr 2006
    Location
    victoria
    Posts
    14

    Running Server Side Perl Scripts

    I have been able to run PHP Server Side Scripts on Apache using the Knoppix Live CD. But cannot run Server Side Perl Scripts. I cannot save a Perl Script in the cgi-bin directory, it is READ ONLY. I have tried changing the File Permissions from the Root Shell but have had NO Luck.

    Is there a way to run Server Side Perl Scripts from the Live CD ?

  2. #2
    Senior Member registered user
    Join Date
    Aug 2003
    Posts
    126
    Hi,
    Re: perl and bash scripts.
    You need to be root to do this.
    Use whatever text editor you prefer out of those available (gedit, kate, kwrite, emacs and vim).
    Create a file as root with the following.
    Code:

    #!/bin/bash

    printf "Content-type:text/html\r\n\r\n";
    printf "<html>hello world</html>\r\n";


    This bash script should be saved as hello.cgi and saved in the /usr/lib/cgi-bin directory.
    It also needs to be made executable for all users:
    At the root prompt type
    chmod 755 /usr/lib/cgi-bin/hello.cgi
    Then visit the file with a browser e.g. mozilla
    http://127.0.0.1/cgi-bin/hello.cgi

    Once this works you can do the same for perl. This time saving the file as hello.pl
    and using the following code:
    Code:
    #!/usr/bin/perl

    print "Content-type:text/html\n\n";
    print "<html>hello world</html>\n";


    Once you have got these two programs going then you have a wide choice to start open source web programming under Knoppix Debian/Gnu/Linux.
    Regards,
    Mark
    See also
    http://www.knoppix.net/forum/viewtopic.php?t=19300

Similar Threads

  1. Server Side Perl Scripts and Inaccessible cgi-bin Directory
    By brass in forum MS Windows & New to Linux
    Replies: 1
    Last Post: 05-02-2006, 11:47 AM
  2. web server +perl cgi problems
    By Ardil in forum General Support
    Replies: 2
    Last Post: 05-28-2005, 10:37 PM
  3. where is cgi-bin so I can test perl scripts
    By bstanard in forum General Support
    Replies: 5
    Last Post: 01-10-2005, 03:52 PM
  4. Knoppix Apache / SQL / PHP / Perl Web Server?
    By Zoplax in forum Customising & Remastering
    Replies: 2
    Last Post: 10-15-2003, 09:36 PM
  5. Shell scripts running at Knoppix
    By majales in forum General Support
    Replies: 2
    Last Post: 05-15-2003, 04:21 PM

Posting Permissions

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


Intel Core i7-3770K 3.5 GHz Processor picture

Intel Core i7-3770K 3.5 GHz Processor

$39.00



Intel Core i7-9700 3.0 GHz Octo-Core (SRG13) Processor picture

Intel Core i7-9700 3.0 GHz Octo-Core (SRG13) Processor

$79.00



Intel Core i5-4590T 2 GHz 5 GT/s LGA 1150 Desktop CPU Processor SR1S6 picture

Intel Core i5-4590T 2 GHz 5 GT/s LGA 1150 Desktop CPU Processor SR1S6

$10.99



PS5 Over Heating Problem Solver 1.5 Grams Liquid metal thermal paste CPU, GPU picture

PS5 Over Heating Problem Solver 1.5 Grams Liquid metal thermal paste CPU, GPU

$15.99



Intel Core i7-9700 SRG13  3.0 GHz  Desktop CPU picture

Intel Core i7-9700 SRG13 3.0 GHz Desktop CPU

$80.00



Intel SRG17 Core i7-9700T Desktop Processor CPU picture

Intel SRG17 Core i7-9700T Desktop Processor CPU

$79.99



Intel Core i7-6700 Processor (3.40 GHz, 4 Cores, LGA 1151) - SR2L2 picture

Intel Core i7-6700 Processor (3.40 GHz, 4 Cores, LGA 1151) - SR2L2

$34.99



Matched Pair _ Intel Xeon E5-2698 V4 2.2GHz 20-Core Processor CPU LGA2011 SR2JW picture

Matched Pair _ Intel Xeon E5-2698 V4 2.2GHz 20-Core Processor CPU LGA2011 SR2JW

$94.99



Intel Core i5-8400T 1.7 GHz LGA 1151 Desktop CPU Processor SR3X6 picture

Intel Core i5-8400T 1.7 GHz LGA 1151 Desktop CPU Processor SR3X6

$28.99



Intel Core i5-4590 3.3GHZ  picture

Intel Core i5-4590 3.3GHZ

$18.00