not running *.pl *.cgi files - error 500

  • First of all, thank you for this great panel :cool:


    I have the following problems, do not execute the cgi and pl files (ERROR 500!)
    cgi files, and pl files
    cgi is enabled, of course...


    the pl files contents:

    Code
    1. ###Start###
    2. #!/usr/bin/perl -w
    3. print "Content-type: text/html\r\n\r\n";
    4. print "Hello there!<br />\nJust testing .<br />\n";
    5. for ($i=0; $i<10; $i++)
    6. {
    7. print $i."<br />";
    8. }
    9. ###End###


    Does anyone have ideas?


    Ubuntu 11.10, i-MSCP 1.0.3.0
    [size=x-small]Sorry for bad English..[/size]

    ubuntu 12.04 | i-MSCP 1.1.0-rc4.7

    Edited once, last by Lazarevics ().

  • but I'm stupid ... thank you!
    syntax error :rolleyes:

    Perl
    1. #!/usr/bin/perl -w
    2. print "Content-type: text/html\r\n\r\n";
    3. print "Hello there!<br />\nJust testing .<br />\n";
    4. for ($i=0; $i<10; $i++)
    5. {
    6. print $i."<br />";
    7. }

    ubuntu 12.04 | i-MSCP 1.1.0-rc4.7

  • Hi,


    Thanks too for this great CP ;)
    But i can't execute for example one file : test.pl with the example from Lazarevics.
    How can i run *.pl ? i have to install perl cgi package ?


    Thanks all ;)
    Best Regards,


    PS: I am testing it on a virtualbox in first time ;)