
m_aldemir at tilda
Nov 12, 2008, 5:01 AM
Post #1 of 3
(649 views)
Permalink
|
|
Apache doesn't execute perl scripts
|
|
Hello, I am running Apache 2 under a Debian server. I installed Awstats and configured it as stated in its documentation. Perl is running, I could update Awstats database from the console. I updated added the following lines to my Apache configuration, and restarted it. When I want to enter the www.domain.com/awstats/awstats.pl the browser asks to download the file or open it in text editor. Can you please help me point the problem out? thanks, Mustafa AddType application/x-perl-httpd .pl AddHandler perl-script .pl LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so LoadModule cgi_module /usr/lib/apache2/modules/mod_cgi.so <Directory "/usr/lib/cgi-bin"> AllowOverride None Options FollowSymLinks +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all SetHandler perl-script </Directory> Alias /awstatsclasses "/usr/share/awstats/lib/" Alias /awstats-icon/ "/usr/share/awstats/icon/" Alias /awstatscss "/usr/share/doc/awstats/examples/css" ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ ScriptAlias /awstats/ /usr/lib/cgi-bin/
|