Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^4: Apache Server restart fails

by rianne_k (Novice)
on Mar 05, 2012 at 09:48 UTC ( [id://957867]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Apache Server restart fails
in thread Apache Server restart fails

Thanks for the suggestions. I created the symlink with a2enmod perl. When I to restart the server now, I get a slightly different error message :
rianne@rianne-OXYL015:~$ sudo a2enmod perl Enabling module perl. To activate the new configuration, you need to run: service apache2 restart rianne@rianne-OXYL015:~$ service apache2 restart ulimit: 88: error setting limit (Operation not permitted) apache2: Syntax error on line 203 of /etc/apache2/apache2.conf: Syntax + error on line 1 of /etc/apache2/mods-enabled/perl.load: Cannot load +/usr/lib/apache2/modules/mod_perl.so into server: /usr/lib/apache2/mo +dules/mod_perl.so: cannot open shared object file: No such file or di +rectory Action 'configtest' failed. The Apache error log may have more information. ...fail!
I do have the libapache2-mod-perl2 installed:
dpkg -l|fgrep apache ii apache2 2.2.20-1ubuntu1.2 + Apache HTTP Server metapackage ii apache2-mpm-worker 2.2.20-1ubuntu1.2 + Apache HTTP Server - high speed threaded model ii apache2-threaded-dev 2.2.20-1ubuntu1.2 + Apache development headers - threaded MPM ii apache2-utils 2.2.20-1ubuntu1.2 + utility programs for webservers ii apache2.2-bin 2.2.20-1ubuntu1.2 + Apache HTTP Server common binary files ii apache2.2-common 2.2.20-1ubuntu1.2 + Apache HTTP Server common files rc libapache2-mod-perl2 2.0.5-2ubuntu1 + Integration of perl with the Apache2 web server ii libbatik-java 1.7.ubuntu-6ubuntu1 + xml.apache.org SVG Library
Do you see anything missing in there ? Cheers, Rianne

Replies are listed 'Best First'.
Re^5: Apache Server restart fails
by Anonymous Monk on Mar 05, 2012 at 10:08 UTC
    To find what is missing run ldd /usr/lib/apache2/modules/mod_perl.so
      that is missing indeed:
      rianne@rianne-OXYL015:/usr/lib/apache2/modules$ ldd /usr/lib/apache2/m +odules/mod_perl.so ldd: /usr/lib/apache2/modules/mod_perl.so: No such file or directory
      How do I get it back there?
      I manually copied mod_perl.so into the right directory (probably not the best approach). Now the server is up and running again, but I still get the error:
      [Tue Mar 06 10:31:56 2012] [error] [client 127.0.0.1] failed to resolv +e handler `ModPerl::Registry': Can't locate ModPerl/Registry.pm in @I +NC (@INC contains: /home/rianne/perl5/perlbrew/perls/perl-5.14.2/lib/ +site_perl/5.14.2/x86_64-linux-thread-multi /home/rianne/perl5/perlbre +w/perls/perl-5.14.2/lib/site_perl/5.14.2 /home/rianne/perl5/perlbrew/ +perls/perl-5.14.2/lib/5.14.2/x86_64-linux-thread-multi /home/rianne/p +erl5/perlbrew/perls/perl-5.14.2/lib/5.14.2 . /etc/apache2) at (eval 3 +) line 2.\n, referer: http://localhost/www/Wordclouds/wordclouds.html
      I can run run ldd /usr/lib/apache2/modules/mod_perl.so now, this is the outcome:
      ldd /usr/lib/apache2/modules/mod_perl.so linux-vdso.so.1 => (0x00007fffeb376000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f2498a90000 +) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f249880c000) libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f2498 +5d2000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f +24983b5000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2498016000) /lib64/ld-linux-x86-64.so.2 (0x00007f249905c000)
      Do you see anything missing there?

        I manually copied mod_perl.so into the right directory (probably not the best approach). Do you see anything missing there?

        mod_perl.so doesn't make ModPerl::Registry magically installed :)

        Doing this manually is hard

      I reinstalled libapache2-mod-perl2, and for now it seems to be working. Thanks for the help!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://957867]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-25 17:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found