So i have followed everything on this tutorial http://www.howtoforge.com/mail_statistics_mailgraph_pflogsumm But when i got to https://example.com/cgi-bin/mailgraph.cgi I get the text that i in that file and it is not running that file. How do i enable cgi on debian apache2?
owner is: www-root permitions 755 But it still comes up with the text Do i not have to activate or install cgi? and if so how?
Debian <VirtualHost *> ServerName mywebsite.org DocumentRoot /home/namit/public_html/ <Directory /> Options FollowSymLinks AllowOverride None </Directory> LogLevel warn </VirtualHost>
Try Code: <VirtualHost *> ServerName mywebsite.org DocumentRoot /home/namit/public_html/ <Directory /> Options FollowSymLinks AllowOverride None </Directory> LogLevel warn <Directory /home/namit/cgi_bin> Options ExecCGI -Indexes AllowOverride None AllowOverride Indexes AuthConfig Limit FileInfo Order allow,deny Allow from all <Files ~ "^\.ht"> Deny from all </Files> </Directory> ScriptAlias /cgi-bin/ /home/namit/cgi_bin/ AddHandler cgi-script .cgi AddHandler cgi-script .pl </VirtualHost> Of course, you must create /home/namit/cgi_bin before. Restart Apache, and put your CGI scripts into /home/namit/cgi_bin.