[SOLVED] not able to start apache2 in ubuntu server
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.