linux系统本身就是支持perl的。
你在apache配置里面把
LoadModule cgid_module modules/mod_cgid.so
前面的#号去掉重启apache。
然后在站点配置文件里面
<Directory "/www/wwwroot/">
SetOutputFilter DEFLATE
Options FollowSymLinks
AllowOverride All
Require all granted
Options +ExecCGI
AddHandler cgi-script .cgi .pl
DirectoryIndex index.php index.cgi index.pl index.html index.htm default.php default.cgi default.pl default.html default.htm
</Directory>
把中间的两行加进去就能支持perl了。
|