[英]Apache failed to start
Please help me solving this problem I don't know why this is coming...before two days it was coming fine...but after uninstalling lampp I'm getting this error.But I have another apache installed. 请帮我解决这个问题,我不知道为什么会这样...在两天前一切正常...但是在卸载lampp之后我遇到了这个错误。但是我安装了另一个apache。
Starting httpd: Syntax error on line 997 of /etc/httpd/conf/httpd.conf: Can't locate object method "set_max_unshared_size" via package "Apache2::SizeLimit" at /var/www/html/bugzilla/mod_perl.pl line 56.\\nCompilation failed in require at (eval 2) line 1.\\n 启动httpd:/etc/httpd/conf/httpd.conf的第997行上的语法错误:无法通过/var/www/html/bugzilla/mod_perl.pl上的“ Apache2 :: SizeLimit”包找到对象方法“ set_max_unshared_size”第56行。\\ n在(eval 2)第1行,要求中的编译失败。\\ n
Any suggestion will be great thanks in advance. 任何建议都会非常感谢。
It looks you have to install some more packages to resolve this error you can solve it by installing mod_perl-devel and httpd-devel for your OS. 看来您必须安装更多软件包才能解决此错误,可以通过为您的操作系统安装mod_perl-devel和httpd-devel来解决此错误。
See this link http://freevps.us/thread-7213.html 看到此链接http://freevps.us/thread-7213.html
Thanks & Regards, 感谢和问候,
Alok Thaker 阿洛·萨克(Alok Thaker)
This is more a suggestion on troubleshooting steps rather than a one line sloution. 这更多地是关于故障排除步骤的建议,而不是一线解决。 I think you should start by confirming that your environment meet the requirements to run Bugzilla
using mod_perl
. 我认为您应该首先确认您的环境符合使用mod_perl
运行Bugzilla
的要求。 If not, you should be able to use mod_cgi
as far as I know. 如果不是这样,就我所知,您应该可以使用mod_cgi
。
My suggestion is to start following the installation instructions for Buzgilla
and confirm the correct versions of Perl and it's modules are used/installed. 我的建议是开始按照Buzgilla
的安装说明进行Buzgilla
并确认使用/安装了正确的Perl版本及其模块。 This is described in the Installtion - Perl Modules section of the Bugzilla
documentation. Bugzilla
文档的“ 安装-Perl模块”部分对此进行了描述。 Basically you can run checksetup.pl
provided with the Bugzilla
installation. 基本上,您可以运行Bugzilla
安装checksetup.pl
。
If all the above is OK the second step would be to confirm that the Apache configuration is correct, and this is described in the Configuration section of the Bugzilla
documentation, and more specifically under 2.2.4. 如果以上所有操作均正常,则第二步将是确认Apache配置正确,这在Bugzilla
文档的“ 配置”部分中进行了说明,更具体地讲,在2.2.4下。 Web server . Web服务器 。
Hope this help you forward in troubleshooting this issue. 希望这可以帮助您解决此问题。
$ grep setmax /usr/lib64/perl5/Apache2/SizeLimit.pm
# setmax can be called from within a CGI/Registry script to tell the httpd
...
sub setmax_unshared {
So its setmax_unshared
not set_max_unshared_size
所以它的setmax_unshared
不是set_max_unshared_size
if you got error: " Can't locate ModPerl/MM.pm ", try this: 如果出现错误:“ 找不到ModPerl / MM.pm ”,请尝试以下操作:
/usr/bin/perl install-module.pl ModPerl::MM
/usr/bin/perl install-module.pl Apache2::SizeLimit
/usr/bin/perl install-module.pl Linux::Pid
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.