我已经花了足够的时间四处寻找与谷歌的答案,我放弃了。 大量的关于如何用perl支持来构buildapache的讨论,但是我想知道如何判断随RHEL6.2提供的apache是否已经包含perl。我打赌是这样,但是我有一个httpd conf文件从RHEL3开始,我一直在RHEL apache服务器上使用它,它总是把它放到/etc/httpd/conf.d/中,但是现在我在RHEL6.2上试了它,它只是列出了我的脚本的来源,就好像perl未启用。 我认为第一步是validationperl被启用,然后第二步将找出我的configuration有什么问题。
-标记
您可以使用httpd -t -D DUMP_MODULES列出库存RHEL / CentOS Apache中已加载的模块。
你有mod_perl安装?
$ yum info mod_perl Available Packages Name : mod_perl Arch : i686 Version : 2.0.4 Release : 10.el6 Size : 3.2 M Repo : base Summary : An embedded Perl interpreter for the Apache HTTP Server URL : http://perl.apache.org/ License : ASL 2.0 Description : Mod_perl incorporates a Perl interpreter into the Apache web server, : so that the Apache web server can directly execute Perl code. : Mod_perl links the Perl runtime library into the Apache web server and : provides an object-oriented Perl interface for Apache's C language : API. The end result is a quicker CGI script turnaround process, since : no external Perl interpreter has to be started. : : Install mod_perl if you're installing the Apache web server and you'd : like for it to directly incorporate a Perl interpreter.
如果没有,那么“yum install mod_perl”。 它应该删除一个文件在conf.d /应该加载模块。