Mailgraph problems

Discussion in 'HOWTO-Related Questions' started by JuStInEr, Jul 28, 2006.

  1. JuStInEr

    JuStInEr New Member

    First of all, thanks for the great how-to's!:)
    -----

    I have a working postfix configuration on ubuntu. And now I'm trying to install mailgraph, but when I surf to he .cgi file i don't see graphs. What I see is the text of the .cgi file:

    Does someone know a solution?
     
  2. falko

    falko Super Moderator Howtoforge Staff

  3. JuStInEr

    JuStInEr New Member

    I did put the files in the cgi-bin directory, so that should not be the problem.
    And I don't run the scripts from a virtual host...
     
  4. falko

    falko Super Moderator Howtoforge Staff

    You should then. And make the CGI scripts executable.
     
  5. JuStInEr

    JuStInEr New Member

    I think that I know what may be the problem: Perl. But I don't know how to solve it.

    I downloaded your test files (hello_world.pl), and placed it in my cgi-bin directory. When I go to the file, my browser asks if I want to download it.

    This is my /etc/apache2/sites-available/default:
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Code:
    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <directory "/usr/lib/cgi-bin">
    AllowOverride None
    Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all
    </directory>
    You must put your Perl scripts into /usr/lib/cgi-bin then.
     

Share This Page