I had no luck with ScriptAlias. I set a UserDir public_html I used ExecCGI and AddHandler similar to you - That was the only way I found to run CGI scripts in Firefox. The Apache documentation does not help so much with Ubuntu. This page helped: https://help.ubuntu.com/12.04/serverguide/httpd.html I still found that some things did not work as advertised. I guess it depends on your installation config.Also, I had to load some modules cgi.load and perl.load and some I'm not sure were necessary.
(ssl, php5, auth_mysql, userdir) On 04/08/2013 09:12 AM, Stormy wrote:
I'm missing something, probably simple, so assistance appreciated. Apache 2.2.22 on Ubuntu 12.04(LTS) server. I have, for "site foo" which uses some Perl scripts:ScriptAlias /cgi-bin/ /var/www/foo/cgi-bin/ <Directory /var/www/foo/cgi-bin/> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch AddHandler cgi-script .pl Order allow,deny Allow from all </Directory>I have tried the ScriptAlias and the Directory with and without trailing slashes and double quotes, but user error: "The requested URL /cgi-bin/login.pl was not found on this server" and error.log gives: "[Mon Apr 08 12:28:40 2013] [error] [client 192.168.x.x] script not found or unable to stat: /usr/lib/cgi-bin/login.pl, referer: http://foo/"Perl has an @INC: /usr/lib/perl5 and there is an [empty] /usr/lib/cgi-bin/ -- which I don't want to use. Apache user is 'www-data' and foo is 'drwxr-xr-x 5 root www-data 4096 Apr 3 22:51 foo'Questions: can my ScriptAlias work? if not what EnvVar should I set and where?Many tnx - Paul --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx