简体   繁体   中英

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.

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

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.

See this link http://freevps.us/thread-7213.html

Thanks & Regards,
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 . If not, you should be able to use mod_cgi as far as I know.

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. This is described in the Installtion - Perl Modules section of the Bugzilla documentation. Basically you can run checksetup.pl provided with the Bugzilla installation.

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. Web server .

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

if you got error: " Can't locate ModPerl/MM.pm ", try this:

/usr/bin/perl install-module.pl ModPerl::MM

/usr/bin/perl install-module.pl Apache2::SizeLimit

/usr/bin/perl install-module.pl Linux::Pid

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM