You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Randy Kobes <ra...@theoryx5.uwinnipeg.ca> on 2001/04/14 22:24:52 UTC

relative ServerRoot in Win32

Hi,
   One of the changes in apache_1.3.19 for Win32 is that the
relative ServerRoot was changed to root to the path
of the apache binary. This has the effect of setting
$Apache::Server::CWD in t/docs/startup.pl and t/docs/rl.pl
to the path of the apache binary, rather than the mod_perl
build directory, and subsequently the tests can't be run
since @INC doesn't contain the mod_perl build directory.
The following patch against mod_perl-1.25, tested on
apache_1.3.19 and perl-5.6.1, fixes this by simply
substituting the mod_perl build directory for
$Apache::Server::CWD in these two files.

best regards,
randy kobes

----------------------------------------------------------------------------
------

*** t\TEST.win32.orig Sun Dec 31 12:11:16 2000
--- t\TEST.win32 Sat Apr 14 14:58:18 2001
***************
*** 113,118 ****
--- 113,123 ----

  system "$fullperl -p -i.bak -e \"s#\\./t#$pwd/t#\" t/conf/httpd.conf";

+ # apache_1.3.19 sets $Apache::Server::CWD to the path to Apache.exe
+
+ system "$fullperl -spi.bak -e \"s#\\\$Apache::Server::CWD#$pwd#\"
t/docs/startup.pl";
+ system "$fullperl -spi.bak -e
\"s#\\\$Apache::Server::CWD\\.\\\"#\\\"$pwd#\" t/docs/rl.pl";
+
  #

  # start ourselves a server to pound on



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org