Re: perl / cgi-bin setup issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Make sure mod_cgi / mod_cgid is loaded first.

On Thu, Mar 8, 2018 at 10:47 PM, Gary Aitken <apache@xxxxxxxxxxxxxxx> wrote:
My first time trying to get a perl script to run, so probably something
obvious.

On freebsd 10.3, apache 2.4.25

httpd.conf:

/usr/local/etc/apache24/httpd.conf:
  <IfModule>
    ...
    ScriptAlias /cgi-bin/ "/usr/local/www/apache24/cgi-bin/"
  </IfModule

  <Directory "/usr/local/www/apache24/cgi-bin">
      AllowOverride None
      Options ExecCGI
#        (It's my understanding the above Options ExecCGI
#  is not needed in this case)
      Require all granted
  </Directory>

The script is world executable and runs fine:
$ ./tst.pl
Content-type: text/plain; charset=iso-8859-1

hello, World!

When I fetch the page
  http://my.domain.com/cgi-bin/tst.pl

all I see is the script echoed.

I have virtual hosts set up in extra/httpd-vhosts.conf;
I've tried fiddling with that as well to no avail:
  <VirtualHost *:80>
    ...
    ScriptAlias /cgi-bin/ "/usr/local/www/apache24/cgi-bin/"
    <Directory "/usr/local/www/apache24/cgi-bin/">
      Options +ExecCGI
      AddHandler cgi-script .cgi .pl
    </Directory>
</VirtualHost>

Thanks for any pointers,

Gary

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux