Home  |  Linux  | Mysql  | PHP  | XML
From:Allison Randal Date:Wed Jan 17 15:52:30 2007
Subject:Configure apache_libexec path
The attached 5-line patch makes it possible to configure the 
apache_libexec path independently of the apache_root and modperl_path 
settings. This change was necessary for running combust on my Ubuntu 
test server (largely because the mod_perl library is named mod_perl.so 
instead of libperl.so).

Allison

Index: lib/Combust/Config.pm
===================================================================
--- lib/Combust/Config.pm	(revision 567)
+++ lib/Combust/Config.pm	(working copy)
@@ -235,7 +235,11 @@
   $cfg->param('perl');
 }
 
+sub apache_libexec {
+  $cfg->param('apache_libexec');
+}
 
+
 #sub config {
 #  $cfg;
 #}
Index: bin/make_configs
===================================================================
--- bin/make_configs	(revision 567)
+++ bin/make_configs	(working copy)
@@ -26,8 +26,8 @@
 
 my $apxs = $config->httpd;
 $apxs =~ s!/httpd!/apxs!;
-my $apache_libexec;
-$apache_libexec = (-x $apxs and !-d _) ? `$apxs -q LIBEXECDIR` : '';
+my $apache_libexec = $config->apache_libexec;
+$apache_libexec ||= (-x $apxs and !-d _) ? `$apxs -q LIBEXECDIR` : '';
 
 $apache_root =~ s!/s?bin/httpd$!!;
 $apache_libexec ||= $apache_root . "/libexec";

Navigate in group perl.combust.users at sever nntp.perl.org
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants