LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-17-2012, 05:46 AM   #1
mahi_nix
Member
 
Registered: Aug 2010
Distribution: CentOS, RHEL, Ubuntu,
Posts: 154

Rep: Reputation: 16
not able to start apache2 in ubuntu server


Hi Friends,

I have a Ubuntu server installed on my environment i have installed apache2, php5, mysql and perl in my server i am going to migrate one website which is already hosted on one live server. i have done all things but while i am restarting the apache2 server it shows me below error message.

Quote:
* Restarting web server apache2 Syntax error on line 9 of /etc/apache2/sites-enabled/dnsadmin:
Can't locate Catalyst/Plugin/Cache/FastMmap.pm in @INC (@INC contains: /srv/www/dnsadmin/lib /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl . /etc/apache2). at /usr/lib/perl5/Class/MOP.pm line 116\n\tClass::MOP::load_first_existing_class('Catalyst::Plugin::Cache::FastMmap') called at /usr/lib/perl5/Class/MOP.pm line 121\n\tClass::MOP::load_class('Catalyst::Plugin::Cache::FastMmap') called at /usr/share/perl5/Catalyst.pm line 2813\n\tCatalyst::setup_plugins('DNS', 'ARRAY(0x7fd1a2d1afa0)') called at /usr/share/perl5/Catalyst.pm line 1079\n\tCatalyst::setup('DNS') called at /srv/www/dnsadmin/lib/DNS.pm line 45\n\trequire DNS.pm called at /etc/apache2/sites-enabled/dnsadmin line 10\n\tApache2::ReadConfig::etc::apache2::sites_enabled::dnsadmin::line_9::BEGIN() called at /srv/www/dnsadmin/lib/DNS.pm line 0\n\teval {...} called at /srv/www/dnsadmin/lib/DNS.pm line 0\n\teval 'package Apache2::ReadConfig::etc::apache2::sites_enabled::dnsadmin::line_9;\n#line 9 /etc/apache2/sites-enabled/dnsadmin\nuse lib \\'/srv/www/dnsadmin/lib\\';\nuse DNS;\n\n;' called at /srv/www/dnsadmin/lib/DNS.pm line 0\nCompilation failed in require at /etc/apache2/sites-enabled/dnsadmin line 10.\nBEGIN failed--compilation aborted\t(in cleanup) Can't locate Catalyst/Plugin/Cache/FastMmap.pm in @INC (@INC contains: /srv/www/dnsadmin/lib /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl . /etc/apache2). at /usr/lib/perl5/Class/MOP.pm line 116\n\tClass::MOP::load_first_existing_class('Catalyst::Plugin::Cache::FastMmap') called at /usr/lib/perl5/Class/MOP.pm line 121\n\tClass::MOP::load_class('Catalyst::Plugin::Cache::FastMmap') called at /usr/share/perl5/Catalyst.pm line 2813\n\tCatalyst::setup_plugins('DNS', 'ARRAY(0x7fd1a2d1afa0)') called at /usr/share/perl5/Catalyst.pm line 1079\n\tCatalyst::setup('DNS') called at /srv/www/dnsadmin/lib/DNS.pm line 45\n\trequire DNS.pm called at /etc/apache2/sites-enabled/dnsadmin line 10\n\tApache2::ReadConfig::etc::apache2::sites_enabled::dnsadmin::line_9::BEGIN() called at /srv/www/dnsadmin/lib/DNS.pm line 0\n\teval {...} called at /srv/www/dnsadmin/lib/DNS.pm line 0\n\teval 'package Apache2::ReadConfig::etc::apache2::sites_enabled::dnsadmin::line_9;\n#line 9 /etc/apache2/sites-enabled/dnsadmin\nuse lib \\'/srv/www/dnsadmin/lib\\';\nuse DNS;\n\n;' called at /srv/www/dnsadmin/lib/DNS.pm line 0\nCompilation failed in require at /etc/apache2/sites-enabled/dnsadmin line 10.\nBEGIN failed--compilation aborted at /etc/apache2/sites-enabled/dnsadmin line 10.\n
I dont know what to do. i have done googling but no results. please help me to sorted out the issue.

Thank you,
 
Old 02-17-2012, 05:48 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Code:
Can't locate Catalyst/Plugin/Cache/FastMmap.pm
looks like libcache-fastmmap-perl isn't installed?
 
Old 02-17-2012, 05:53 AM   #3
mahi_nix
Member
 
Registered: Aug 2010
Distribution: CentOS, RHEL, Ubuntu,
Posts: 154

Original Poster
Rep: Reputation: 16
Hi Chris

Thanks for your quick responce. the packge "libcache-fastmmap-perl" is installed on the server.

Regards,
 
