I've been trying to remove and reinstall perl, Apache and Mod_perl, but now I'm going around in circles. When I try to reload the Apache server I still get the error:
sudo /etc/init.d/apache2 reload [sudo] password for rianne: apache2: Syntax error on line 207 of /etc/apache2/apache2.conf: Syntax + error on line 8 of /etc/apache2/httpd.conf: Cannot load /usr/lib/apa +che2/modules/mod_perl.so into server: /usr/lib/apache2/modules/mod_pe +rl.so: cannot open shared object file: No such file or directory Action 'configtest' failed. The Apache error log may have more information. ...fail!
So it cannot find the mod_perl.so file, which indeed is not in that directory. So I tried to reinstall mod_perl, but then I'm having issues with the Apache server. Inside the Mod_perl directory, the commands perl Makefile.PL MP_APXS=/usr/bin/apxs2 and make are fine, but when i run make test, I run into the following errors:
make[2]: Leaving directory `/home/rianne/Software/mod_perl-2.0.5/mod_p +erl-2.0.5/xs/ModPerl' make[1]: Leaving directory `/home/rianne/Software/mod_perl-2.0.5/mod_p +erl-2.0.5/xs' /home/rianne/perl5/perlbrew/perls/perl-5.14.2/bin/perl -Iblib/arch -Ib +lib/lib \ t/TEST -clean [warning] setting ulimit to allow core files ulimit -c unlimited; /home/rianne/perl5/perlbrew/perls/perl-5.14.2/bin +/perl /home/rianne/Software/mod_perl-2.0.5/mod_perl-2.0.5/t/TEST -cle +an APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_US +ER= APACHE_TEST_APXS= \ /home/rianne/perl5/perlbrew/perls/perl-5.14.2/bin/perl -Iblib/arch + -Iblib/lib \ t/TEST -bugreport -verbose=0 [warning] setting ulimit to allow core files ulimit -c unlimited; /home/rianne/perl5/perlbrew/perls/perl-5.14.2/bin +/perl /home/rianne/Software/mod_perl-2.0.5/mod_perl-2.0.5/t/TEST -bug +report -verbose=0 APXS (/usr/bin/apxs2) query for PREFIX failed /usr/sbin/apache2 -d /home/rianne/Software/mod_perl-2.0.5/mod_perl-2. +0.5/t -f /home/rianne/Software/mod_perl-2.0.5/mod_perl-2.0.5/t/conf/h +ttpd.conf -D APACHE2 -D PERL_USEITHREADS using Apache/2.2.20 (worker MPM) waiting 120 seconds for server to start: .[Mon Mar 05 14:29:54 2012] [ +info] 6 Apache2:: modules loaded [Mon Mar 05 14:29:54 2012] [info] 0 APR:: modules loaded [Mon Mar 05 14:29:54 2012] [info] base server + 28 vhosts ready to run + tests APXS (/usr/bin/apxs2) query for PREFIX failed [ error] oh shucks, server dumped core [ error] for stacktrace, run: gdb /usr/sbin/apache2 -core /home/riann +e/Software/mod_perl-2.0.5/mod_perl-2.0.5/core [ error] server has died with status 255 (please examine t/logs/error_log) [ error] oh nuts, server dumped core [ error] for stacktrace, run: gdb /usr/sbin/apache2 -core /home/riann +e/Software/mod_perl-2.0.5/mod_perl-2.0.5/core Terminated make: *** [run_tests] Error 143 rianne@rianne-OXYL015:~/Software/mod_perl-2.0.5/mod_perl-2.0.5$ sudo / +etc/init.d/apache2 reload [sudo] password for rianne: apache2: Syntax error on line 207 of /etc/apache2/apache2.conf: Syntax + error on line 8 of /etc/apache2/httpd.conf: Cannot load /usr/lib/apa +che2/modules/mod_perl.so into server: /usr/lib/apache2/modules/mod_pe +rl.so: cannot open shared object file: No such file or directory Action 'configtest' failed. The Apache error log may have more information. ...fail!
No error log messages appear in the Apache error and access log files and the error logs in t/logs/error_log in the mod_perl directory. Any ideas ? Thanks!

In reply to Re: Apache Server restart fails by rianne_k
in thread Apache Server restart fails by rianne_k

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.