Re: [ANNOUNCE] HTTP::GHTTP 1.06
On Thu, Jan 18, 2001 at 05:50:40PM +, Matt Sergeant wrote: Due to a number of notes about how hard it was to install this beast, I've really worked hard this time to get all of the wrinkles out of the installer and I think its pretty good now. This release (actually 1.05, but I didn't announce that here) adds get_headers() to get a list of the returned headers from the request in the order they came in. I believe some people here asked for that. It only works with libghttp 1.08 and higher though (but the installer magically checks that, so don't worry, it still works for older libghttp's). I have Solaris 2.7, gcc 2.95.2. I've downloaded libghttp-1.0.8, run ./configure --prefix=/export/packages/libghttp-1.0.8 gmake gmake install The I run $ perl Makefile.PL LIBS='-L/export/packages/libghttp-1.0.8/lib -lghttp' INC='-I/export/packages/libghttp-1.0.8/include' and got running gnome-config... ok checking for main() in -lghttp... no libghttp not found Try setting LIBS and INC values on the command line Or get libghttp from ftp://ftp.gnome.org/pub/GNOME/stable/sources/libghttp/ Then I went to Makefile.PL and put "return 1;" as the first line of have_library function. Then I repeated the steps just fine $ perl Makefile.PL LIBS='-L/export/packages/libghttp-1.0.8/lib -lghttp' INC='-I/export/packages/libghttp-1.0.8/include' running gnome-config... ok Checking if your kit is complete... Looks good Writing Makefile for HTTP::GHTTP $ gmake mkdir blib mkdir blib/lib [...] /usr/bin/perl -I/export/packages/perl-5.005_03/lib/5.00503/sun4-solaris -I/export/packages/perl-5.005_03/lib/5.00503 /export/packages/perl-5.005_03/lib/5.00503/ExtUtils/xsubpp -typemap /export/packages/perl-5.005_03/lib/5.00503/ExtUtils/typemap -typemap typemap GHTTP.xs xstmp.c mv xstmp.c GHTTP.c Please specify prototyping behavior for GHTTP.xs (see perlxs manual) gcc -c -I/export/packages/libghttp-1.0.8/include -O-DVERSION=\"1.06\" -DXS_VERSION=\"1.06\" -fPIC -I/export/packages/perl-5.005_03/lib/5.00503/sun4-solaris/CORE GHTTP.c Running Mkbootstrap for HTTP::GHTTP () chmod 644 GHTTP.bs LD_RUN_PATH="/export/packages/libghttp-1.0.8/lib" gcc -o blib/arch/auto/HTTP/GHTTP/GHTTP.so -R/export/packages/libghttp-1.0.8/lib -G GHTTP.o -L/export/packages/libghttp-1.0.8/lib -lghttp chmod 755 blib/arch/auto/HTTP/GHTTP/GHTTP.so cp GHTTP.bs blib/arch/auto/HTTP/GHTTP/GHTTP.bs chmod 644 blib/arch/auto/HTTP/GHTTP/GHTTP.bs mkdir blib/script cp scripts/g-request blib/script/g-request /usr/bin/perl -I/export/packages/perl-5.005_03/lib/5.00503/sun4-solaris -I/export/packages/perl-5.005_03/lib/5.00503 -MExtUtils::MakeMaker -e "MY-fixin(shift)" blib/script/g-request Manifying blib/man3/HTTP::GHTTP.3 $ gmake test PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/export/packages/perl-5.005_03/lib/5.00503/sun4-solaris -I/export/packages/perl-5.005_03/lib/5.00503 -e 'use Test::Harness qw(runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/simpleok All tests successful. Files=1, Tests=3, 0 wallclock secs ( 0.16 cusr + 0.04 csys = 0.20 CPU) So it looks like the have_library still isn't happy about something. In the /export/packages/libghttp-1.0.8/lib I have -rw-r--r-- 1 adelton student 294 Jan 21 17:25 ghttpConf.sh -rw-r--r-- 1 adelton student 188336 Jan 21 17:25 libghttp.a -rwxr-xr-x 1 adelton student 669 Jan 21 17:25 libghttp.la lrwxrwxrwx 1 adelton student 17 Jan 21 17:25 libghttp.so - libghttp.so.1.0.0 lrwxrwxrwx 1 adelton student 17 Jan 21 17:25 libghttp.so.1 - libghttp.so.1.0.0 -rwxr-xr-x 1 adelton student 185504 Jan 21 17:25 libghttp.so.1.0.0 Yours, -- Honza Pazdziora | [EMAIL PROTECTED] | http://www.fi.muni.cz/~adelton/ .project: Perl, mod_perl, DBI, Oracle, auth. WWW servers, XML/XSL, ... Petition for a Software Patent Free Europe http://petition.eurolinux.org
Apache::ASP [error] need AuthName
Hello, I'm using apache-1.3.12 at RedHat 7.0 box. Sometime I've installed Apache::ASP 2.07 and as result got strange error: [Sun Jan 21 22:28:01 2001] [error] [client 127.0.0.1] need AuthName: /index.shtml There is some part from config: Files"*.shtml$"SetHandler perl-scriptPerlHandler Apache::ASP PerlSetVar Global /var/tmp /Files This error appear only when I try to fetch any *.shtml file. Everything works fine, but I don't understand this strange error message... Can anybody helps me? Yours sincerely,PavelPavel P. Zabortsev e-mail: [EMAIL PROTECTED]Software engineer, Postmaster voice: 927-9523, 26-23 (corp)CDO UPS Russia fax: 220-6542Moscow, Russia ICQ: 133354
AUTH_REQUIRED with MSIE
Hello, I have a problem with the PerlAuthenHandler and MSIE. If the user doesn't send credentials i return with : return AUTH_REQUIRED; Netscape's Navigator opens the window for entering username and passwort. The MSIE always gives the "Authorization Required" Message. Can anybody tell me, how i can get MSIE to open the Mask like Navigator? I don't know if it is a problem in my module or in the preferences of MSIE. Thanks Thomas Plathe
Re: AUTH_REQUIRED with MSIE
At 15:33 19/01/2001 +0100, Thomas Plathe wrote: I have a problem with the PerlAuthenHandler and MSIE. If the user doesn't send credentials i return with : return AUTH_REQUIRED; Netscape's Navigator opens the window for entering username and passwort. The MSIE always gives the "Authorization Required" Message. Can anybody tell me, how i can get MSIE to open the Mask like Navigator? I don't know if it is a problem in my module or in the preferences of MSIE. I saw that once, a certain amount of time ago. I don't remeber exactly but I think the problem was that I had forgotten to set a realm for the auth and that simply setting it fixed the problem. -- robin b. "Science is like sex: sometimes something useful comes out, but that is not the reason we are doing it." -- R. Feynman
Re: Apache::ASP [error] need AuthName
"Pavel P. Zabortsev" wrote: Hello, I'm using apache-1.3.12 at RedHat 7.0 box. Sometime I've installed Apache::ASP 2.07 and as result got strange error: [Sun Jan 21 22:28:01 2001] [error] [client 127.0.0.1] need AuthName: /index.shtml I'll have this bug fixed in Apache::ASP 2.09. Till then, follow Andrew's advice. -- Josh _ Joshua Chamas Chamas Enterprises Inc. NodeWorks free web link monitoring Huntington Beach, CA USA http://www.nodeworks.com1-714-625-4051
test fails in modules/httpdconf and modules/psections
Hello, I'm having trouble succesfully testing mod_perl in HP-UX 11 with Apache 1.3.14. Tried both Perl 5.6.0 and 5.005_03. In modules/httpdconf the script waits forever. That is until I hit enter twice that I get: FAILED before any test output arrived In modules/psections the same thing happens with the output: FAILED test 1 Failed 1/2 tests, 50.00% okay All remaining test execute successfully. Following is the output of error_log Server is not starting !? Subroutine main::pid redefined at /export/samba/mod_perl-1.24_01/t//docs/startup.pl line 103. Subroutine main::access redefined at /export/samba/mod_perl-1.24_01/t//docs/startup.pl line 104. Subroutine Outside::code redefined at /export/samba/mod_perl-1.24_01/t//docs/startup.pl line 108. Subroutine PerlTransHandler::handler redefined at /export/samba/mod_perl-1.24_01/t//docs/startup.pl line 114. Subroutine MyClass::method redefined at /export/samba/mod_perl-1.24_01/t//docs/startup.pl line 121. Subroutine BaseClass::handler redefined at /export/samba/mod_perl-1.24_01/t//docs/startup.pl line 127. Subroutine My::child_init redefined at /export/samba/mod_perl-1.24_01/t//docs/startup.pl line 145. Subroutine My::child_exit redefined at /export/samba/mod_perl-1.24_01/t//docs/startup.pl line 155. Subroutine My::restart redefined at /export/samba/mod_perl-1.24_01/t//docs/startup.pl line 159. Subroutine Apache::AuthenTest::handler redefined at /export/samba/mod_perl-1.24_01/t//docs/startup.pl line 167. Subroutine My::DirIndex::handler redefined at /export/samba/mod_perl-1.24_01/t//docs/startup.pl line 189. Subroutine My::ProxyTest::handler redefined at /export/samba/mod_perl-1.24_01/t//docs/startup.pl line 207. Subroutine handler redefined at /export/samba/mod_perl-1.24_01/t//docs/startup.pl line 241. Subroutine new redefined at /export/samba/mod_perl-1.24_01/t//docs/startup.pl line 263. Subroutine DESTROY redefined at /export/samba/mod_perl-1.24_01/t//docs/startup.pl line 265. [notice] Destruction-DESTROY called for $global_object Subroutine handler redefined at /export/samba/mod_perl-1.24_01/t//docs/stacked.pl line 6. Subroutine one redefined at /export/samba/mod_perl-1.24_01/t//docs/stacked.pl line 14. Subroutine two redefined at /export/samba/mod_perl-1.24_01/t//docs/stacked.pl line 25. Subroutine three redefined at /export/samba/mod_perl-1.24_01/t//docs/stacked.pl line 31. Subroutine four redefined at /export/samba/mod_perl-1.24_01/t//docs/stacked.pl line 37. [Sun Jan 21 15:33:27 2001] [warn] pid file /export/samba/mod_perl-1.24_01/t/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? Constant subroutine XHTML_DTD redefined at /opt/perl5/lib/5.00503/constant.pm line 175. [notice] Destruction-DESTROY called for $global_object [Sun Jan 21 15:33:29 2001] [warn] [notice] child_init for process 10785, report any problems to [no address given] [Sun Jan 21 15:33:43 2001] [warn] [client 127.0.0.1] log __ANON__ OK Subroutine exit redefined at (eval 186) line 1 *** The following [error] is expected, no cause for alarm *** [Sun Jan 21 15:34:35 2001] [error] Missing right bracket at /export/samba/mod_perl-1.24_01/t/docs/badsyntax.pl line 9, at end of line syntax error at /export/samba/mod_perl-1.24_01/t/docs/badsyntax.pl line 9, at EOF *** The following [error] is expected, no cause for alarm *** [Sun Jan 21 15:34:35 2001] [error] Apache::Death at /dev/null line 0 *** The following [error] is expected, no cause for alarm *** [Sun Jan 21 15:34:35 2001] [error] Missing right bracket at /export/samba/mod_perl-1.24_01/t/docs/badsyntax.pl line 9, at end of line syntax error at /export/samba/mod_perl-1.24_01/t/docs/badsyntax.pl line 9, at EOF *** The following [error] is expected, no cause for alarm *** [Sun Jan 21 15:34:35 2001] [error] Apache::Death at /dev/null line 0 print on closed filehandle Apache::ROOT::perl::hooks_2epl::FH at /export/samba/mod_perl-1.24_01/t/net/perl/hooks.pl line 15, fh1b chunk 1. print on closed filehandle Apache::ROOT::perl::hooks_2epl::FH at /export/samba/mod_perl-1.24_01/t/net/perl/hooks.pl line 26, fh1b chunk 1. [Sun Jan 21 15:34:38 2001] [error] can't open /export/samba/mod_perl-1.24_01/t/docs/.htaccess at /export/samba/mod_perl-1.24_01/t/net/perl/hooks.pl line 51, fh1b chunk 1. [notice] child process 10785 terminating [notice] push'd PerlChildExitHandler called, pid=10785 [notice] push'd PerlChildExitHandler called, pid=10785 [notice] push'd PerlChildExitHandler called, pid=10785 [notice] END block called for startup.pl [notice] Destruction-DESTROY called for $global_object I understand that ideally I should get no errors, but how will this failures affect Apache's operation?? I'll apreciate your help. Thank you Mario
[ANNOUNCE] AxKit 1.2
I have uploaded AxKit to CPAN. Hopefully this time I have significantly improved the installation procedure, as I fear that is one of the things preventing people from trying/using AxKit. AxKit is a high performance XML Application Server based on mod_perl. Every bit of programming you do in an AxKit server is based around XML. This has the advantage of one set of techniques to learn, and aids rapid development (honest, it does - I put together take23.org in just a couple of days, and its all based on AxKit). Secondly, though perhaps more importantly, AxKit focuses on allowing you to separate content, presentation and logic, into clearly defined layers. More importantly, AxKit works. Even though it is new technology (I started writing AxKit last June), we have a few live sites, and many people interested in learning this new technology. You can find all the details you need to know about AxKit at http://axkit.org/ Changes since AxKit 1.0 are: (1.0 - 1.1 pre) - Uses iconv rather than Unicode::* modules to do character set conversions - Fix for AxMediaType/AxStyleName bug - Fix for compilation under mod_perl 1.24_01 - Fix for relative URI's and file:// sub requests - Minor stylesheet cache bug fixed - Updated Filter provider for Apache::Filter = 1.13 - Fix for filehandle leak - Fix for Virtual Host Stash bug. (1.1 pre - 1.2) - XPathScript can interpolate "{xpath}" in $t hash - reduced required modules list - Removed Sablotron from AxKit.pm due to some segfaults - Fixed segfaults in aborted conversions with iconv - Added AxResetProcessors - Improved Apache::Filter support - Much improved installer - Many XSP changes/fixes. Now uses XML::XPath DOM tree. - Memoize methods that call stat() in Cache and Providers - Many miscellaneous improvements Available on CPAN in the Apache modules directory, or at the axkit.org web site. I hope to have an introduction to AxKit on Take23 reasonably soon. -- Matt/ /||** Director and CTO ** //||** AxKit.com Ltd ** ** XML Application Serving ** // ||** http://axkit.org ** ** XSLT, XPathScript, XSP ** // \\| // ** Personal Web Site: http://sergeant.org/ ** \\// //\\ // \\
[JOB] for hire
hi folks. i've recently moved to melbourne, australia, and pretty soon now i'll be looking for consulting work. i've been working at critical path for the last 3+ years. i was lead developer on the cpth webmail product for the first year, after which i joined the core architecture team whose scope included the entire messaging platform and web application suite. for the last several months i've been an architect and developer for cpth's suite of integrated collaboration apps. i've been writing sophisticated mod_perl applications for 3 years. i'm familiar with internet messaging-related protocols such as http, imap, smtp, ldap, icap and webdav. i have moderate experience with database design and programming, altho i don't claim to be an expert in maintaining or tuning database server installations. i've built your typical two-tier web/db sites as well as large business applications. i've slung guns at small shops and written heavy documents in large process-oriented engineering dept. most importantly, i think, i've got several years of experience shipping many releases of a single product, from an initial release through two re-architectures, a complete user interface redesign, internationalization and localization to 20 languages. i'm currently porting the java servlet api and tomcat servlet engine to perl. if anybody wants to pay me for that, i'd love to hear your proposal :) otherwise, i'm interested in discussing consulting arrangements for any type of perl-based project. if you're in melbourne, or if you want to work out travel, on site work is fine. telecommuting is the standard, however.
Re: [JOB] for hire
er. still running pine on a server in california; the lag is intense and caused a brainfart. anyway, my resume can be found at http://www.maz.org/~bcm/resume, altho it's simply going to go into a bit more detail about what i discussed below. i'll probably be ready to swing into action within a month, so if you've got some projects on the horizon and i look like a good fit, drop me a line at [EMAIL PROTECTED] cheers! On Sun, 21 Jan 2001, brian moseley wrote: hi folks. i've recently moved to melbourne, australia, and pretty soon now i'll be looking for consulting work. i've been working at critical path for the last 3+ years. i was lead developer on the cpth webmail product for the first year, after which i joined the core architecture team whose scope included the entire messaging platform and web application suite. for the last several months i've been an architect and developer for cpth's suite of integrated collaboration apps. i've been writing sophisticated mod_perl applications for 3 years. i'm familiar with internet messaging-related protocols such as http, imap, smtp, ldap, icap and webdav. i have moderate experience with database design and programming, altho i don't claim to be an expert in maintaining or tuning database server installations. i've built your typical two-tier web/db sites as well as large business applications. i've slung guns at small shops and written heavy documents in large process-oriented engineering dept. most importantly, i think, i've got several years of experience shipping many releases of a single product, from an initial release through two re-architectures, a complete user interface redesign, internationalization and localization to 20 languages. i'm currently porting the java servlet api and tomcat servlet engine to perl. if anybody wants to pay me for that, i'd love to hear your proposal :) otherwise, i'm interested in discussing consulting arrangements for any type of perl-based project. if you're in melbourne, or if you want to work out travel, on site work is fine. telecommuting is the standard, however.
dir_config at startup: I know what doesn't work, so what does?
All: I want to specify things like MySQL login info, names of tables containing user login information. I'd like to do it by putting it all into a class variable at server startup, using my startup.pl: my $Account_Interface = $Exchange::MyAccount-init; Then inside Exchange::MyAccount::init, we have code like this: $config{DBI_DSN} = Apache-server-dir_config('DBI_DSN'); and then of course we have the corresponding PerlSetVar DBI_DSN "DBI:mysql:exchange_db" What I'm running into is that dir_config always returns undef, no matter what: - PerlSetVars inside or outside the Location tag - dir_config called at server startup or child startup I've used dir_config before, but only at the PerlHandler level. So what I'd like to know is: is there any way of picking up configuration info from the httpd-perl.conf at server startup? Picking all this stuff up with the first request isn't always the most desirable way of doing it, especially if processing the directives takes any appreciable amount of time. Putting config info into other files just spreads out what should be in a single place. Thanks, Christopher Everett
Re: dir_config at startup: I know what doesn't work, so what does?
"Christopher L. Everett" wrote: So what I'd like to know is: is there any way of picking up configuration info from the httpd-perl.conf at server startup? If you don't need to have different configurations for each virtual host or directory, you could just use globals. Perl $MyConfig::DBI_DSN = 'foobar'; /Perl - Perrin