Old 02-17-2012, 05:58 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
verify the location of the pm file with the INC locations.
 
Old 02-17-2012, 06:10 AM   #5
mahi_nix
Member
 
Registered: Aug 2010
Distribution: CentOS, RHEL, Ubuntu,
Posts: 154

Original Poster
Rep: Reputation: 16
PLease find the location of FastMmap.pm file in my system.

Quote:
/usr/lib/perl5/Cache/FastMmap.pm
/usr/share/perl5/Catalyst/Plugin/Session/Store/FastMmap.pm
/usr/share/perl5/Catalyst/Plugin/Cache/Store/FastMmap.pm
/usr/share/perl5/Catalyst/Plugin/Cache/Backend/FastMmap.pm
 
Old 02-17-2012, 06:55 AM   #6
mahi_nix
Member
 
Registered: Aug 2010
Distribution: CentOS, RHEL, Ubuntu,
Posts: 154

Original Poster
Rep: Reputation: 16
Hi Chris,

Below is the the @INC Location

Code:
  @INC:
    /etc/perl
    /usr/local/lib/perl/5.10.1
    /usr/local/share/perl/5.10.1
    /usr/lib/perl5
    /usr/share/perl5
    /usr/lib/perl/5.10
    /usr/share/perl/5.10
    /usr/local/lib/site_perl
    .
 
Old 02-21-2012, 01:05 AM   #7
mahi_nix
Member
 
Registered: Aug 2010
Distribution: CentOS, RHEL, Ubuntu,
Posts: 154

Original Poster
Rep: Reputation: 16
Hi Friends,

The above issue has been resolved now i am facing another issue with perl modules. please check the error below while i am restarting the apache2 service and apache stops working.

Code:
 * Restarting web server apache2                                                                                              * We failed to correctly shutdown apache, so we're now killing all running apache processes. This is almost certainly suboptimal, so please make sure your system is working as you'd expect now!
 ... waiting Syntax error on line 9 of /etc/apache2/sites-enabled/dnsadmin:
