- バージョンの確認
$ perl --version
This is perl 5, version 28, subversion 1 (v5.28.1) built for arm-linux-gnueabihf-thread-multi-64int
(with 61 registered patches, see perl -V for more detail)
Copyright 1987-2018, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
- CGI を有効にする
sudo a2enmod cgid
sudo systemctl restart apache2
/etc/apache2/apache2.conf
AddHandler cgi-script .cgi .pl
- ページにアクセス
Forbidden
You don't have permission to access this resource.
Apache/2.4.38 (Raspbian) Server at tulip.local Port 80
- 設定の変更
/etc/apache2/apache2.conf
<Directory /var/www/>
Options Indexes FollowSymLinks ExecCGI
AllowOverride None
Require all granted
</Directory>