 |
| Recent blog posts: | |
 |
| They have birthday today: | |
 |
| Forums: | | |
 |
| Discuss: | |
 |
| Recent forum topics: | |
 |
| Recent forum comments: | |
 |
| Модератор: | |
 |
Tuesday, 24 June 2008
|
| 2nd Try: Cannot Access Includes Above Current Directory if using SSL Steve Benson 05:37:20 |
| | Sorry to ask again but I could use a suggestion or two. I'm new to your list and configuring Apache with the SSL module enabled and have a newbie configuration glitch I've not been able to resolve. I'm very puzzled over why my scripts with included files, either SSI or PHP, work fine outside of the SSL directory structure (but still at similar nested levels in directory tree but not SSL). i.e. given that /www/sd/htdocs/include/middle.html exists with index.shtml in /www/sd/htdocs/test (http) with the lines <!--#include file="../include/middle.html" --> and <!--#echo var="DOCUMENT_NAME" --> run fine and middle.html is included and the document name is displayed. Excellent!
But the same index.shtml in /www/sd/htdocs/jobs (https) <!--#include file="../include/middle.html" --> fails to include middle.html and the error_log file reports: unable to include file "/www/sd/htdocs/include/middle.html" in parsed file /www/sd/htdocs/jobs/index.shtml Not problem with <!--#echo var="DOCUMENT_NAME" --> the document name is displayed. Only half excelent.
I changed the SSI to <!--#include virtual="../include/middle.html" --> as you suggested but the result was the same. I changed the relative path used to absolute and also got the same result. I can use includes in the SSL directory as long as they're at the same level or below. If I move the above example (including the include directory) down one level in the https directory tree i.e. given that /www/sd/htdocs/jobs/include/middle.html exists with index.shtml in /www/sd/htdocs/jobs/test (https) <!--#include file="../include/middle.html" --> it also fails. So I can't go up even within the https directory tree. The same scenario under http presents no problems.
The SSI is mostly for testing trying to figure out why my PHP scripts are acting this way. I'm trying to keep it simple so I can find the root cause of my SSL (https) virtual server failure to work with upper level include files.
I imagine there's something in my SSL configuration causing this but after trying many <Directory>, <Location> and even a ScriptAlias changes to the ssl.conf I've not been able to get around this. I've created a number of Apache web sites but this is my first using SSL(mod_ssl incorporated into Apache 2.0.48, openssl). I've never encountered anything like this before in web development. My configuration is: RH Linux Kernel 2.4.20-8, Apache 2.0.48, OpenSSL -0.9.6l, PHP 4.3.4, Apache was compiled with SSL and SSI enabled. SSL appears to work OK i.e. recognized by browser, cert and key accepted etc.
I appreciate any suggestions.
Thanks,
............ Steve
|
| | 1 answer | Add comment |
Sunday, 22 June 2008
|
| Apache::Bootstrap 0.02 Fred Moyer 07:43:20 |
| | Hacking away on this some more.
http://people.apache.org/~phred/Apache-Bootstrap-0.02.tar.gz
As I tested this out with Apache::Dispatch today, I came to the realization that Apache::Bootstrap itself must be bootstrapped in the Makefile.PL. Here's how I did it in Apache::Dispatch, parts ripped off from ExtUtil::MakeMaker. I'm still fuzzy on the details of how not to cause CPAN testers failures.
Any thoughts here welcome - still bootstrapping this (no pun intended
BEGIN { my $AB_VER = 0.02; my $fail_msg = "Warning: prerequisite Apache::Bootstrap $AB_VER not found.";
eval { require Apache::Bootstrap }; die $fail_msg . "\n" if $@;
die $fail_msg . " We have $Apache::Bootstrap::VERSION.\n" if $Apache::Bootstrap::VERSION < $AB_VER; }
... some code
my $mp_gen = Apache::Bootstrap->satisfy_mp_generation(2);
|
| | 1 answer | Add comment |
Saturday, 31 May 2008
|
| [RFC] Apache::Bootstrap 0.01 proof of concept Fred Moyer 05:10:02 |
| | Busy fingers today.
I've pulled the bootstrap code out of Apache::Reload into a standalone module Apache::Bootstrap. I didn't fix any of the current issues, merely ported it out, and tested the implementation with Apache::Reload, which seems to be working as well as when it the bootstrap code was embedded.
I've posted a proof of concept for review [1]. Please take a look and provide feedback. I've also posted the refactored A::R Makefile.PL [2].
If this approach sits well I'll move ahead with updating it to address the CPAN testers PRs that are coming in from version issues.
[1] http://people.apache.org/~phred/Apache-Bootstrap-0.01.tar.gz
[2] http://people.apache.org/~phred/A_R_Makefile.PL
- Fred
-- Red Hot Penguin Consulting LLC mod_perl/PostgreSQL consulting and implementation http://www.redhotpenguin.com/
|
| | 6 answers | Add comment |
|
| [Fwd: [rt.cpan.org #36305] Overridden get_basic_credentials broken
w/ NTLM Authentication] Geoffrey Young 02:28:23 |
| |
-------- Original Message -------- Subject: [rt.cpan.org #36305] Overridden get_basic_credentials broken w/ NTLM Authentication Date: Fri, 30 May 2008 13:43:17 -0400 From: RFRANKEL via RT <bug-Apache-Test@rt.cpan.org> Reply-To: bug-Apache-Test@rt.cpan.org To: undisclosed-recipients:; References: <RT-Ticket-36305@rt.cpan.org>
Fri May 30 13:43:16 2008: Request 36305 was acted upon. Transaction: Ticket created by RFRANKEL Queue: Apache-Test Subject: Overridden get_basic_credentials broken w/ NTLM Authentication Broken in: 1.29, 1.30 Severity: Important Owner: Nobody Requestors: RFRANKEL@cpan.org Status: new Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=36305 >
Apache::TestRequest::get_basic_credentials dies when accessing a realm using mod_ntlm for authentication. The reason is that $realm is undefined.
Patch to fix below:
--- TestRequest.pm~ 2007-11-14 01:44:36.000000000 -0500 +++ TestRequest.pm 2008-05-30 11:35:57.681722000 -0400 @@ -260,7 +260,7 @@ my($self, $realm, $uri, $proxy) = @_;
for ($realm, '__ALL__') { - next unless $credentials{$_}; + next unless $_ && $credentials{$_}; return @{ $credentials{$_} }; }
|
| | 2 answer | Add comment |
Tuesday, 27 May 2008
|
| [Fwd: Re: "bool" redefined warning in my build, but what part of
the toolchain is causing Philip M. Gollucci 21:46:35 |
| | -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Forgot to CC list.
- -- - ------------------------------------------------------------------------ Philip M. Gollucci (philip@ridecharge.com) o:703.549.2050x206 Senior System Admin - Riderway, Inc. http://riderway.com / http://ridecharge.com 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C
Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIPEj7dbiP+9ubjBwRAkC6AJsGikCxVrzBIQM94CMy1utVaqQ6LACcDpNa +XVy4gZpP50zAI2c6Rmc3/U= =0wnD -----END PGP SIGNATURE-----
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org |
| | Add comment |
|
| [PATCH] - fixup Apache::* externals to use tags Fred Moyer 21:46:01 |
| | This change modifies svn externals to pull tagged versions of A::SL, A::R, and A::T.
Please note that because due to my previous oops the current version of A::T in the mp 2.04 release is 1.31, so 1.31 will need to be packaged and tagged, then this updated before we ship 2.05, I have added this to the 2.0.5 todo.
+1 (pretty sure I can vote on my patch, checked the ASF guidelines but didn't find a definitive answer there.
phred@pooky ~/dev/svn/modperl/mod_perl-2.0 $ svn diff .
Property changes on: . ___________________________________________________________________ Name: svn:externals - Apache-Test https://svn.apache.org/repos/asf/perl/Apache-Test/trunk docs https://svn.apache.org/repos/asf/perl/modperl/docs/trunk/src/docs/2.0
+ Apache-Test https://svn.apache.org/repos/asf/perl/Apache-Test/tags/1_30 Apache-Reload https://svn.apache.org/repos/asf/perl/Apache-Reload/tags/0_10 Apache-SizeLimit https://svn.apache.org/repos/asf/perl/Apache-SizeLimit/tags/0_91 docs https://svn.apache.org/repos/asf/perl/modperl/docs/trunk/src/docs/2.0
|
| | 2 answer | Add comment |
Sunday, 25 May 2008
|
| "bool" redefined warning in my build, but what part of the toolchain
is causing it? Fred Moyer 00:26:20 |
| | I'm guessing this is an issue with the OS X toolchain since I'm not seeing it on Linux, but any confirmation would be helpful. It's not like this output is easy on the eyes to parse
cp FilterRec.bs ../../../blib/arch/auto/Apache2/FilterRec/FilterRec.bs chmod 644 ../../../blib/arch/auto/Apache2/FilterRec/FilterRec.bs cp FilterRec.pm ../../../blib/lib/Apache2/FilterRec.pm In file included from /Users/phred/dev/perl/lib/5.8.8/darwin-2level/CORE/perl.h:2120, from /Users/phred/dev/svn/modperl/mod_perl-2.0/src/modules/perl/modperl_perl_includes.h:65, from /Users/phred/dev/svn/modperl/mod_perl-2.0/src/modules/perl/modperl_common_includes.h:24, from /Users/phred/dev/svn/modperl/mod_perl-2.0/src/modules/perl/mod_perl.h:21, from FilterRec.xs:18: /Users/phred/dev/perl/lib/5.8.8/darwin-2level/CORE/handy.h:85:1:
warning: "bool" redefined
In file included from /usr/include/mach-o/dyld.h:29, from /Users/phred/dev/sl/httpd2/include/apr_portable.h:166, from /Users/phred/dev/sl/httpd2/include/http_protocol.h:31, from /Users/phred/dev/svn/modperl/mod_perl-2.0/src/modules/perl/modperl_apache_includes.h:30, from /Users/phred/dev/svn/modperl/mod_perl-2.0/src/modules/perl/mod_perl.h:20, from FilterRec.xs:18: /usr/lib/gcc/i686-apple-darwin9/4.0.1/include/stdbool.h:36:1: warning: this is the location of the previous definition rm -f ../../../blib/arch/auto/Apache2/FilterRec/FilterRec.bundle env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/lib -L/opt/local/lib FilterRec.o -L/usr/local/lib -L/opt/local/lib -o ../../../blib/arch/auto/Apache2/FilterRec/FilterRec.bundle \ \
chmod 755 ../../../blib/arch/auto/Apache2/FilterRec/FilterRec.bundle /Users/phred/dev/perl/bin/perl /Users/phred/dev/perl/lib/5.8.8/ExtUtils/xsubpp -typemap /Users/phred/dev/per
|
| | Add comment |
Saturday, 24 May 2008
|
| Problems compiling mod_proxy_html with Apache 2.1.3-beta Devin L. Ganger 18:44:05 |
| | I'm trying to build a full reverse proxy that can properly handle the cookies from my back-end systems.
My system is running Solaris 9/SPARC, gcc 3.4.2, with the following libraries:
BerkeleyDB 4.2.52 expat 1.95.5 iconv 1.8 libxml2 2.6.19 OpenSSL 0.9.7f PCRE 4.5 zlib 1.2.2
At first I tried using Apache 2.0.53 with Nick Kew's mod_proxy_html.c add-on, as well as his patch to mod_proxy to support the ProxyPassReverseCookieDomain and ProxyPassReverseCookiePath directives. When I tried to apply the patch to the source, it failed to apply cleanly.
So now I'm using Apache 2.1.3-beta. Compiling and installing Apache goes fine, but when I try to compile mod_proxy_html.c, it's failing:
$ bin/apxs -c -i -I /usr/local/include/libxml2 mod_proxy_html.c /usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -DSOLARIS2=9 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -g -O2 -pthreads -I/usr/local/include -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/include -I/usr/local/include/libxml2 -c -o mod_proxy_html.lo mod_proxy_html.c && touch mod_proxy_html.slo mod_proxy_html.c:91: error: parse error before "regex_t" mod_proxy_html.c:91: warning: no semicolon at end of struct or union mod_proxy_html.c:91: warning: no semicolon at end of struct or union mod_proxy_html.c:92: warning: data definition has no type or storage class mod_proxy_html.c:94: error: parse error before '}' token mod_proxy_html.c:94: warning: data definition has no type or storage class mod_proxy_html.c:96: error: parse error before "urlmap" mod_proxy_html.c:96: warning: no semicolon at end of struct or union mod_proxy_html.c:107: error: parse error before '}' token mod_proxy_html.c:107: warning: data definition has no type or storage class mod_proxy_html.c:111: error: parse error before "proxy_html_conf" mod_proxy_html.c:111: warning: no semicolon at end of struct or union mod_proxy_html.c:117: error: parse error before '}' token mod_proxy_html.c:117: warning: data definition has no type or storage class mod_proxy_html.c: In function `pcharacters': mod_proxy_html.c:169: error: `ctx' undeclared (first use in this function) mod_proxy_html.c:169: error: (Each undeclared identifier is reported only once mod_proxy_html.c:169: error: for each function it appears in.) mod_proxy_html.c:169: error: parse error before ')' token mod_proxy_html.c: At top level: mod_proxy_html.c:183: error: parse error before '*' token mod_proxy_html.c: In function `preserve': mod_proxy_html.c:185: error: `len' undeclared (first use in this function) mod_proxy_html.c:185: error: `ctx' undeclared (first use in this function) mod_proxy_html.c: At top level: mod_proxy_html.c:199: error: parse error before '*' token mod_proxy_html.c: In function `pappend': mod_proxy_html.c:200: error: `ctx' undeclared (first use in this function) mod_proxy_html.c:200: error: `len' undeclared (first use in this function) mod_proxy_html.c: At top level: mod_proxy_html.c:204: error: parse error before '*' token mod_proxy_html.c: In function `dump_content': mod_proxy_html.c:205: error: `m' undeclared (first use in this function) mod_proxy_html.c:211: error: `regmatch_t' undeclared (first use in this function) mod_proxy_html.c:211: error: parse error before "pmatch" mod_proxy_html.c:215: error: `ctx' undeclared (first use in this function) mod_proxy_html.c:226: error: `pmatch' undeclared (first use in this function) mod_proxy_html.c: In function `pcdata': mod_proxy_html.c:281: error: `ctx' undeclared (first use in this function) mod_proxy_html.c:281: error: parse error before ')' token mod_proxy_html.c: In function `pcomment': mod_proxy_html.c:289: error: `ctx' undeclared (first use in this function) mod_proxy_html.c:289: error: parse error before ')' token mod_proxy_html.c: In function `pendElement': mod_proxy_html.c:302: error: `ctx' undeclared (first use in this function) mod_proxy_html.c:302: error: parse error before ')' token mod_proxy_html.c: In function `pstartElement': mod_proxy_html.c:321: error: `m' undeclared (first use in this function) mod_proxy_html.c:324: error: `ctx' undeclared (first use in this function) mod_proxy_html.c:324: error: parse error before ')' token mod_proxy_html.c:326: error: `regmatch_t' undeclared (first use in this function) mod_proxy_html.c:326: error: parse error before "pmatch" mod_proxy_html.c:425: error: `pmatch' undeclared (first use in this function) mod_proxy_html.c: At top level: mod_proxy_html.c:583: error: parse error before '*' token mod_proxy_html.c:583: warning: data definition has no type or storage class mod_proxy_html.c:584: error: parse error before '*' token mod_proxy_html.c:584: warning: data definition has no type or storage class mod_proxy_html.c:585: error: parse error before '*' token mod_proxy_html.c:585: warning: data definition has no type or storage class mod_proxy_html.c: In function `proxy_html_child_init': mod_proxy_html.c:590: error: `REG_EXTENDED' undeclared (first use in this function) mod_proxy_html.c:590: error: `REG_ICASE' undeclared (first use in this function) mod_proxy_html.c:590: warning: assignment from incompatible pointer type mod_proxy_html.c:592: warning: assignment from incompatible pointer type mod_proxy_html.c:594: warning: assignment from incompatible pointer type mod_proxy_html.c: In function `sniff_encoding': mod_proxy_html.c:606: error: `regmatch_t' undeclared (first use in this function) mod_proxy_html.c:606: error: parse error before "match" mod_proxy_html.c:640: error: `match' undeclared (first use in this function) mod_proxy_html.c:640: warning: passing arg 1 of `ap_regexec' from incompatible pointer type mod_proxy_html.c:643: warning: passing arg 1 of `ap_regexec' from incompatible pointer type mod_proxy_html.c: At top level: mod_proxy_html.c:669: error: 'metafix' redeclared as different kind of symbol mod_proxy_html.c:101: error: previous declaration of 'metafix' was here mod_proxy_html.c: In function `metafix': mod_proxy_html.c:676: error: `regmatch_t' undeclared (first use in this function) mod_proxy_html.c:676: error: parse error before "pmatch" mod_proxy_html.c:679: error: `pmatch' undeclared (first use in this function) mod_proxy_html.c:679: warning: passing arg 1 of `ap_regexec' from incompatible pointer type mod_proxy_html.c: In function `proxy_html_filter_init': mod_proxy_html.c:721: error: `fctx' undeclared (first use in this function) mod_proxy_html.c: At top level: mod_proxy_html.c:754: error: parse error before '*' token mod_proxy_html.c: In function `check_filter_init': mod_proxy_html.c:769: error: `cfg' undeclared (first use in this function) mod_proxy_html.c: In function `proxy_html_filter': mod_proxy_html.c:790: error: `ctxt' undeclared (first use in this function) mod_proxy_html.c: In function `proxy_html_config': mod_proxy_html.c:864: error: `ret' undeclared (first use in this function) mod_proxy_html.c: In function `proxy_html_merge': mod_proxy_html.c:871: error: `base' undeclared (first use in this function) mod_proxy_html.c:871: error: parse error before ')' token mod_proxy_html.c:872: error: `add' undeclared (first use in this function) mod_proxy_html.c:872: error: parse error before ')' token mod_proxy_html.c:873: error: `conf' undeclared (first use in this function) mod_proxy_html.c:876: error: `a' undeclared (first use in this function) mod_proxy_html.c:879: error: `save' undeclared (first use in this function) mod_proxy_html.c: In function `set_urlmap': mod_proxy_html.c:919: error: `cfg' undeclared (first use in this function) mod_proxy_html.c:919: error: parse error before ')' token mod_proxy_html.c:920: error: `map' undeclared (first use in this function) mod_proxy_html.c:921: error: `newmap' undeclared (first use in this function) mod_proxy_html.c:945: error: `REG_EXTENDED' undeclared (first use in this function) mod_proxy_html.c:946: error: `REG_ICASE' undeclared (first use in this function) mod_proxy_html.c:947: error: `REG_NOSUB' undeclared (first use in this function) mod_proxy_html.c:948: error: `REG_NEWLINE' undeclared (first use in this function) mod_proxy_html.c: In function `set_doctype': mod_proxy_html.c:957: error: `cfg' undeclared (first use in this function) mod_proxy_html.c:957: error: parse error before ')' token mod_proxy_html.c: At top level: mod_proxy_html.c:979: error: parse error before '*' token mod_proxy_html.c: In function `set_param': mod_proxy_html.c:980: error: `arg' undeclared (first use in this function) mod_proxy_html.c:982: error: `cfg' undeclared (first use in this function) mod_proxy_html.c: In function `set_flags': mod_proxy_html.c:991: error: parse error before ')' token mod_proxy_html.c:992: error: parse error before ')' token mod_proxy_html.c:993: error: parse error before ')' token mod_proxy_html.c: At top level: mod_proxy_html.c:1003: error: parse error before ')' token mod_proxy_html.c:1003: error: initializer element is not constant mod_proxy_html.c:1003: error: (near initialization for `proxy_html_cmds[3].cmd_data') mod_proxy_html.c:1003: error: initializer element is not constant mod_proxy_html.c:1003: error: (near initialization for `proxy_html_cmds[3]') mod_proxy_html.c:1006: error: initializer element is not constant mod_proxy_html.c:1006: error: (near initialization for `proxy_html_cmds[4].func') mod_proxy_html.c:1006: error: parse error before ')' token mod_proxy_html.c:1006: error: initializer element is not constant mod_proxy_html.c:1006: error: (near initialization for `proxy_html_cmds[4].cmd_data') mod_proxy_html.c:1006: error: initializer element is not constant mod_proxy_html.c:1006: error: (near initialization for `proxy_html_cmds[4]') mod_proxy_html.c:1009: error: initializer element is not constant mod_proxy_html.c:1009: error: (near initialization for `proxy_html_cmds[5].func') mod_proxy_html.c:1009: error: parse error before ')' token mod_proxy_html.c:1009: error: initializer element is not constant mod_proxy_html.c:1009: error: (near initialization for `proxy_html_cmds[5].cmd_data') mod_proxy_html.c:1009: error: initializer element is not constant mod_proxy_html.c:1009: error: (near initialization for `proxy_html_cmds[5]') mod_proxy_html.c:1013: error: initializer element is not constant mod_proxy_html.c:1013: error: (near initialization for `proxy_html_cmds[6].func') mod_proxy_html.c:1013: error: parse error before ')' token mod_proxy_html.c:1013: error: initializer element is not constant mod_proxy_html.c:1013: error: (near initialization for `proxy_html_cmds[6].cmd_data') mod_proxy_html.c:1013: error: initializer element is not constant mod_proxy_html.c:1013: error: (near initialization for `proxy_html_cmds[6]') mod_proxy_html.c:1017: error: initializer element is not constant mod_proxy_html.c:1017: error: (near initialization for `proxy_html_cmds[7].func') mod_proxy_html.c:1017: error: parse error before ')' token mod_proxy_html.c:1017: error: initializer element is not constant mod_proxy_html.c:1017: error: (near initialization for `proxy_html_cmds[7].cmd_data') mod_proxy_html.c:1017: error: initializer element is not constant mod_proxy_html.c:1017: error: (near initialization for `proxy_html_cmds[7]') mod_proxy_html.c:1020: error: initializer element is not constant mod_proxy_html.c:1020: error: (near initialization for `proxy_html_cmds[8]') apxs:Error: Command failed with rc=65536 .
At first, I thought (given the reference to regex_t) that it was a problem with my PCRE library (perhaps a conflict with my external library), but I recompiled Apache with --with-pcre and no change.
I've redownloaded the mod_proxy_html.c file in several different ways to rule out the possibility that it was corrupted, and I did take a look at the file to see if anything was obviously missing (I'm not a C programmer). I've searched Google and various other sources and haven't seen anyone else having this problem. Any ideas on pointers to where I can get more information about this problem, or things to try to nail down what the problem is?
-- Devin L. Ganger <devin@thecabal.org> "Aikido is based around the central precept of letting an attack take its natural course. You, of course, don't want to impede that natural flow by being in its way." -- overheard on the PyraMOO
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org
|
| | 4 answer | Add comment |
|
| Hacking in #modperl tomorrow Fred Moyer 09:49:35 |
| | Will be working on getting the externals ready for 2.05. If you have some tuits, stop by!
Sent from my iPhone
|
| | Add comment |
Friday, 23 May 2008
|
| SVN 1.5 Philip M. Gollucci 20:09:08 |
| | -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi All,
http://subversion.tigris.org/svn_1.5_releasenotes.html#externals
We should definitely make sure of this.
FWIW, the ASF is server 1.5.0.r5 as of a week ago.
- -- - ------------------------------------------------------------------------ Philip M. Gollucci (philip@ridecharge.com) o:703.549.2050x206 Senior System Admin - Riderway, Inc. http://riderway.com / http://ridecharge.com 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C
Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFINuwkdbiP+9ubjBwRAg7xAJ4gfrPsYkX663tmyjRIFTCEBLFPJgCff1un OdeQflqtsretGtWeDazDtcM= =XgTr -----END PGP SIGNATURE-----
|
| | Add comment |
Tuesday, 20 May 2008
|
| [Patch] SSM support for multicast.c Colm MacCarthaigh 03:26:06 |
| | As promised ;)
Patch also contains some whitespace/style cleanups my editor applied (uggh) and and I checked the IPv6 BSD for interface finding and modified it a little.
-- Colm MacCбrthaigh Public Key: colm+pgp@stdlib.net
Index: network_io/unix/multicast.c =================================================================== --- network_io/unix/multicast.c(revision 124104) +++ network_io/unix/multicast.c(working copy) @@ -25,7 +25,7 @@ #endif /* Only UDP and Raw Sockets can be used for Multicast */ -static apr_status_t mcast_check_type(apr_socket_t* sock) +static apr_status_t mcast_check_type(apr_socket_t *sock) { int type; apr_status_t rv; @@ -43,7 +43,7 @@ } } -static void fill_mip_v4(struct ip_mreq *mip, apr_sockaddr_t *mcast, +static void fill_mip_v4(struct ip_mreq *mip, apr_sockaddr_t *mcast, apr_sockaddr_t *iface) { mip->imr_multiaddr = mcast->sa.sin.sin_addr; @@ -56,7 +56,7 @@ } #if APR_HAVE_IPV6 -static unsigned int find_if_index(const apr_sockaddr_t *iface) +static unsigned int find_if_index(const apr_sockaddr_t *iface) { unsigned int index = 0; struct ifaddrs *ifp, *ifs; @@ -75,12 +75,10 @@ } for (ifp = ifs; ifp; ifp = ifp->ifa_next) { - if (ifp->ifa_addr != NULL && - ifp->ifa_addr->sa_family == AF_INET6) { - /* TODO: Is this correct? */ + if (ifp->ifa_addr != NULL && ifp->ifa_addr->sa_family == AF_INET6) { if (memcmp(&iface->sa.sin6.sin6_addr, &ifp->ifa_addr->sa_data[0], - sizeof(ifp->ifa_addr)) == 0) { + sizeof(iface->sa.sin6.sin6_addr)) == 0) { index = if_nametoindex(ifp->ifa_name); break; } @@ -92,7 +90,7 @@ return index; } -static void fill_mip_v6(struct ipv6_mreq *mip, const apr_sockaddr_t *mcast, +static void fill_mip_v6(struct ipv6_mreq *mip, const apr_sockaddr_t *mcast, const apr_sockaddr_t *iface) { memcpy(&mip->ipv6mr_multiaddr, mcast->ipaddr_ptr, @@ -108,7 +106,7 @@ #endif -static int sock_is_ipv4(apr_socket_t* sock) +static int sock_is_ipv4(apr_socket_t *sock) { if (sock->local_addr->family == APR_INET) return 1; @@ -116,7 +114,7 @@ } #if APR_HAVE_IPV6 -static int sock_is_ipv6(apr_socket_t* sock) +static int sock_is_ipv6(apr_socket_t *sock) { if (sock->local_addr->family == APR_INET6) return 1; @@ -124,19 +122,19 @@ } #endif -static apr_status_t do_mcast(int type, apr_socket_t *sock, +static apr_status_t do_mcast(int type, apr_socket_t *sock, apr_sockaddr_t *mcast, apr_sockaddr_t *iface, - apr_sockaddr_t *ssm) + apr_sockaddr_t *source) { struct ip_mreq mip4; apr_status_t rv = APR_SUCCESS; #if APR_HAVE_IPV6 struct ipv6_mreq mip6; #endif - - /* We do not currently support Single Source Multicast. */ - if (ssm != NULL) - return APR_ENOTIMPL; +#if MCAST_JOIN_SOURCE_GROUP + struct group_source_req mip; + int ip_proto; +#endif rv = mcast_check_type(sock); @@ -144,37 +142,68 @@ return rv; } - if (sock_is_ipv4(sock)) { + if (source != NULL) { +#if MCAST_JOIN_SOURCE_GROUP + if (sock_is_ipv6(sock)) + ip_proto = IPPROTO_IP; + else if (sock_is_ipv6(sock)) + ip_proto = IPPROTO_IPV6; + else + return APR_ENOTIMPL; - fill_mip_v4(&mip4, mcast, iface); + if (type == IP_ADD_MEMBERSHIP) + type = MCAST_JOIN_SOURCE_GROUP; + else if (type == IP_DROP_MEMBERSHIP) + type = MCAST_LEAVE_SOURCE_GROUP; + else + return APR_ENOTIMPL; - if (setsockopt(sock->socketdes, IPPROTO_IP, type, - (const void *)&mip4, sizeof(mip4)) == -1) { + mip.gsr_interface = find_if_index(iface); + memcpy(&mip.gsr_group, mcast->ipaddr_ptr, sizeof(mip.gsr_group)); + memcpy(&mip.gsr_source, source->ipaddr_ptr, sizeof(mip.gsr_source)); + + if (setsockopt(sock->socketdes, ip_proto, type, (const void *) &mip, + sizeof(mip)) == -1) { rv = errno; } +#else + /* We do not support Source-Specific Multicast. */ + return APR_ENOTIMPL; +#endif } + else { + if (sock_is_ipv4(sock)) { + + fill_mip_v4(&mip4, mcast, iface); + + if (setsockopt(sock->socketdes, IPPROTO_IP, type, + (const void *) &mip4, sizeof(mip4)) == -1) { + rv = errno; + } + } #if APR_HAVE_IPV6 - else if (sock_is_ipv6(sock)) { - if (type == IP_ADD_MEMBERSHIP) { - type = IPV6_JOIN_GROUP; - } - else if (type == IP_DROP_MEMBERSHIP) { - type = IPV6_LEAVE_GROUP; - } - else { - return APR_ENOTIMPL; - } + else if (sock_is_ipv6(sock)) { + if (type == IP_ADD_MEMBERSHIP) { + type = IPV6_JOIN_GROUP; + } + else if (type == IP_DROP_MEMBERSHIP) { + type = IPV6_LEAVE_GROUP; + } + else { + return APR_ENOTIMPL; + } - fill_mip_v6(&mip6, mcast, iface); + fill_mip_v6(&mip6, mcast, iface); - if (setsockopt(sock->socketdes, IPPROTO_IPV6, type, - &mip6, sizeof(mip6)) == -1) { - rv = errno; + if (setsockopt(sock->socketdes, IPPROTO_IPV6, type, + &mip6, sizeof(mip6)) == -1) { + rv = errno; + } } - } #endif - else { - rv = APR_ENOTIMPL; + else { + rv = APR_ENOTIMPL; + } } return rv; } @@ -183,7 +212,7 @@ apr_byte_t value) { apr_status_t rv = APR_SUCCESS; - + rv = mcast_check_type(sock); if (rv != APR_SUCCESS) { @@ -192,7 +221,7 @@ if (sock_is_ipv4(sock)) { if (setsockopt(sock->socketdes, IPPROTO_IP, type, - (const void *)&value, sizeof(value)) == -1) { + (const void *) &value, sizeof(value)) == -1) { rv = errno; } } @@ -201,7 +230,7 @@ unsigned int loopopt = value; type = IPV6_MULTICAST_LOOP; if (setsockopt(sock->socketdes, IPPROTO_IPV6, type, - &loopopt, sizeof(loopopt)) == -1) { + &loopopt, sizeof(loopopt)) == -1) { rv = errno; } } @@ -213,8 +242,8 @@ return APR_ENOTIMPL; } - if (setsockopt(sock->socketdes, IPPROTO_IPV6, type, - &value, sizeof(value)) == -1) { + if (setsockopt(sock->socketdes, IPPROTO_IPV6, type, + &value, sizeof(value)) == -1) { rv = errno; } } @@ -229,10 +258,10 @@ APR_DECLARE(apr_status_t) apr_mcast_join(apr_socket_t *sock, apr_sockaddr_t *join, apr_sockaddr_t *iface, - apr_sockaddr_t *ssm) + apr_sockaddr_t *source) { #ifdef IP_ADD_MEMBERSHIP - return do_mcast(IP_ADD_MEMBERSHIP, sock, join, iface, ssm); + return do_mcast(IP_ADD_MEMBERSHIP, sock, join, iface, source); #else return APR_ENOTIMPL; #endif @@ -241,17 +270,16 @@ APR_DECLARE(apr_status_t) apr_mcast_leave(apr_socket_t *sock, apr_sockaddr_t *leave, apr_sockaddr_t *iface, - apr_sockaddr_t *ssm) + apr_sockaddr_t *source) { #ifdef IP_DROP_MEMBERSHIP - return do_mcast(IP_DROP_MEMBERSHIP, sock, leave, iface, ssm); + return do_mcast(IP_DROP_MEMBERSHIP, sock, leave, iface, source); #else return APR_ENOTIMPL; #endif } -APR_DECLARE(apr_status_t) apr_mcast_hops(apr_socket_t *sock, - apr_byte_t ttl) +APR_DECLARE(apr_status_t) apr_mcast_hops(apr_socket_t *sock, apr_byte_t ttl) { #ifdef IP_MULTICAST_TTL return do_mcast_opt(IP_MULTICAST_TTL, sock, ttl); @@ -260,7 +288,7 @@ #endif } -APR_DECLARE(apr_status_t) apr_mcast_loopback(apr_socket_t *sock, +APR_DECLARE(apr_status_t) apr_mcast_loopback(apr_socket_t *sock, apr_byte_t opt) { #ifdef IP_MULTICAST_LOOP @@ -278,16 +306,16 @@ if (sock_is_ipv4(sock)) { if (setsockopt(sock->socketdes, IPPROTO_IP, IP_MULTICAST_IF, - (const void *)&iface->sa.sin.sin_addr, - sizeof(iface->sa.sin.sin_addr)) == -1) { + (const void *) &iface->sa.sin.sin_addr, + sizeof(iface->sa.sin.sin_addr)) == -1) { rv = errno; } } #if APR_HAVE_IPV6 else if (sock_is_ipv6(sock)) { unsigned int idx = find_if_index(iface); - if (setsockopt(sock->socketdes, IPPROTO_IPV6, IPV6_MULTICAST_IF, - &idx, sizeof(idx)) == -1) { + if (setsockopt(sock->socketdes, IPPROTO_IPV6, IPV6_MULTICAST_IF, + &idx, sizeof(idx)) == -1) { rv = errno; } } Index: include/apr_network_io.h =================================================================== --- include/apr_network_io.h(revision 124104) +++ include/apr_network_io.h(working copy) @@ -758,14 +758,13 @@ * @param join The address of the multicast group to join * @param iface Address of the interface to use. If NULL is passed, the * default multicast interface will be used. (OS Dependent) - * @param ssm Single Source Multicast Address to accept transmissions from. - * @remark Single Source Multicast is not currently implemented, and you must - * pass NULL for the argument. + * @param source Source Address to accept transmissions from (non-NULL + * implies Source-Specific Multicast) */ APR_DECLARE(apr_status_t) apr_mcast_join(apr_socket_t *sock, apr_sockaddr_t *join, apr_sockaddr_t *iface, - apr_sockaddr_t *ssm); + apr_sockaddr_t *source); /** * Leave a Multicast Group. All arguments must be the same as @@ -774,14 +773,13 @@ * @param leave The address of the multicast group to leave * @param iface Address of the interface to use. If NULL is passed, the * default multicast interface will be used. (OS Dependent) - * @param ssm Single Source Multicast Address that transmissions came from. - * @remark Single Source Multicast is not currently implemented, and you must - * pass NULL for the argument. + * @param source Source Address to accept transmissions from (non-NULL + * implies Source-Specific Multicast) */ APR_DECLARE(apr_status_t) apr_mcast_leave(apr_socket_t *sock, apr_sockaddr_t *leave, apr_sockaddr_t *iface, - apr_sockaddr_t *ssm); + apr_sockaddr_t *source); /** * Set the Multicast Time to Live (ttl) for a multicast transmission.
|
| | 4 answer | Add comment |
Friday, 16 May 2008
|
| [Fwd: [rt.cpan.org #34316] Makefile.PL maze can lead to unnecessary
FAIL reports] Fred Moyer 08:05:26 |
| | Phillip an i talked on irc about this a bit. There was some talk of a new module Apache::Bootstrap which takes care of everything.
Of course, we would definitely need to ship this module with mod_perl releases, since it would probably be required by all the other Apache::* modules, so I don't know if that solves one problem and creates another
-- Red Hot Penguin Consulting LLC mod_perl/PostgreSQL consulting and implementation http://www.redhotpenguin.com/
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org |
| | Add comment |
|
| Re: svn commit: r656930 - in /perl/Apache-Reload/trunk: Changes NOTICE Fred Moyer 08:03:08 |
| | What normally goes in a NOTICE file?
pgollucci@apache.org wrote:
Author: pgollucci Date: Thu May 15 20:55:36 2008 New Revision: 656930 Log: Add stub NOTICE file PR: 34786 Submitted by: Niko Tyni (Debian Perl Group) <ntyni@debian.org> Added: perl/Apache-Reload/trunk/NOTICE Modified: perl/Apache-Reload/trunk/Changes Modified: perl/Apache-Reload/trunk/Changes ============================================================================== --- perl/Apache-Reload/trunk/Changes (original) +++ perl/Apache-Reload/trunk/Changes Thu May 15 20:55:36 2008 @@ -8,6 +8,9 @@ =item 0.11-dev +Add Empty NOTICE file +[Niko Tyni (Debian Perl Group) <ntyni@debian.org>] =item 0.10 February 25, 2008 Added: perl/Apache-Reload/trunk/NOTICE ============================================================================== (empty)
-- Red Hot Penguin Consulting LLC mod_perl/PostgreSQL consulting and implementation http://www.redhotpenguin.com/
|
| | 2 answer | Add comment |
Thursday, 15 May 2008
|
| Zone Request for Apache-Perl to run Smolder Philip M. Gollucci 23:26:25 |
| | -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
https://issues.apache.org/jira/browse/INFRA-1612
- ------------------------------------------------------------------------ Philip M. Gollucci (philip@ridecharge.com) o:703.549.2050x206 Senior System Admin - Riderway, Inc. http://riderway.com / http://ridecharge.com 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C
Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD4DBQFILI5hdbiP+9ubjBwRAhacAJjVDuyJWRad2plxROpWr7eURhlCAJ9bxf58 jDc3R6Dq+S2+GhPnx2+MCw== =cYNM -----END PGP SIGNATURE-----
|
| | Add comment |
|
| [VOTE]: drop support for httpd < 2.0.50 Philip M. Gollucci 23:03:08 |
| | -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Can we please drop support for 2.0.47 2.0.48 2.0.49
I can't even compile this guys anymore without installing gcc 3.4.x. (buserror / segfaults) before you even put mod_perl into the picture.
freebsd and linux afaik bundle gcc 4.x (4.2 these days)
- -- - ------------------------------------------------------------------------ Philip M. Gollucci (philip@ridecharge.com) o:703.549.2050x206 Senior System Admin - Riderway, Inc. http://riderway.com / http://ridecharge.com 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C
Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFILIQpdbiP+9ubjBwRAgwSAJ4pyiwhRAOUJWNPPjEeDPJRYCryGgCfaPBL pCgq+Hp9fGvCBSquNuffsKM= =FbuH -----END PGP SIGNATURE-----
|
| | 4 answer | Add comment |
|
| [VOTE]: drop support perl 5.6.1 Philip M. Gollucci 22:58:03 |
| | -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Can we please drop support for perl 5.6.1, it doesn't look like p5p is going to even maintain it anymore.
We can keep 5.6.2 for now.
I have to jump through a large number of hoops to compile perl on freebsd 7/8 (aside from the gnu core utils bug which I don't have)
- -- - ------------------------------------------------------------------------ Philip M. Gollucci (philip@ridecharge.com) o:703.549.2050x206 Senior System Admin - Riderway, Inc. http://riderway.com / http://ridecharge.com 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C
Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFILIOwdbiP+9ubjBwRAkU6AJ9kgef2SQcxuV7VjwcabvLUy0MFGwCgjR8B u6vTwvJ5hOHng7Rs/Eiv1og= =wWpj -----END PGP SIGNATURE-----
|
| | 4 answer | Add comment |
Tuesday, 13 May 2008
|
| HTTP/APR/APU build combinations Philip M. Gollucci 23:54:17 |
| | -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
my $matrix = { ~ 2.0.47 => { apr => '0.9.4', apu => '0.9.4', pcre => '3.0' }, ~ 2.0.48 => { apr => '0.9.5', apu => '0.9.5', pcre => '3.0' }, ~ 2.0.49 => { apr => '0.9.5', apu => '0.9.5', pcre => '3.0' }, ~ 2.0.50 => { apr => '0.9.5', apu => '0.9.5', pcre => '3.0' }, ~ 2.0.51 => { apr => '0.9.5', apu => '0.9.5', pcre => '3.0' }, ~ 2.0.52 => { apr => '0.9.5', apu => '0.9.5', pcre => '3.0' }, ~ 2.0.53 => { apr => '0.9.6', apu => '0.9.6', pcre => '3.0' }, ~ 2.0.54 => { apr => '0.9.6', apu => '0.9.6', pcre => '3.0' }, ~ 2.0.55 => { apr => '0.9.7', apu => '0.9.7', pcre => '3.0' }, ~ 2.0.58 => { apr => '0.9.12', apu => '0.9.12', pcre => '3.0' }, ~ 2.0.59 => { apr => '0.9.12', apu => '0.9.12', pcre => '3.0' }, ~ 2.0.61 => { apr => '0.9.16', apu => '0.9.15', pcre => '3.0' }, ~ 2.0.63 => { apr => '0.9.17', apu => '0.9.15', pcre => '3.0' },
~ 2.2.0 => { apr => '1.2.2', apu => '1.2.2', pcre => '5.0' }, ~ 2.2.2 => { apr => '1.2.7', apu => '1.2.7', pcre => '5.0' }, ~ 2.2.4 => { apr => '1.2.8', apu => '1.2.8', pcre => '5.0' }, ~ 2.2.6 => { apr => '1.2.11', apu => '1.2.10', pcre => '5.0' }, ~ 2.2.8 => { apr => '1.2.12', apu => '1.2.12', pcre => '5.0' }, ~ };
- -- - ------------------------------------------------------------------------ Philip M. Gollucci (philip@ridecharge.com) o:703.549.2050x206 Senior System Admin - Riderway, Inc. http://riderway.com / http://ridecharge.com 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C
Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIKfHpdbiP+9ubjBwRAlHkAJ99sUzRD5O6wv/p05SzHLKxTiq+gACeLh2T bjRPNMik09A0kSf+lfRSDgQ= =VIQs -----END PGP SIGNATURE-----
|
| | Add comment |
|
| http://rt.cpan.org/Public/Bug/Display.html?id=32992 Philip M. Gollucci 22:24:36 |
| | -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
http://rt.cpan.org/Public/Bug/Display.html?id=32992
Any thoughts on adding version.pm as a new depency ?
It probably doesn't quite work as expected with '<'
- -- - ------------------------------------------------------------------------ Philip M. Gollucci (philip@ridecharge.com) o:703.549.2050x206 Senior System Admin - Riderway, Inc. http://riderway.com / http://ridecharge.com 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C
Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIKLwDdbiP+9ubjBwRAj1MAJ96ttdymzfZLspg+goX8d+HLatGwgCfWiTQ WU80kGW6WrZkx/s1OJ26ZwA= =jl8p -----END PGP SIGNATURE-----
|
| | 4 answer | Add comment |
|
| http://rt.cpan.org/Public/Bug/Display.html?id=1566 Philip M. Gollucci 01:54:16 |
| | -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
http://rt.cpan.org/Public/Bug/Display.html?id=1566
Randyk, windows people thoughts ?
- -- - ------------------------------------------------------------------------ Philip M. Gollucci (philip@ridecharge.com) o:703.549.2050x206 Senior System Admin - Riderway, Inc. http://riderway.com / http://ridecharge.com 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C
Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIKLyHdbiP+9ubjBwRAgjCAJ0ZvLTcXofk2GzDm2309P7w4EJOigCgkWxZ P+V7ZAyeAtPFceQP41Wi5sc= =1m8u -----END PGP SIGNATURE-----
|
| | Add comment |
Monday, 12 May 2008
|
| Quick question Tom Ray 12:03:49 |
| | I'm not sure if this is off topic or what. But I have a Red Hat 7.1 running apache running that latest version of apache 1.x.x, and I'm having a small problem.
All the CGI scripts are running as the user apache, I want them to run as the user that is using the script. So if I have a script I want it to run as tom not apache...I'm not sure how to make this happen..
Can anyone help me?
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org
|
| | 87 answers | Add comment |
Friday, 9 May 2008
|
| Re: Apache-Reload-0.10 Philip M. Gollucci 02:34:55 |
| | -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
For what its worth, the detection of mod_perl changed:
/usr/ports/www/p5-Apache-Reload> sudo make ===> p5-Apache-Reload-0.10 depends on file: /usr/local/bin/perl5.8.8 - found ===> Configuring for p5-Apache-Reload-0.10 don't know anything about mod_perl generation: 0 currently supporting only generations 1 and 2 at ./Makefile.PL line 102. *** Error code 2
This didn't use to be the case, I can obviously work around it and just set the variable correctly.
- -- - ------------------------------------------------------------------------ Philip M. Gollucci (philip@ridecharge.com) o:703.549.2050x206 Senior System Admin - Riderway, Inc. http://riderway.com / http://ridecharge.com 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C
Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFII4yFdbiP+9ubjBwRAkaoAJwNNDNBMh55nxm0UycrxjbnaPGlpQCfYtJc wd+81t8jxNkO6NAIDpglB4Y= =Ll20 -----END PGP SIGNATURE-----
|
| | 2 answer | Add comment |
Sunday, 4 May 2008
|
| Test::Apache Failure with Apache 2.2 David E. Wheeler 22:01:08 |
| | Hey All,
I've just been updating the test suite for MasonX::Interp::WithCallbacks and noticed that, while tests pass perfectly with Apache 1, the server never starts up with Apache 2. With Apache 2, I get:
benedict% perl Build.PL Checking whether your kit is complete... Looks good
Checking prerequisites... Looks good
Creating new 'Build' script for 'MasonX-Interp-WithCallbacks' version '1.18'
benedict% ./Build test --test_files t/08apache.t Copying lib/MasonX/Interp/WithCallbacks.pm -> blib/lib/MasonX/Interp/ WithCallbacks.pm /usr/local/bin/perl -I /Users/david/dev/Kineticode/MasonX-Interp- WithCallbacks/trunk/blib/lib -I /Users/david/dev/Kineticode/MasonX- Interp-WithCallbacks/trunk/blib/arch t/TEST -clean [warning] setting ulimit to allow core files ulimit -c unlimited; /usr/local/bin/perl /Users/david/dev/Kineticode/ MasonX-Interp-WithCallbacks/trunk/t/TEST -clean /usr/local/bin/perl -I /Users/david/dev/Kineticode/MasonX-Interp- WithCallbacks/trunk/blib/lib -I /Users/david/dev/Kineticode/MasonX- Interp-WithCallbacks/trunk/blib/arch t/TEST -bugreport -verbose=0 [warning] setting ulimit to allow core files ulimit -c unlimited; /usr/local/bin/perl /Users/david/dev/Kineticode/ MasonX-Interp-WithCallbacks/trunk/t/TEST -bugreport -verbose=0 /usr/local/apache2/bin/httpd -d /Users/david/dev/Kineticode/MasonX- Interp-WithCallbacks/trunk/t -f /Users/david/dev/Kineticode/MasonX- Interp-WithCallbacks/trunk/t/conf/httpd.conf -D APACHE2 using Apache/2.2.8 (prefork MPM)
waiting 60 seconds for server to start: .Loading CGI at runtime. You could increase shared memory between Apache processes by preloading it in your httpd.conf or handler.pl file Syntax error on line 189 of /Users/david/dev/Kineticode/MasonX-Interp- WithCallbacks/trunk/t/conf/httpd.conf: mod_perl is already running, too late for PerlSwitches ............................................................. waiting 60 seconds for server to start: not ok [ error] giving up after 61 secs. If you think that your system is slow or overloaded try again with a longer timeout value. by setting the environment variable APACHE_TEST_STARTUP_TIMEOUT to a high value (e.g. 360) and repeat the last command.
[ error] server failed to start! (t/logs/error_log wasn't created, start the server in the debug mode) benedict%
I'm not sure what the difference is here. Anyone know?
If you want to try it yourself, you can check out my code from svn here:
https://svn.kineticode.com/MasonX-Interp-WithCallbacks/trunk
I have Apache::Test 1.31 installed and am tying t run the tests against my 2.2.8 Apache server with mod_perl 2.04 and Perl 5.10.
Thanks,
David
|
| | 6 answers | Add comment |
|
| Dynamic vhost moduels for 1.3.27? Steve Fulton 07:43:47 |
| | Hi all,
I'm in need of a dynamic vhost module for 1.3.27, and while I've found a few at the modules site, I wish to solicit opinions and experiences. Of what I've found, mod_dynvhost seems to have most of what I need (and, most importantly, allows user home directories below the domain name [ie. http://www.domain.com/~user]). That said, I've been having some difficulties with it actually viewing the user directories, and in my search for answers I've found a few comments saying it wasn't 100% reliable, but without much explaination, so here I am.
-- Steve
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org
|
| | 1 answer | Add comment |
Wednesday, 30 April 2008
|
| Compilation Error .... Chan Kwok Leung 20:12:35 |
| | Hi, apache,
I built the latest apache version 1.3.26 on my Redhat Linux 7.2, AMD-233, 128MB RAM. However, it always reports "Segmentation error" during the compilation. Sometimes, it can compile more files, and sometimes less. Before each rebuild, I have cleaned up all intermediate files by "make clean".
However, on my another PC, Pentinum-450, 128MB RAM, Redhat 6.2, it can build and run the apache successfully. But, this PC is my client PC, not the server.
So, could you help me to solve this problem ? Thanks in advance.
Ar, in the RedHat 7.2, the compiler version is 2.96 (gcc-2.96-98, gcc-c++-2.96-98, gcc-objc-2.96-98) and the glibc version is 2.2.4 (glibc-2.2.4-13, glibc-devel-2.2.4-13, glibc-common-2.2.4-13, compat-glibc-6.2-2.1.3.2). Is there any problem with these programs for compilation on AMD-233 ?
Thanks.
-- Chan Kwok Leung
|
| | 18 answers | Add comment |
|
|