Monday, November 14, 2022

Set up cgi-perl in Debian 11

apt-get install apache2

/sbin/a2enmod cgid


systemctl restart apache2


cd /usr/lib/cgi-bin


nano /usr/lib/cgi-bin/test.pl


#!/usr/bin/perl

print "Content-Type: text/html\n\n";

print ("<h1>Perl is working!</h1>");

chmod 755 /usr/lib/cgi-bin/test.pl

http://172.31.8.195/cgi-bin/test.pl


Source: https://techexpert.tips/apache/perl-cgi-apache/

No comments:

Post a Comment