.pl files not recognized by apache under ISPConfig as cgi-script

Discussion in 'Installation/Configuration' started by RayZ, Feb 28, 2008.

  1. RayZ

    RayZ New Member

    What's wrong?

    There are:
    httpd.conf with:
    AddHandler cgi-script .cgi .pl in httpd.conf
    Options ExecCGI

    Perl 5.8.8 installed

    DOC_ROOT = /var/www

    any .pl file listed in /var/www/web9/cgi-bin/ not recognizing. It's trying to open or downloading by browser...

    http://bemz.tis.ru/cgi-bin/test.pl

    Sorry for my poor english.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you enablecgi in ispconfig for the website? Is the test.pl script executable?
     
  3. RayZ

    RayZ New Member

    Yes and yes.
    test.pl runs in console successfully.

    apache 1.3
     
  4. RayZ

    RayZ New Member

    http://bemz.tis.ru/test.shtml
    ==test.shtml==
    <html>
    <body>
    Testing<!--#include virtual="/cgi-bin/test.pl" -->
    <br><br>testing2<!--#include virtual="test2.shtml" -->
    </body>
    </html>
    ==end==

    ==test.pl==
    #!/usr/bin/perl
    print "Content-Type: text/html\n\n";
    print "This is a test of /cgi-bin/ directory";
    ==end==
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you enable server side includes (SSI) in ISPConfig for the site?
     
  6. RayZ

    RayZ New Member

    Oww! Apache hasn't CGI and SSI module loaded...
    Fixin'. All errors gone. Thanx a lot!
     

Share This Page