Quote:
BackupPC also requires a web server, preferably Apache built with mod_perl support.
|
You do not need to rebuild Apache. Just build the module!
First You need to install perl module "Apache::TestConfig"
With cpan:
Code:
install Apache::TestConfig
To build against apache 2.4 You probably need mod_perl from git, so:
Code:
git clone git://git.apache.org/mod_perl.git
cd mod_perl
git checkout -b httpd24 origin/httpd24
Patch the code:
(i.e comment out 5 lines)
--- mod_perl.org/Makefile.PL 2013-07-14 17:52:36.000000000 +0200
+++ mod_perl/Makefile.PL 2013-07-14 18:12:26.642757377 +0200
@@ -122,11 +122,11 @@
# mod_perl test suite relies on having Apache-Test bundled with
# the mod_perl source, since any pre-installed version may not do
# the right thing
- unless (-d "Apache-Test") {
- error "Can't find a sub-directory Apache-Test. " .
- "Make sure that you are using a complete source distribution";
- exit 1;
- }
+ #unless (-d "Apache-Test") {
+ # error "Can't find a sub-directory Apache-Test. " .
+ # "Make sure that you are using a complete source distribution";
+ # exit 1;
+ #}
To build and install:
Code:
perl Makefile.PL MP_APXS=/usr/bin/apxs MP_APR_CONFIG=/usr/bin/apr-1-config
make
su
make install
Enjoy