错误日志:
[Tue Jun 17 12:08:35 2014] [error] [client 172.18.40.199] Perl v5.16.0 required--this is only v5.10.1, stopped at index.cgi line 2.
[Tue Jun 17 12:08:35 2014] [error] [client 172.18.40.199] BEGIN failed--compilation aborted at index.cgi line 2.
[Tue Jun 17 12:08:35 2014] [error] [client 172.18.40.199] Premature end of script headers: index.cgi
这是作为用户运行的:'support' 并且支持运行 perlbrew w/ 开关设置为 5.16.3,如下所示:
# su - support
print() on closed filehandle $fh at /loader/0x1cb94a8/App/perlbrew.pm line 19.
-bash-4.1$ perl -v
This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux
我需要做什么来确保 Apache 使用 perlbrew 安装的 perl 执行 index.cgi?