Couldn't instantiate component "DNS::Model::DB", "Couldn't load class (DNS::DB) because: DBIx::Class::Schema::throw_exception(): DBIx::Class::Row::throw_exception(): Can't locate Net/DNS/ZoneCheck.pm in @INC (@INC contains: /srv/www/dnsadmin/lib /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl . /etc/apache2) at /srv/www/dnsadmin/lib/DNS/DB/Result/Domain.pm line 7.\nBEGIN failed--compilation aborted at /srv/www/dnsadmin/lib/DNS/DB/Result/Domain.pm line 7.\nCompilation failed in require at /usr/share/perl5/Class/C3/Componentised.pm line 135.\nCompilation failed in require at /usr/share/perl5/Class/C3/Componentised.pm line 135.\nCompilation failed in require at /usr/share/perl5/Class/C3/Componentised.pm line 135.\nCompilation failed in require at /usr/lib/perl5/Class/MOP.pm line 101.\n at /usr/lib/perl5/Class/MOP.pm line 105\n\tClass::MOP::__ANON__('DBIx::Class::Schema::throw_exception(): DBIx::Class::Row::thr...') called at /usr/local/share/perl/5.10.1/Try/Tiny.pm line 100\n\tTry::Tiny::try('CODE(0x7f31fa41cd10)', 'Try::Tiny::Catch=REF(0x7f31fa377738)') called at /usr/lib/perl5/Class/MOP.pm line 110\n\tClass::MOP::load_first_existing_class('DNS::DB') called at /usr/lib/perl5/Class/MOP.pm line 121\n\tClass::MOP::load_class('DNS::DB') called at /usr/share/perl5/Catalyst/Model/DBIC/Schema/Types.pm line 21\n\tCatalyst::Model::DBIC::Schema::Types::__ANON__('DNS::DB') called at /usr/lib/perl5/Moose/Meta/TypeCoercion.pm line 63\n\tMoose::Meta::TypeCoercion::__ANON__('DNS::DB') called at /usr/lib/perl5/Moose/Meta/TypeCoercion.pm line 97\n\tMoose::Meta::TypeCoercion::coerce('Moose::Meta::TypeCoercion=HASH(0x7f31fa0a5c48)', 'DNS::DB') called at /usr/lib/perl5/Moose/Meta/TypeConstraint.pm line 88\n\tMoose::Meta::TypeConstraint::coerce('Moose::Meta::TypeConstraint=HASH(0x7f31fa095000)', 'DNS::DB') called at /usr/share/perl5/MooseX/Types/TypeDecorator.pm line 200\n\teval {...} called at /usr/share/perl5/MooseX/Types/TypeDecorator.pm line 199\n\tMooseX::Types::TypeDecorator::AUTOLOAD('MooseX::Types::TypeDecorator=HASH(0x7f31fa0d2910)', 'DNS::DB') called at /usr/lib/perl5/Moose/Meta/Attribute.pm line 740\n\tMoose::Meta::Attribute::_coerce_and_verify('Moose::Meta::Attribute=HASH(0x7f31fa214828)', 'DNS::DB', 'DNS::Model::DB=HASH(0x7f31fa41cae8)') called at /usr/lib/perl5/Moose/Meta/Attribute.pm line 398\n\tMoose::Meta::Attribute::initialize_instance_slot('Moose::Meta::Attribute=HASH(0x7f31fa214828)', 'Moose::Meta::Instance=HASH(0x7f31fa41ce30)', 'DNS::Model::DB=HASH(0x7f31fa41cae8)', 'HASH(0x7f31fa41ca58)') called at /usr/lib/perl5/Class/MOP/Class.pm line 364\n\tClass::MOP::Class::_construct_instance('Moose::Meta::Class=HASH(0x7f31fa09b008)', 'HASH(0x7f31fa41ca58)') called at /usr/lib/perl5/Class/MOP/Class.pm line 351\n\tClass::MOP::Class::new_object('Moose::Meta::Class=HASH(0x7f31fa09b008)', 'HASH(0x7f31fa41ca58)') called at /usr/lib/perl5/Moose/Meta/Class.pm line 231\n\tMoose::Meta::Class::new_object('Moose::Meta::Class=HASH(0x7f31fa09b008)', 'HASH(0x7f31fa41ca58)') called at /usr/lib/perl5/Moose/Object.pm line 25\n\tMoose::Object::new('DNS::Model::DB', 'DNS', 'HASH(0x7f31fa05f130)') called at generated method (unknown origin) line 3\n\tCatalyst::Model::DBIC::Schema::new('DNS::Model::DB', 'DNS', 'HASH(0x7f31fa05f130)') called at /usr/share/perl5/MooseX/Traits/Pluggable.pm line 131\n\tMooseX::Traits::Pluggable::new_with_traits('DNS::Model::DB', 'DNS') called at /usr/share/perl5/CatalystX/Component/Traits.pm line 145\n\tCatalystX::Component::Traits::COMPONENT('DNS::Model::DB', 'DNS', 'HASH(0x7f31f98c2328)') called at /usr/share/perl5/Catalyst.pm line 2507\n\teval {...} called at /usr/share/perl5/Catalyst.pm line 2507\n\tCatalyst::setup_component('DNS', 'DNS::Model::DB') called at /usr/share/perl5/Catalyst.pm line 2421\n\tCatalyst::setup_components('DNS') called at /usr/share/perl5/Catalyst.pm line 1143\n\tCatalyst::setup('DNS') called at /srv/www/dnsadmin/lib/DNS.pm line 45\n\trequire DNS.pm called at /etc/apache2/sites-enabled/dnsadmin line 10\n\tApache2::ReadConfig::etc::apache2::sites_enabled::dnsadmin::line_9::BEGIN() called at /srv/www/dnsadmin/lib/DNS.pm line 0\n\teval {...} called at /srv/www/dnsadmin/lib/DNS.pm line 0\n\teval 'package Apache2::ReadConfig::etc::apache2::sites_enabled::dnsadmin::line_9;\n#line 9 /etc/apache2/sites-enabled/dnsadmin\nuse lib \\'/srv/www/dnsadmin/lib\\';\nuse DNS;\n\n;' called at /srv/www/dnsadmin/lib/DNS.pm line 0\n at /usr/share/perl5/MooseX/Types/TypeDecorator.pm line 202\n\tMooseX::Types::TypeDecorator::AUTOLOAD('MooseX::Types::TypeDecorator=HASH(0x7f31fa0d2910)', 'DNS::DB') called at /usr/lib/perl5/Moose/Meta/Attribute.pm line 740\n\tMoose::Meta::Attribute::_coerce_and_verify('Moose::Meta::Attribute=HASH(0x7f31fa214828)', 'DNS::DB', 'DNS::Model::DB=HASH(0x7f31fa41cae8)') called at /usr/lib/perl5/Moose/Meta/Attribute.pm line 398\n\tMoose::Meta::Attribute::initialize_instance_slot('Moose::Meta::Attribute=HASH(0x7f31fa214828)', 'Moose::Meta::Instance=HASH(0x7f31fa41ce30)', 'DNS::Model::DB=HASH(0x7f31fa41cae8)', 'HASH(0x7f31fa41ca58)') called at /usr/lib/perl5/Class/MOP/Class.pm line 364\n\tClass::MOP::Class::_construct_instance('Moose::Meta::Class=HASH(0x7f31fa09b008)', 'HASH(0x7f31fa41ca58)') called at /usr/lib/perl5/Class/MOP/Class.pm line 351\n\tClass::MOP::Class::new_object('Moose::Meta::Class=HASH(0x7f31fa09b008)', 'HASH(0x7f31fa41ca58)') called at /usr/lib/perl5/Moose/Meta/Class.pm line 231\n\tMoose::Meta::Class::new_object('Moose::Meta::Class=HASH(0x7f31fa09b008)', 'HASH(0x7f31fa41ca58)') called at /usr/lib/perl5/Moose/Object.pm line 25\n\tMoose::Object::new('DNS::Model::DB', 'DNS', 'HASH(0x7f31fa05f130)') called at generated method (unknown origin) line 3\n\tCatalyst::Model::DBIC::Schema::new('DNS::Model::DB', 'DNS', 'HASH(0x7f31fa05f130)') called at /usr/share/perl5/MooseX/Traits/Pluggable.pm line 131\n\tMooseX::Traits::Pluggable::new_with_traits('DNS::Model::DB', 'DNS') called at /usr/share/perl5/CatalystX/Component/Traits.pm line 145\n\tCatalystX::Component::Traits::COMPONENT('DNS::Model::DB', 'DNS', 'HASH(0x7f31f98c2328)') called at /usr/share/perl5/Catalyst.pm line 2507\n\teval {...} called at /usr/share/perl5/Catalyst.pm line 2507\n\tCatalyst::setup_component('DNS', 'DNS::Model::DB') called at /usr/share/perl5/Catalyst.pm line 2421\n\tCatalyst::setup_components('DNS') called at /usr/share/perl5/Catalyst.pm line 1143\n\tCatalyst::setup('DNS') called at /srv/www/dnsadmin/lib/DNS.pm line 45\n\trequire DNS.pm called at /etc/apache2/sites-enabled/dnsadmin line 10\n\tApache2::ReadConfig::etc::apache2::sites_enabled::dnsadmin::line_9::BEGIN() called at /srv/www/dnsadmin/lib/DNS.pm line 0\n\teval {...} called at /srv/www/dnsadmin/lib/DNS.pm line 0\n\teval 'package Apache2::ReadConfig::etc::apache2::sites_enabled::dnsadmin::line_9;\n#line 9 /etc/apache2/sites-enabled/dnsadmin\nuse lib \\'/srv/www/dnsadmin/lib\\';\nuse DNS;\n\n;' called at /srv/www/dnsadmin/lib/DNS.pm line 0"Compilation failed in require at /etc/apache2/sites-enabled/dnsadmin line 10.\nBEGIN failed--compilation aborted\t(in cleanup) Couldn't instantiate component "DNS::Model::DB", "Couldn't load class (DNS::DB) because: DBIx::Class::Schema::throw_exception(): DBIx::Class::Row::throw_exception(): Can't locate Net/DNS/ZoneCheck.pm in @INC (@INC contains: /srv/www/dnsadmin/lib /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl . /etc/apache2) at /srv/www/dnsadmin/lib/DNS/DB/Result/Domain.pm line 7.\nBEGIN failed--compilation aborted at /srv/www/dnsadmin/lib/DNS/DB/Result/Domain.pm line 7.\nCompilation failed in require at /usr/share/perl5/Class/C3/Componentised.pm line 135.\nCompilation failed in require at /usr/share/perl5/Class/C3/Componentised.pm line 135.\nCompilation failed in require at /usr/share/perl5/Class/C3/Componentised.pm line 135.\nCompilation failed in require at /usr/lib/perl5/Class/MOP.pm line 101.\n at /usr/lib/perl5/Class/MOP.pm line 105\n\tClass::MOP::__ANON__('DBIx::Class::Schema::throw_exception(): DBIx
                                                                                                                      [fail]
the issue is with the below module
Code:
Can't locate Net/DNS/ZoneCheck.pm in @INC
which is "Net:: DNS::ZoneCheck"

I tried to restored it with cpan> install Net:NS::ZoneCheck but i am not able to install it system shows me the message that there is no package available in cpan. can anyone tell me how cani install this perl module and what is the exact name of this module.

Thanks in advanced,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] BASH: service apache2 start => check apache2 response dragonetti Linux - Newbie 2 10-29-2011 11:01 AM
[SOLVED] Can't start Apache2 server in Ubuntu 123Linux321 Linux - Newbie 2 05-01-2011 08:34 AM
How to get apache2 to start automatically on Ubuntu 10.04? walterbyrd Linux - Software 2 07-28-2010 02:48 PM
Apache2 server on Ubuntu nw504 Linux - Server 2 02-17-2007 05:09 AM
apache2 server will not start JMcLaine Linux - Newbie 1 07-03-2006 08:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration