 |
| Recent blog posts: | |
 |
| They have birthday today: | |
 |
| Forums: | | |
 |
| Discuss: | |
 |
| Recent forum topics: | |
 |
| Recent forum comments: | |
 |
| Модератор: | |
 |
Monday, 15 September 2008
|
| --enable-mods-shared=max Werner Schalk 10:46:26 |
| | Hello,
I'm trying to cope with shared objects using apache 2.0.36.
While I successfully used the line "./configure --enable-layout=Apache \ --enable-mods-shared=most", I'm not able to get "--enable-mods-shared=max" working because it does not create any shared object at all. On my linux system I can give a list of modules to be compiled as shared objects and they do but if I use the max option it does not work, either does the min option.
Aren't these options (--enable-mods-shared= min/max) implementated, are they?
Thanks, and bye Werner Schalk
|
| | 1 answer | Add comment |
Thursday, 4 September 2008
|
| Newbie Question Stephen A 902d MI Davis 22:24:32 |
| | Hello all. I am very new to the world of Unix, Solaris and Apache. And I have to now install and use all of this. I went to:
http://www.apache.org/dist/httpd/
To download Apache for Solaris but I have no idea what to download. I am way too used to downloading real complicated things like Setup.exe. Can anyone give me specific guidance or references on this? Thank you in advance.
Stephen A. Davis stephendavis@bigfoot.com
|
| | 248 answers | Add comment |
Friday, 22 August 2008
|
| ERROR: ap_proxy_is_word, mod_proxy Guest 09:48:03 |
| | Using Linux (CentOS 4.2)
Loaded the mod_proxy and proxy_util modules with the following:
/usr/local/apache2/bin/apxs -c -i mod_proxy.c /usr/local/apache2/bin/apxs -c -i -n 'APACHE2' proxy_util.c
Edited the httpd.conf file by adding:
LoadModule proxy_module modules/mod_proxy.so LoadModule APACHE2_module modules/proxy_util.so
When restart apache with:
/usr/local/apache2/bin/apachectl restart
GET THE FOLLOWING ERROR: Syntax error on line 238 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/mod_proxy.so into server: /usr/local/apache2/modules/mod_proxy.so: undefined symbol: ap_proxy_is_word
SUGGESTIONS ON HOW TO RESOLVE, thanks....Rob
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See 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
|
| | 2 answer | Add comment |
|
| ProxyPass/ProxyPassReverse switch from http to https on redirect? (Apache 2.2.0) Kresimir Peharda 09:18:05 |
| | I am struggling to set up a reverse proxy, and for some reason, just can't get it right.
I have a public server (will call it "frontend") to access a private one ("backend"). The "backend" sends a couple of redirects, which seem to confuse the ProxyPassReverse, so eventually my browser ends up querying the DNS for the whereabouts of the "backend". Namely, it goes like this:
In httpd.conf: <Location /b-end/> ProxyPass http://backend/ ProxyPassReverse http://backend/ </Location>
This has for effect that a request to: Host: frontend GET /b-end/ HTTP 1.1
- gets forwarded to the backend, and a reply to the browser is rewritten like: HTTP 1.1 302 Location: http://frontend/b-end/Login/
Now, the browser tries: Host: frontend GET /b-end/Login/ HTTP 1.1 - so far, so good
- and the proxy replies with: HTTP 1.1 302 Location: http://frontend/b-end/Login/ - and this is wrong, since the proxy actually gets that the document moved to https://backend/Login/, hence the location should be rewritten like - https://frontend/b-end/Login/. However, it always remain http.
I tried rewriting it to /sb-end/ with a directive:
ProxyPassReverse /sb-end/ https://backend/ - but I still get
Location: http://frontend/sb-end/Login/ - where I hoped it to be https://frontend/sb-end/Login/
Needless to say, I tried a number of other tricks, including mod_ext_filter, mod_rewrite, however, with no result.
I would sure like to understand what am I doing wrong.
Thanks in advance, Kresimir
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
--------------------------------------------------------------------- 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
|
| | 8 answers | Add comment |
Thursday, 21 August 2008
|
| Problem with tomcat Guest 15:32:26 |
| | Greetings, I'm trying to configure the jakarta-tomcat-connectors-4.0.6-src and when I run ./buildconf.sh I get the following error message libtoolize --force --automake --copy libtoolize: `configure.ac' does not exist Try `libtoolize --help' for more information. aclocal aclocal: `configure.ac' or `configure.in' is required aclocal: `configure.ac' or `configure.in' is required automake -a --foreign -i --copy automake: `configure.ac' or `configure.in' is required autoconf autoconf: no input file
Any help would be appreciated Thanks, Bobbie
Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156
--------------------------------------------------------------------- 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 |
Thursday, 14 August 2008
|
| query_string length Andrea Gabellini 21:29:40 |
| | Hi,
I'm using Apache 2.0.49 and I need to use a very long query_string. I notice that the server cut it about at 2048 bytes. Is it possible to enlarge this value? If there isn't a config parameter, I can change the source code, but I didn't find where to made the change.
Thanks in advance, Andrea
--------------------------------------- A paperless office has about as much chance as a paperless bathroom. --------------------------------------- Ing. Andrea Gabellini Email: agabellini@intelcom.sm Tel: 0549 886111 (Italy) Tel. +378 0549 886111 (International)
Intelcom San Marino S.p.A. Strada degli Angariari, 3 47891 Rovereta Repubblic of San Marino
http://www.omniway.sm http://www.intelcom.sm
--------------------------------------------------------------------- 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
|
| | 7 answers | Add comment |
Tuesday, 5 August 2008
|
| MP_FUNC & MP_CHECK_WBUCKET_INIT Torsten Foertsch 10:15:26 |
| | Hi,
MP_FUNC is NULL unless MP_TRACE is set (modperl_common_log.h).
MP_CHECK_WBUCKET_INIT is defined as (modperl_util.h):
#define MP_CHECK_WBUCKET_INIT(func) \ if (!rcfg->wbucket) { \ Perl_croak(aTHX_ "%s: " func " can't be called " \ "before the response phase", MP_FUNC); \ }
It doesn't check for MP_TRACE and hence passes a NULL pointer to Perl_croak(%s).
How about this fix?
Index: src/modules/perl/modperl_util.h =================================================================== --- src/modules/perl/modperl_util.h (revision 681109) +++ src/modules/perl/modperl_util.h (working copy) @@ -20,11 +20,19 @@ #include "modperl_common_util.h"
/* check whether the response phase has been initialized already */ -#define MP_CHECK_WBUCKET_INIT(func) \ - if (!rcfg->wbucket) { \ - Perl_croak(aTHX_ "%s: " func " can't be called " \ - "before the response phase", MP_FUNC); \ +#ifdef MP_TRACE +# define MP_CHECK_WBUCKET_INIT(func) \ + if (!rcfg->wbucket) { \ + Perl_croak(aTHX_ "%s: " func " can't be called " \ + "before the response phase", MP_FUNC); \ } +#else +# define MP_CHECK_WBUCKET_INIT(func) \ + if (!rcfg->wbucket) { \ + Perl_croak(aTHX_ func " can't be called " \ + "before the response phase"); \ + } +#endif
/* turn off cgi header parsing. in case we are already inside * modperl_callback_per_dir(MP_RESPONSE_HANDLER, r, MP_HOOK_RUN_FIRST);
-- Need professional mod_perl support? Just hire me: torsten.foertsch@gmx.net
|
| | 1 answer | Add comment |
Thursday, 31 July 2008
|
| mod_perl survey Fred Moyer 05:24:29 |
| | Greetings,
At the impromptu mod_perl BOF at YAPC::NA, Adam Prime had the great idea that a mod_perl survey could help look at the current needs of mod_perl users, similar to the Perl survey (http://perlsurvey.org).
We hacked out a 10 question survey using surveymonkey.com, the link is here (please do _not_ submit any results yet :
http://www.surveymonkey.com/s.aspx?sm=bQyb2RFCBuVb0P52yhaCMg_3d_3d
The survey would seek to attain these goals:
1) Determine the current breakdown of mod_perl users in terms of what versions, modules, and platforms mod_perl users are using.
2) Give mod_perl users a chance to provide feedback to the development team on where they think mod_perl development should be headed.
I'm interested on what thoughts other devs have on sending this out to the list. I would want to post the stats back to the list once we had gathered a good sized data set. This is a small survey gathering a limited amount of data, but that should work somewhat in our favor in that it only takes about a minute to complete.
It could be that we only get 10 responses, it could be that we get 1,000 responses. But that data in itself is valuable.
What do you think, mod_perl devs?
- Fred
|
| | 10 answers | Add comment |
|
| modperl2/svn make error @ "mpxs_Apache2__RequestRec_location_merge" Snowcrash+Modperl 05:14:09 |
| | i've been running with a build of modperl/trunk, r635647.
i just co'd current modperl/trunk, r677481.
a new build with,
perl Makefile.PL MP_GENERATE_XS=1 MP_APXS=/usr/local/apache2/sbin/apxs MP_USE_DSO Reading Makefile.PL args from @ARGV MP_APXS = /usr/local/apache2/sbin/apxs MP_USE_DSO = no conflicting prior mod_perl version found - good. Configuring Apache/2.3.0-dev mod_perl/2.0.5-dev Perl/v5.10.0 ... make
fails @ chmod 755 ../../../blib/arch/auto/Apache2/RequestRec/RequestRec.bundle cp RequestRec.bs ../../../blib/arch/auto/Apache2/RequestRec/RequestRec.bs chmod 644 ../../../blib/arch/auto/Apache2/RequestRec/RequestRec.bs cp RequestUtil.pm ../../../blib/lib/Apache2/RequestUtil.pm /usr/local/perl5/bin/perl /usr/local/lib/perl5/privlib/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/privlib/ExtUtils/typemap -typemap /Volumes/build/modperl2/xs/typemap RequestUtil.xs > RequestUtil.xsc && mv RequestUtil.xsc RequestUtil.c cc -c -I/Volumes/build/modperl2/src/modules/perl -I/Volumes/build/modperl2/xs -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/db47/include -I/usr/local/include -I/usr/local/apache2/include -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -I/usr/local/db47/include -I/usr/local/include -DMOD_PERL -DMP_COMPAT_1X -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -O3 -DVERSION=\"2.000005\" -DXS_VERSION=\"2.000005\" "-I/usr/local/lib/perl5/privlib/darwin-thread-multi-2level/CORE" -DMP_HAVE_APR_LIBS RequestUtil.c In file included from /usr/local/lib/perl5/privlib/darwin-thread-multi-2level/CORE/perl.h:2382, from /Volumes/build/modperl2/src/modules/perl/modperl_perl_includes.h:65, from /Volumes/build/modperl2/src/modules/perl/modperl_common_includes.h:24, from /Volumes/build/modperl2/src/modules/perl/mod_perl.h:21, from RequestUtil.xs:18: /usr/local/lib/perl5/privlib/darwin-thread-multi-2level/CORE/handy.h:85:1: warning: "bool" redefined In file included from /usr/include/mach-o/dyld.h:29, from /usr/local/apache2/include/apr_portable.h:166, from /usr/local/apache2/include/http_protocol.h:31, from /Volumes/build/modperl2/src/modules/perl/modperl_apache_includes.h:30, from /Volumes/build/modperl2/src/modules/perl/mod_perl.h:20, from RequestUtil.xs:18: /usr/lib/gcc/powerpc-apple-darwin9/4.2.1/include/stdbool.h:36:1: warning: this is the location of the previous definition In file included from RequestUtil.xs:26: /Volumes/build/modperl2/xs/Apache2/RequestUtil/Apache2__RequestUtil.h: In function 'mpxs_Apache2__RequestRec_location_merge': /Volumes/build/modperl2/xs/Apache2/RequestUtil/Apache2__RequestUtil.h:157: error: 'core_dir_config' has no member named 'ap_auth_type' /Volumes/build/modperl2/xs/Apache2/RequestUtil/Apache2__RequestUtil.h:158: error: 'core_dir_config' has no member named 'ap_auth_type' /Volumes/build/modperl2/xs/Apache2/RequestUtil/Apache2__RequestUtil.h:160: error: 'core_dir_config' has no member named 'ap_auth_name' /Volumes/build/modperl2/xs/Apache2/RequestUtil/Apache2__RequestUtil.h:161: error: 'core_dir_config' has no member named 'ap_auth_name' make[3]: *** [RequestUtil.o] Error 1 make[2]: *** [subdirs] Error 2 make[1]: *** [subdirs] Error 2 make: *** [subdirs] Error 2
per instructions, output of
perl build/config.pl *** mod_perl version 2.000005
*** using /Volumes/build/modperl2/lib/Apache2/BuildConfig.pm
*** Makefile.PL options: MP_APR_LIB => aprext MP_APXS => /usr/local/apache2/sbin/apxs MP_COMPAT_1X => 1 MP_GENERATE_XS => 1 MP_LIBNAME => mod_perl MP_USE_DSO => 1
*** The httpd binary was not found
{ DON'T KNOW WHY THIS IS 'NOT FOUND' ... which httpd /usr/local/apache2/sbin/httpd httpd -V Server version: Apache/2.3.0-dev (Unix) Server built: Jul 14 2008 17:33:16 Server's Module Magic Number: 20080528:1 Server loaded: APR 1.3.2, APR-UTIL 1.3.2 Compiled using: APR 1.3.2, APR-UTIL 1.3.2 Architecture: 32-bit Server MPM: Worker threaded: yes (fixed thread count) forked: yes (variable process count) Server compiled with.... -D APACHE_MPM_DIR="server/mpm/worker" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D DYNAMIC_MODULE_LIMIT=128 -D HTTPD_ROOT="/usr/local/apache2" -D SUEXEC_BIN="/usr/local/apache2/bin/suexec" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types" -D SERVER_CONFIG_FILE="/etc/apache2/httpd.conf" }
*** (apr|apu)-config linking info
-L/usr/local/apache2/lib -laprutil -ldb-4.7 -lexpat -liconv -L/usr/local/db47/lib -L/usr/local/lib -L/usr/local/apache2/lib -lapr -lpthread
*** /usr/local/perl5/bin/perl -V Summary of my perl5 (revision 5 version 10 subversion 0) configuration: Platform: osname=darwin, osvers=9.4.0, archname=darwin-thread-multi-2level uname='darwin tiedgar.mydomain.net 9.4.0 darwin kernel version 9.4.0: mon jun 9 19:36:17 pdt 2008; root:xnu-1228.5.20~1release_ppc power macintosh ' config_args='-Dfirstmakefile=GNUmakefile -Dprefix=/usr/local/perl5 -Dperladmin=postmaster@mydomain.com -Dcf_email=postmaster@mydomain.com -Dloclibpth=/usr/local/db47/lib /usr/local/lib /usr/lib -Dlocincpth=/usr/local/db47/include /usr/local/include /usr/include -Dldflags=-L/usr/local/db47/lib -L/usr/local/lib -L/usr/lib -Dperllibs=-ldb -lc -lm -ldl -Dlibs=-ldb -lc -lm -ldl -Dprivlib=/usr/local/lib/perl5/privlib -Darchlib=/usr/local/lib/perl5/privlib/darwin-thread-multi-2level -Dsitelib=/usr/local/lib/perl5/sitelib -Dsitearch=/usr/local/lib/perl5/sitelib/darwin-thread-multi-2level -Dvendorlib=/usr/local/lib/perl5/vendorlib -Dvendorarch=/usr/local/lib/perl5/vendorlib/darwin-thread-multi-2level -Dvendorbin=/usr/local/lib/perl5/bin -Dvendorprefix=/usr/local/lib/perl5 -Dhtml1dir=/usr/local/share/html/Perl -Dhtml3dir=/usr/local/share/html/Perl -Dsitehtml1=/usr/local/share/html/Perl -Dsitehtml3=/usr/local/share/html/Perl -Dvendorhtml1=/usr/local/share/html/Perl -Dvendorhtml3=/usr/local/share/html/Perl -Dman1dir=/usr/local/share/man/man1 -Dman3dir=/usr/local/share/man/man3 -Dsiteman1dir=/usr/local/share/man/man1 -Dsiteman3dir=/usr/local/share/man/man3 -Dman1ext=1 -Dman3ext=3 -Dinstallusrbinperl -Duseshrplib -Duseperlio -Duseithreads -Dd_union_semun' hint=recommended, useposix=true, d_sigaction=define useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -I/usr/local/db47/include -I/usr/local/include', optimize='-O3', cppflags='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -I/usr/local/db47/include -I/usr/local/include' ccversion='', gccversion='4.2.1 (Apple Inc. build 5531)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='env MACOSX_DEPLOYMENT_TARGET=10.5 cc', ldflags ='-L/usr/local/db47/lib -L/usr/local/lib -L/usr/lib' libpth=/usr/local/db47/lib /usr/local/lib /usr/lib libs=-ldb -lc -lm -ldl perllibs=-lc -lm -ldl libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, libperl=libperl.dylib gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-L/usr/local/db47/lib -L/usr/local/lib -L/usr/lib -bundle -undefined dynamic_lookup'
Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API Built under darwin Compiled at Jul 11 2008 08:24:53 %ENV: PERL_LWP_USE_HTTP_10="1" PERL_MM_OPT="INSTALLPRIVLIB=/usr/local/lib/perl5/privlib INSTALLSITELIB=/usr/local/lib/perl5/sitelib INSTALLVENDORLIB=/usr/local/lib/perl5/vendorlib INSTALLARCHLIB=/usr/local/lib/perl5/privlib/darwin-thread-multi-2level INSTALLSITEARCH=/usr/local/lib/perl5/sitelib/darwin-thread-multi-2level INSTALLVENDORARCH=/usr/local/lib/perl5/vendorlib/darwin-thread-multi-2level INSTALLMAN1DIR=/usr/local/share/man/man1 INSTALLMAN3DIR=/usr/local/share/man/man3 INSTALLSITEMAN1DIR=/usr/local/share/man/man1 INSTALLSITEMAN3DIR=/usr/local/share/man/man3 INSTALLVENDORMAN1DIR=/usr/local/share/man/man1 INSTALLVENDORMAN3DIR=/usr/local/share/man/man3 INST_MAN1DIR=/usr/local/share/man/man1 INST_MAN3DIR=/usr/local/share/man/man3" @INC: /usr/local/lib/perl5/privlib/darwin-thread-multi-2level /usr/local/lib/perl5/privlib /usr/local/lib/perl5/sitelib/darwin-thread-multi-2level /usr/local/lib/perl5/sitelib /usr/local/lib/perl5/vendorlib/darwin-thread-multi-2level /usr/local/lib/perl5/vendorlib /usr/local/lib/perl5/vendorlib .
haven't yet found any relevant posts/bugs ...
|
| | 2 answer | Add comment |
Wednesday, 30 July 2008
|
| [PATCH] Apache2::RequestIO::read bugfix + enhancements Torsten Foertsch 20:48:14 |
| | Hi,
it began with an innocent cycle to read the request body:
1 while( do{my $l=$r->read($content, 8000, $where); $where+=$l; $l} );
Surprisingly $content was an empty string while $where said that some data was read. I found that Apache2::RequestIO::read resets the passed buffer when end of file is read that means if modperl_request_read() returns 0.
Then I thought to remove these 2 XXX lines. And then what would happen in these situations:
$content=123456; $r->read($content, 100, 3);
or
"....."=~/(.*)/; $r->read($1, 100);
Please review.
Torsten
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org |
| | 2 answer | Add comment |
Tuesday, 29 July 2008
|
| [Fwd: [rt.cpan.org #12911] Apache::Test Makefile.PL enters infinite
loop when run unattended] Fred Moyer 09:53:06 |
| | I've been in a tuit deficit lately so I can't look at this soon.
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org |
| | 1 answer | Add comment |
Monday, 28 July 2008
|
| [Fwd: ApacheCon US 2008 committer registration discount now available!] Geoffrey Young 22:51:09 |
| | just in case some of our committers are not part of the committers@a.o alias, this is for you.
the full apachecon schedule can be viewed here:
http://us.apachecon.com/c/acus2008/schedule/grid
--Geoff
-------- Original Message -------- Subject: ApacheCon US 2008 committer registration discount now available! Date: Mon, 28 Jul 2008 13:11:19 -0400 From: ApacheCon US 2008 <curcuru@apache.org> Reply-To: concom@apache.org Organization: Apache Software Foundation To: committers@apache.org
Registration for ApacheCon US 2008 this 3-7 November in New Orleans is open, and the member/committer discount rate is ready. Committers receive a significant discount on attending the conference, and attend the Hackathon and BarCamp for free. Please feel free to blog about ApacheCon!
Use: asfcom as the Registration Code at the very bottom of the first registration screen.
New events this year -------------------- - Tuesday's BarCamp Apache, an unconference running simultaneously with the Hackathon (which runs the usual Mon-Tues) - Everyone is now invited to attend the Hackathon (there is a small charge for non-committers attending Monday) - The Apache OFBiz Symposium, which includes trainings and 2 days of session tracks, co-located with ApacheCon (ApacheCon attendees may attend OFBiz sessions and vice-versa) -- The OFBiz symposium schedule will be posted to the website soon. - ApacheCon banners and speaker buttons are available http://us.apachecon.com/c/acus2008/about/banners
And all our usual events: Fast Feather Track, Lightning Talks, BOFs, Expo, and plenty of friends.
Registration Reminders ---------------------- - Early bird committer discount rate goes up at the start of October, so register early! - Training registration (only) for committers is currently not setup; if you are planning to register for one of the trainings, please wait until next week! Committer discounts do not apply to trainings. - Don't forget to register for your hotel nights early, as the discounted room block will fill up, especially with people making travel reservations earlier these days. - The US presidential election is the Tuesday of ApacheCon, so if you're eligible to vote, remember to get your absentee ballot early!
Not attending ApacheCon? Have you checked out the committers directory from SVN and read the README? https://svn.apache.org/repos/private/committers
- Shane Curcuru & The ApacheCon US 2008 Team http://us.apachecon.com/ 3-7 November -- New Orleans, Louisiana http://apacheconus2008.crowdvine.com/
ASF-related questions: concom@apache.org ApacheCon-related questions: planners-2008-us@apachecon.com Fast Feather submissions: fastfeather-2008-us@apachecon.com
|
| | Add comment |
Thursday, 17 July 2008
|
| [Fwd: aurora issues] Philip M. Gollucci 22:03:23 |
| | --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org |
| | Add comment |
Wednesday, 16 July 2008
|
| AT Bug Torsten Foertsch 17:23:03 |
| | Hi,
on my Linux box sometimes (quite often) the httpd don't start during make test. The error_log doesn't say anything useful:
[Wed Jul 16 13:08:53 2008] [info] mod_unique_id: using ip addr 192.168.0.4 [Wed Jul 16 13:08:54 2008] [info] Init: Seeding PRNG with 0 bytes of entropy [Wed Jul 16 13:08:54 2008] [info] Init: Generating temporary RSA private keys (512/1024 bits) [Wed Jul 16 13:08:54 2008] [info] Init: Generating temporary DH parameters (512/1024 bits) [Wed Jul 16 13:08:54 2008] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] [Wed Jul 16 13:08:54 2008] [info] Init: Initializing (virtual) servers for SSL [Wed Jul 16 13:08:54 2008] [info] mod_ssl/2.2.9 compiled against Server: Apache/2.2.9, Library: OpenSSL/0.9.8g END in modperl_extra.pl, pid=7145
However, it should because httpd fails to start because an undefined value is passed to Apache::TestConfig::untaint_path and hence perl croaks. Why it sometimes do start I don't know.
To see the actual perl error I had to start httpd with:
strace -ff -ostrace -s 4096 /opt/apache22-prefork/sbin/httpd -d $PWD/t \ -f $PWD/t/conf/httpd.conf -D APACHE2 -D PERL_USEITHREADS -e debug
and look into the strace.PID file with the largest PID. There at the end I found the error message.
So I instrumented the code a bit:
... # return an untainted PATH sub untaint_path { my $path = shift; # return '' unless( defined $path ); unless( defined $path ) { use Carp; use Data::Dumper; Carp::confess(Data: umper->Dump([\%ENV], ['*ENV'])); } ($path) = ( $path =~ /(.*)/ ); ...
Now I found (manually formatted):
[Wed Jul 16 13:18:16 2008] [error] %ENV = ( 'TestDirective__env_srv1' => 'env_srv1', 'IFS' => undef, 'HARNESS_ACTIVE' => 1, 'APACHE_TEST_HTTP_09_OK' => 0, 'PERL_LWP_USE_HTTP_10' => 1, 'ENV' => undef, 'MOD_PERL_API_VERSION' => 2, 'TestDirective__env_srv2' => 'env_srv2', 'HARNESS_VERSION' => '2.64', 'CDPATH' => undef, 'BASH_ENV' => undef, 'MOD_PERL' => 'mod_perl/2.0.5-dev' ); at /home/r2/work/mp2/trunk/clean-trunk-prefork/Apache-Test/lib/Apache/TestConfig.pm line 1776 Apache::TestConfig::untaint_path(undef) called at /home/r2/work/mp2/trunk/clean-trunk-prefork/Apache-Test/lib/Apache/TestConfig.pm line 1102 Apache::TestConfig::open_cmd('Apache::TestConfig=HASH(0x137bff8)', '"/opt/apache22-prefork/sbin/httpd" -l') called at /home/r2/work/mp2/trunk/clean-trunk-prefork/Apache-Test/lib/Apache/TestConfigParse.pm line 436 Apache::TestConfig::get_httpd_static_modules('Apache::TestConfig=HASH(0x137bff8)') called at /home/r2/work/mp2/trunk/clean-trunk-prefork/Apache-Test/lib/Apache/TestConfigParse.pm line 361 Apache::TestConfig::inherit_config('Apache::TestConfig=HASH(0x137bff8)') called at /home/r2/work/mp2/trunk/clean-trunk-prefork/Apache-Test/lib/Apache/TestConfig.pm line 417 Apache::TestConfig::httpd_config('Apache::TestConfig=HASH(0x137bff8)') called at /home/r2/work/mp2/trunk/clean-trunk-prefork/Apache-Test/lib/Apache/Test.pm line 110 Apache::Test::config() called at /home/r2/work/mp2/trunk/clean-trunk-prefork/Apache-Test/lib/Apache/Test.pm line 121 Apache::Test::vars('documentroot') called at /home/r2/work/mp2/trunk/clean-trunk-prefork/t/conf/modperl_extra.pl line 129 main::test_hooks_startup() called at /home/r2/work/mp2/trunk/clean-trunk-prefork/t/conf/modperl_extra.pl line 42 require conf/modperl_extra.pl called at /home/r2/work/mp2/trunk/clean-trunk-prefork/t/conf/modperl_startup.pl line 18 eval {...} called at /home/r2/work/mp2/trunk/clean-trunk-prefork/t/conf/modperl_startup.pl line 19 main::BEGIN() called at /home/r2/work/mp2/trunk/clean-trunk-prefork/t/conf/modperl_extra.pl line 0 eval {...} called at /home/r2/work/mp2/trunk/clean-trunk-prefork/t/conf/modperl_extra.pl line 0 require /home/r2/work/mp2/trunk/clean-trunk-prefork/t/conf/modperl_startup.pl called at (eval 2) line 1 eval 'require qCompilation failed in require at /home/r2/work/mp2/trunk/clean-trunk-prefork/t/conf/modperl_startup.pl line 18. BEGIN failed--compilation aborted at /home/r2/work/mp2/trunk/clean-trunk-prefork/t/conf/modperl_startup.pl line 36. Compilation failed in require at (eval 2) line 1. [Wed Jul 16 13:18:16 2008] [error] Can't load Perl file: /home/r2/work/mp2/trunk/clean-trunk-prefork/t/conf/modperl_startup.pl for server localhost:8529, exiting...
Now, AT experts are needed to mull over:
1) why don't the error message show up in the error_log 2) is the enclosed patch a sufficient cure or does it rather hide a real problem (why is $ENV{PATH} undef in the first place)
The strace output for that process starts with these lines:
setsid() = 7719 close(0) = 0 open("/dev/null", O_RDONLY) = 0 close(1) = 0 open("/dev/null", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 1 close(2) = 0 open("/dev/null", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 2 stat("/opt/apache22-prefork/bin/suexec", 0x7fffb935fda0) = -1 ENOENT (No such file or directory)
So the first question is answered. However I don't know if it is wise to redirect STDERR to /dev/null. The string "error_log" doesn't appear in combination with an open syscall in that trace.
Torsten
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org |
| | 3 answer | Add comment |
|
| [RFC] Basic LoadFile support for Apache::Test Torsten Foertsch 01:05:54 |
| | Hi,
I don't know much about Apache::Test guts. Hence I ask for review before committing this patch.
It treats LoadFile directives similar to LoadModule. One can skip them by adding the name as specified in the httpd.conf to the skip list (not tested).
LoadFile directives are written at the very top of the generated httpd.conf.
It works at least for mod_proxy_html.
Torsten
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org |
| | 2 answer | Add comment |
Tuesday, 15 July 2008
|
| Apache::DBI 1.07 requires global $r Fred Moyer 01:50:22 |
| | Just ran into this issue with Apache::DBI 1.07:
[Sun Jul 13 14:16:02 2008] [error] Global $r object is not available. Set: PerlOptions +GlobalRequest in httpd.conf at /home/phred/dev/perl/lib/site_perl/5.8.8/Apache/DBI.pm line 144.
Traced it from a bug report to:
http://rt.cpan.org/Public/Bug/Display.html?id=36346
and then
http://rt.cpan.org/Public/Bug/Display.html?id=29209
I see a couple issues with the patch that caused this, but I'm not sure what problem the patch was trying to solve.
I can offer up some tuits to release 1.08 and roll that patch back. I'm not sure how many users are using global $r with mod_perl, but I would guess that the global request is a bigger issue than the problem which the patch was supposed to solve.
|
| | 3 answer | Add comment |
Sunday, 13 July 2008
|
| Bus Error with mod_perl 2.04 David E. Wheeler 10:27:24 |
| | Howdy,
I can get Apache to crash with a Bus Error with this httpd.conf:
LoadModule perl_module modules/mod_perl.so ServerName localhost ServerRoot /usr/local/apache2 PidFile logs/httpd.pid Listen 80 User daemon Group daemon StartServers 2 ErrorLog logs/error_log CustomLog logs/access_log combined TypesConfig conf/mime.types PerlModule mod_perl2 PerlPassEnv PERL5LIB PerlModule MyConfig
This is MyConfig.pm:
package MyConfig;
require Apache2::ServerUtil; my $s = Apache2::ServerUtil->server; $s->add_config([ 'NameVirtualHost *:80', '<VirtualHost *:80>', ' DocumentRoot /usr/local/apache2/htdocs', '</VirtualHost>', ]);
1;
If I comment out the <VirtualHost> section, it works. So there's something about <VirtualHost> sections that add_config doesn't seem to like. I've attached the Crash file created by Mac OS X. I'm using mod_perl 2.04 as a DSO with Apache 2.2.8 and Perl 5.10. Holler if you need more details on my configuration.
Thanks,
David
Process: httpd [67450] Path: /usr/local/apache2/bin/httpd Identifier: httpd Version: ??? (???) Code Type: X86 (Native) Parent Process: sh [67449]
Date/Time: 2008-04-22 12:46:14.202 -0700 OS Version: Mac OS X 10.5.2 (9C7010) Report Version: 6
Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000 Crashed Thread: 0
Thread 0 Crashed: 0 httpd 0x0002f43b open_multi_logs + 46 1 httpd 0x0002f7be init_config_log + 112 2 httpd 0x00002b88 ap_run_open_logs + 106 3 httpd 0x0000a701 main + 2438 4 httpd 0x000023ee start + 54
Thread 0 crashed with X86 Thread State (32-bit): eax: 0x00000000 ebx: 0x0002f419 ecx: 0x00842000 edx: 0x00853790 edi: 0x00000000 esi: 0x00000000 ebp: 0xbffff818 esp: 0xbffff7d0 ss: 0x0000001f efl: 0x00010206 eip: 0x0002f43b cs: 0x00000017 ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037 cr2: 0x00000000
Binary Images: 0x1000 - 0x69fff +httpd ??? (???) /usr/local/apache2/bin/httpd 0x8d000 - 0x9aff3 libaprutil-1.0.dylib ??? (???) <931e8ac4ce826f08f2abffcac57a63b3> /usr/lib/libaprutil-1.0.dylib 0xa3000 - 0xc1fe3 libexpat.1.dylib ??? (???) <eff8a63a23a7d07af62b36fdb329e393> /usr/lib/libexpat.1.dylib 0xc9000 - 0xdefef libapr-1.0.dylib ??? (???) <34917fe927e85ef7f60ec1303338e9af> /usr/lib/libapr-1.0.dylib 0xec000 - 0xeefff libutil.dylib ??? (???) <5ac8a5517aae408d0fdb6da13a2faf89> /usr/lib/libutil.dylib 0xf3000 - 0xf5ff7 +ServerUtil.bundle ??? (???) /usr/local/lib/perl5/site_perl/5.10.0/darwin-2level/auto/Apache2/ServerUtil/ServerUtil.bundle 0x200000 - 0x220fff +mod_perl.so ??? (???) /usr/local/apache2/modules/mod_perl.so 0x22c000 - 0x357feb +libperl.dylib ??? (???) <4e9bb84c90f0608918e2be04525bc49a> /usr/local/lib/perl5/5.10.0/darwin-2level/CORE/libperl.dylib 0x8fe00000 - 0x8fe2da53 dyld 96.2 (???) <7af47d3b00b2268947563c7fa8c59a07> /usr/lib/dyld 0x9244f000 - 0x92456fe9 libgcc_s.1.dylib ??? (???) <a9ab135a5f81f6e345527df87f51bfc9> /usr/lib/libgcc_s.1.dylib 0x92bce000 - 0x92bd2fff libmathCommon.A.dylib ??? (???) /usr/lib/system/libmathCommon.A.dylib 0x93004000 - 0x930f8ff4 libiconv.2.dylib ??? (???) <c508c60fafca17824c0017b2e4369802> /usr/lib/libiconv.2.dylib 0x9542f000 - 0x954b6ff7 libsqlite3.0.dylib ??? (???) <6978bbcca4277d6ae9f042beff643f7d> /usr/lib/libsqlite3.0.dylib 0x96c97000 - 0x96df6ff3 libSystem.B.dylib ??? (???) <4899376234e55593b22fc370935f8cdf> /usr/lib/libSystem.B.dylib 0xffff0000 - 0xffff1780 libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org |
| | 14 answers | Add comment |
Friday, 11 July 2008
|
| [Fwd: [rt.cpan.org #37592]] Geoffrey Young 08:21:25 |
| |
-------- Original Message -------- Subject: [rt.cpan.org #37592] Date: Thu, 10 Jul 2008 12:15:12 -0400 From: Doug via RT <bug-mod_perl@rt.cpan.org> Reply-To: bug-mod_perl@rt.cpan.org To: undisclosed-recipients:; References: <RT-Ticket-37592@rt.cpan.org>
Thu Jul 10 12:15:09 2008: Request 37592 was acted upon. Transaction: Ticket created by dougbitcard Queue: mod_perl Subject: (No subject given) Broken in: 2.0.2 Severity: Normal Owner: Nobody Requestors: dougbitcard@claar.org Status: new Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=37592 >
APR::Date::parse_rfc does not accept a date of the form:
Wed, 14 Nov 2007 17:03 -0800
(Note that there are no seconds on the time)
This is RFC822 compliant: hour = 2DIGIT ":" 2DIGIT [":" 2DIGIT]
And it is RFC2822 compliant: time-of-day = hour ":" minute [ ":" second ]
Apparently, APR::Date will work with a date specification that does not include seconds, but only if the year is only 2 digits.
My report is based on observed behavior in 2.0.2, but also on the latest documentation. This is on a linux FC6 system if that matters.
|
| | 1 answer | Add comment |
Monday, 30 June 2008
|
| silence unused warnings Torsten Foertsch 21:11:54 |
| | Hi,
this patch silence a few warnings about unused variables and unused return codes. It is against the threading branch but is applyable with offsets to trunk. Is it OK to apply it?
Torsten
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org |
| | 3 answer | Add comment |
|
| Apache::Test problem Torsten Foertsch 21:05:46 |
| | Hi,
I have mod_proxy_html in my httpd.conf. This requires an additional LoadFile directive to load libxml prior to LoadModule. Unfortunately the httpd.conf generated by the test framework includes the "LoadModule mod_proxy_html" but omits the "LoadFile libxml.so".
I can solve this problem by adding mod_proxy_html to the skip list in TEST.PL:
Apache::TestConfig::autoconfig_skip_module_add('mod_proxy_html.c');
But I cannot know all modules that need special LoadFiles that a user of my perl module may load.
How is this situation resolved best?
Torsten
|
| | 1 answer | Add comment |
|
| Re: svn commit: r672738 - /perl/modperl/branches/threading/Makefile.PL Philippe M. Chiasson 20:41:32 |
| | torsten@apache.org wrote:
Author: torsten Date: Mon Jun 30 03:34:11 2008 New Revision: 672738 Log: allow for other suffixes than "-dev" or "-rc\d+" in our VERSION_STRING Good idea, should make it to the trunk/ as well, IMO.
Modified: ============================================================================== --- perl/modperl/branch es/threading/Makefile.PL (original) +++ perl/modperl/branch es/threading/Makefile.PL Mon Jun 30 03:34:11 2008 @@ -480,7 +480,7 @@ open my $fh, 'Changes'; while (<$fh>) { - if (/^=item.*-(dev|rc\d+)/) { + if (/^=item\s+\Q$VERSION\E-(\w+)/) { $VERSION .= "-$1"; last; } -- Philippe M. Chiasson GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5 http://gozer.ectoplasm.org/ m/gozer\@(apache|cpan|ectoplasm)\.org/
|
| | Add comment |
|
| Question about branching Torsten Foertsch 20:37:27 |
| | Hi,
this is an excerpt of our BRANCHING document:
####################################### ### make a new branch ### ####################################### we will create a branch mybranch branch: -m "creating mybranch" check out: change externals to point to the new A-T branch (if one was done) svn propedit svn:externals . The threading branch doesn't have a new A-T or docs. Hence, A-T and docs point to the current trunk. I don't want to commit something by chance to these trees. Can I have SVN automatically forbid such changes?
initialize svnmerge tracking in the branch (if you plan to pull trunk/ changes into the branch) Is this thought to be one big commit? Or should it rather be a set of smaller changes?
mybranch/ $> svnmerge init When am I supposed to do this before I begin to integrate trunk changes or after all changes are committed to my branch?
property 'svnmerge-integrated' set on '.' mybranch/ $> svn ci -F svnmerge-commit-message.txt Is this done as a separate commit or is it the one big commit or the last one?
Sorry for being so stupid, Torsten
|
| | 2 answer | Add comment |
Saturday, 28 June 2008
|
| possible bug in Apache2::XSLoader and APR::XSLoader Torsten Foertsch 13:50:55 |
| | Hi,
what is the purpose of Apache2::XSLoader and APR::XSLoader?
Both modules contain a load() function that reads:
sub load { return unless BOOTSTRAP; XSLoader::load(@_); }
I believe this is wrong. The XSLoader::load function contains this code:
my @modparts = split(/::/,$module); my $modfname = $modparts[-1];
my $modpname = join('/',@modparts); my $modlibname = (caller())[1]; my $c = @modparts; $modlibname =~ s,[\\/][^\\/]+$,, while $c--; # Q&D basename my $file = "$modlibname/auto/$modpname/$modfname.$dl_dlext";
You see $modlibname is built from the caller's filename. If APR::XSLoader is used this caller is /path/to/APR/XSLoader.pm and not as expected by the code the filename of the caller of APR::XSLoader::load.
As a result XSLoader tries to load the shared lib from the wrong location.
A simple change makes it work as expected:
goto &XSLoader::load;
This way instead of pushing a new frame on the call stack the current (APR::XSLoader::load) frame is replaced by XSLoader::load. Hence caller() sees the original caller.
Torsten
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org |
| | 2 answer | Add comment |
|
| [Fwd: CPAN Upload: P/PH/PHRED/Apache-Bootstrap-0.04_01.tar.gz] Fred Moyer 08:28:06 |
| | More hacking on this today.
Summary of changes from 0.03 to 0.04_01:
- more tests, coverage for success conditions - now we actually fail at compile time if base mod_perl is not present
I think it's making headway and will be fairly useful at some point, but I'd like your input.
The goal here is to have a module that makes it easy to bootstrap and maintain dual life (mp1+mp2) Apache::*/Apache2::* modules.
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org |
| | Add comment |
|
|