我试图让 perl 在我的 Apache 2 macports 安装下运行。我希望有经验的 perl 极客可以帮助我。我有...
- 让 Apache 运行得很好。Macports 使用 perl5 占位符和 perl5.8.9 安装它。
- 安装了 mod_perl2。
- 运行脚本来配置 httpd.conf。
- 重启阿帕奇。
在 htdocs 中编写了以下测试脚本
#!/opt/local/bin/perl print "content-type: text/html \n\n"; print 'Hello world.';
我得到的只是打印到屏幕上的脚本内容。我错过了一步吗?我需要在 .conf 文件中进行一些额外的配置吗?