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?
Did you configure Perl scripts for your Apache vhosts? Did you put the file into the cgi-bin directory? Have a look here: http://httpd.apache.org/docs/2.0/howto/cgi.html
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...
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:
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.