I have set up a development machine at home and I'm trying to move perl files that I know work from my HostGator account to my home account, but when I placed the files and proceded with the installation and matched the same permissions as on my previous host, for some reason when I try to view the perl file via browser it tries to download it instead of running it. This is what I have in my httpd.conf and this is a Debian Etch with Apache2 Code: ScriptAlias /cgi-bin/ /var/www/project/trunk/cgi-bin/ <Directory /var/www/project/trunk/cgi-bin> AllowOverride None Options ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> Can somebody tell me what I should do
Add this to your vhost configuration and restart Apache: Code: AddHandler cgi-script .cgi AddHandler cgi-script .pl
I actually just fixed this, it figures that I just needed some modules installed and the scripts were not running but for some reason whether it is FireFox or the server the 500 error wasn't showing like usual instead it was downloading some empty files, I found the logs in /var/log/apache2/error.log which said which modules needed to be installed. I installed them through the cpan command and it works now. But now I'm having trouble (not related to the above) with .htaccess files running mod_rewrite, I enabled the rewrite module with a symlink and changed the AllowOverride to All and reloaded and it still doesn't do the simple check found here: http://www.webune.com/forums/viewtopic-p-62.html When I click the second link it simply shows a 404, this is what I put in the httpd.conf for this: Code: <Directory /var/www> AllowOverride All </Directory> Should I start another topic for this?
.htaccess Code: RewriteEngine On RewriteRule ^link([^/]*)\.html$ rewrite.php?link=$1 [L] I just did this test here... http://www.webune.com/forums/viewtopic-p-62.html