ANNOUNCE: configure-apache.pl - A config program for Apache for MS Windows
SYNOPSIS shellperl configure-apache.pl The files patched are: D:\perl\lib\config.pm D:\perl\site\lib\ppm.xml D:\apache\conf\httpd.conf All of these instructions use D:\, rather than the default C:\, to more clearly indicate what needs to be done to install Perl and Apache on D:. VERSIONS MS Windows NT V 4 SP 6 ActivePerl V 5.6.1 Apache 1.3.20 mod_perl V 1.25 mod_ssl V 2.8.4-1.3.20 OpenSSL V 0.9.6a configure-apache.pl V 1.3.20 Full instructions are at http://savage.net.au/Perl/Html/configure-apache.html Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html
Re: Questions Concerning Large Web-Site
There is a tutorial here http://savage.net.au/Perl-tutorials.html#tut-1 on a Perl program which generates the source of a module, installs and tests it. Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html [snip] Is there a good tutorial or book on the subject of constructing Perl modules? I too have done some of this and would like to create actual [snip]
Re: SOAP, WSDL etc.
http://www.soaplite.com/ Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html
Re: Win32: Cannot load mod_perl.so into server
Josef I get exactly the same error, altho on d:. Rebooting does not fix it. Details here: http://savage.net.au/Perl/Html/configure-apache.html Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html - Original Message - From: Ender Josef [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 13, 2001 9:08 PM Subject: Win32: Cannot load mod_perl.so into server Maybe a hint for other users with the same problem (I spent nearly two hours): I installed ftp://theoryx5.uwinnipeg.ca/pub/other/perl-win32-bin-0.7.exe on NT 4.0 SP 6a. I used perl-win32-bin-0.6 from the same location before. I used the default.conf with the following additional line: LoadModule perl_module modules/mod_perl.so If I started apache from the command line, all was working properly. Also my existing CGI and Perl Registry scripts. But if I tried to start it as NT Service I got the following error in the event-log: ---snip--- 1. event entry: The Apache service named Apache.exe reported the following error: Syntax error on line 204 of c:/apache/conf/httpd.conf: before the error.log file could be opened. More information may be available in the error.log file. . 2. event entry: The Apache service named Apache.exe reported the following error: Cannot load c:/apache/modules/mod_perl.so into server: (127) The specified procedure could not be found: before the error.log file could be opened. More information may be available in the error.log file. . ---snip--- mod_perl.so was REALLY at this location. I tried also ServerRoot c:/apache in httpd.conf without success. I tried to run the NT Service with system account and with my domain account which was able to start apache from the command line. But all whiteout success. Solution: -- Reboot the system and all is working properly. Looks like the service didn't get the new path. Josi
Re: mod_perl install
Scott See below. Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html - Original Message - From: Purcell, Scott [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 8:12 AM Subject: mod_perl install Hello, I am trying a new install of mod_perl on my NT box here which is running apache. The last install I used Ron Savages NT binary distribution. And it I can't tell from this exactly which 'last install' you used! I understand your concerns though. If you go here http://savage.net.au/Perl/Html/configure-apache.html you'll have all the info you need to install the latest Apache V 1.3.20 and mod_perl V 1.25_01-dev.
Q: How to I secure /cgi-bin?
Test env: Apache/1.3.20 (Win32) mod_perl/1.25_01-dev mod_ssl/2.8.4 OpenSSL/0.9.6a I just tried this to stop myself running any scripts from /cgi-bin, but it does not stop me. Yeah, yeah, I restart the server after every patch to httpd.conf. Directory /cgi-bin Options Indexes FollowSymLinks MultiViews Order allow,deny Deny from all Allow from 127.0.0.1 /Directory My aim of course is to use Order deny,allow to stop all others! I tried Directory /cgi-bin and Allow from 128.0.0.1 just to see what would happen, but that did not stop me either. Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html
Re: The latest templating system: PSP in DDJ
FWIW, Greg McCarroll is writing an article for perl.com on a short comparison of templating systems, and of course we'll have a talk on the subject at TPC by Perrin. Ahhh, 'short'. But that's another problem. I realize such articles are hard work, but (especially for those of us struggling to choose a templating system) is anybody collecting URIs of articles which give practical examples of using such systems? I'm thinking of one-template-per-article style, so we can actually learn how to use them, rather than a list of features. Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html
Help: Image::Magick and Apache and mod_perl/ 'v' cgi-bin/
Folks I'm using: Apache/1.3.20 (Win32) mod_perl/1.25_01-dev mod_ssl/2.8.4 OpenSSL/0.9.6a running... If I run the script (below) in d:/apache/mod_perl/ it works. If I run it in d:/apache/cgi-bin I get this error: Read(gradient:#ff-#ff) Warning 330: Unable to open file (#ff-#ff) [No such file or directory] However, if I uncomment lines 17 and 18 and run it in d:/apache/cgi-bin, it works, even without lines 20 .. 22. Note: Removing PATH from line 15 has no effect on this problem. Note: Setting $ENV{'PATH'} in the code to be exactly the same as it is for any non-CGI script has no effect on this problem. Any ideas? -8- #!/usr/bin/perl # # Name: # im-demo.cgi. use strict; use warnings; use CGI qw/nobr/; use CGI::Carp qw/fatalsToBrowser/; use Image::Magick; # -- delete @ENV{'BASH_ENV', 'CDPATH', 'ENV', 'IFS', 'PATH'}; # Zap for safety. #my($dir_name) = 'd:/ImageMagick/VisualMagick/bin'; #chdir($dir_name) || die(Can't chdir($dir_name): $!); $ENV{'MAGICK_DELEGATE_PATH'} = 'D:\\ImageMagick\\VisualMagick\\bin'; $ENV{'MAGICK_HOME'}= 'D:\\ImageMagick\\VisualMagick\\bin'; $ENV{'MAGICK_MODULE_PATH'} = 'D:\\ImageMagick\\VisualMagick\\bin'; my($output_file_name_a) = 'hax-gradient-1a.png'; my($q) = CGI - new(); my($title)= 'Test'; my($html)= []; my($image)= Image::Magick - new; my($result)= $image - Set(size = '30x180') || 'OK'; push(@$html, $q - th('Set') . $q - td($result) ); $result = $image-Read(gradient:#ff-#ff) || 'OK'; push(@$html, $q - th('Read(gradient:#ff-#ff)') . $q - td($result) ); $result = $image-Write(png:d:/apache/htdocs/$output_file_name_a) || 'OK'; push(@$html, $q - th(Write($output_file_name_a)) . $q - td($result) ); push(@$html, $q - th('Image') . $q - td($q - img({name = 'imagedemo1', src = /$output_file_name_a})) ); push(@$html, $q - th('$ENV{MAGICK_DELEGATE_PATH}') . $q - td($ENV{'MAGICK_DELEGATE_PATH'}) ); push(@$html, $q - th('$ENV{MAGICK_HOME}') . $q - td($ENV{'MAGICK_HOME'}) ); push(@$html, $q - th('$ENV{MAGICK_MODULE_PATH}') . $q - td($ENV{'MAGICK_MODULE_PATH'}) ); print $q - header(), $q - start_html(), $q - center($q - h1($title) ), $q - table ( {align = 'center', bgColor = '#80c0ff'}, $q - Tr($html) ), $q - end_html(); -8- Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html
Re: Can't solve the CGI/pm Can't call register_cleanup problem
Fran See below. Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html use CGI qw(-compile :all); There's a typo in the book. Chop '-compile'.
Re: Error decrypting in message using gpg in modperl script
Chris See below. Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html $PGP = /usr/bin/gpg --no-secmem-warning -dar; Ahhh. Does the web server, running as 'nobody' (perhaps) have permission to run 'gpg'?
Re: Help w/ install [ActivePerl,W2K Server,Apache 1.3.20]
[Mailed to list and to individual] Brice I think the easiest is to install a pre-compiled Apache+mod_perl+mod_*. Start here: http://savage.net.au/Perl.html#Configuring-Apache Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html
Re: Apache - mod_perl - Windows
Folks See below. Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html :: My question is: :: 1. is there a way to get a precompiled windows version running (I don't :: want to reset my Apache server to some ancient version!) I have set up several Windows / Apache / mod_perl servers without any problems whatsoever. I would recommend the following (in order): Alternately: http://savage.net.au/Perl.html#Configuring-Apache
Fw: [OT] Re: ASP.NET Linux equivalent?
Vsevolod See below. Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html - Original Message - From: Vsevolod Ilyushchenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 04, 2001 10:55 AM Subject: ASP.NET Linux equivalent? Hi, Is anyone aware of a Linux product equivalent to ASP.NET from MS? Its most attractive feature is the GUI construction of Web forms and the automatic connection of their fields to a database. Since I am getting sick and tired We're all sick and tired of it! I have written such a system. It is pure Perl, and is based on MySQL. But, no, it isn't mod_perl enabled. I just use it privately at the moment, for a group of swimming clubs, and for a wine db. I am undecided about releasing it, and if so, how to do so.
Re: Spawn Child Pro
Anand See below. Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html - Original Message - From: Anand R [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 13, 2001 3:05 PM Subject: Spawn Child Pro couldn't spawn child process: e:/apache/cgi-bin/weblink/simple/find.pl This is the error I am getting when I try it out with CGI-BIN. Can anyone try helping me out of this spawn child,. Most likely the first line of your script does not point to perl.exe. Eg: #!/usr/bin/perl (Yes, under Windows. I copy perl.exe to d:\usr\bin) or #!/perl/bin/perl or #!\perl\bin\perl or even with d: in these. I run Apache under WinNT.
Re: PerlEditor - Freeware or Trialware
Which OS? UltraEdit is superb. I've tried all the others suggested. UltraEdit has, among much else, built-in FTP for getting remote files, editing them, and returning them to from whence they came. Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html - Original Message - From: Anand Ratnasabapathy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 25, 2001 6:07 PM Subject: PerlEditor - Freeware or Trialware Can any one help me with a Nice Editor for working on Perl-cgi, Must be trial or freeware for me to test. Any Takers, Regds, Anand R DSM Soft I am back to the ring
Re: Win32 modperl-2 binary
Folks Here's hoping I have not overlooked the obvious... What follows is a report on trying to use ftp://theoryx5.uwinnipeg.ca/pub/other/Apache2.tar.gz -8- Environment === WinNT 4 Sp 6a File: D:\Apache2\manual\platform\windows.html = Comments: 1) The reference to access.conf is presumably obsolete 2) The section Running Apache for Windows as a Service does not say whether or not the service needs to be started after having been installed. I think that would help beginners File: D:\Apache2\blib\lib\Apache2.pm Comments: 1) This file contains the trivial bug in that the dir is specified twice Command: apache -V output contains: -D APACHE_MPM_DIR=server/mpm/winnt and this dir does not exist. Is this important? I assume not Starting I can't get Apache to start with options. I have not edited any files whatsoever. Here's a cut-and-paste from a DOS window: D:\APACHE2bin\Apache -k start [Thu Jan 03 11:33:45 2002] [error] (22502)The system cannot find the file specif ied. : No installed service named Apache2. D:\APACHE2bin\Apache -k install Using D:\Apache2/blib Installing the Apache2 service The Apache2 service is successfully installed. D:\APACHE2bin\Apache -k start Using D:\Apache2/blib Starting the Apache2 service [Thu Jan 03 11:33:55 2002] [crit] (22703)The system could not find the environme nt option that was entered. : Apache2: Failed to start the service process. D:\APACHE2bin\Apache Using D:\Apache2/blib Using D:\Apache2/blib D:\APACHE2bin\Apache -k uninstall Removing the Apache2 service The Apache2 service has been removed successfully. Comments: 1) Note the 2 spaces after 'environment' in the error message after bin\Apache -k start. Is something meant to appear there? 2) It's not at all obvious that Apache only starts with no command line options 3) If I try this in another DOS window while Apache is running I get a message I find hard to believe: D:\APACHE2bin\apache -k stop The Apache2 service is not started. 4) Only 1 Using statement is necessary Scripts === I can get http://127.0.0.1/ to work. I can get hello to work with http://127.0.0.1/hello. I can get d:/apache/cgi-bin/test.bat to work with http://127.0.0.1/cgi-bin/test-cgi.bat. But, if I patch the she-bang line of d:/apache/cgi-bin/printenv.pl and then try http://127.0.0.1/cgi-bin/printenv.pl, I get: Server error! Error message: couldn't create child process: 22502: D:/Apache2/cgi-bin/printenv.pl If you think this is a server error, please contact the webmaster Error 500 127.0.0.1 03/01/02 12:15:29 Apache/2.0.30-dev (Win32) mod_perl/1.99_01-dev Perl/v5.6.1 The log says (2 msgs for every try): [Thu Jan 03 12:15:29 2002] [error] [client 127.0.0.1] (22502)The system cannot find the file specified. : couldn't create child process: 22502: D:/Apache2/cgi-bin/printenv.pl [Thu Jan 03 12:15:29 2002] [error] [client 127.0.0.1] (22502)The system cannot find the file specified. : couldn't spawn child process: D:/Apache2/cgi-bin/printenv.pl Changing line 448 of httpd.conf from Options None to either Options ExecCGI or Options +ExecCGI did not get printenv.pl running either. I used ^C to stop and restarted the server after each edit. BSOD Try starting Apache as a service, twice, with the same (default) name, in 2 DOS windows. This should not be possible, surely. -8- Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html
Fw: Win32 modperl-2 binary
This is a copy of a msg I just sent to Randy instead of the list. I'm sending it to the list so others, and the archiver, will see it. Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html - Original Message - From: Ron Savage [EMAIL PROTECTED] To: Randy Kobes [EMAIL PROTECTED] Sent: Thursday, January 03, 2002 3:05 PM Subject: Re: Win32 modperl-2 binary Randy It gets worse... See below. Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html - Original Message - From: Randy Kobes [EMAIL PROTECTED] To: Ron Savage [EMAIL PROTECTED] Cc: mod_perl [EMAIL PROTECTED] Sent: Thursday, January 03, 2002 1:58 PM Subject: Re: Win32 modperl-2 binary On Thu, 3 Jan 2002, Ron Savage wrote: Folks Here's hoping I have not overlooked the obvious... What follows is a report on trying to use ftp://theoryx5.uwinnipeg.ca/pub/other/Apache2.tar.gz -8- Environment === WinNT 4 Sp 6a File: D:\Apache2\manual\platform\windows.html = Comments: 1) The reference to access.conf is presumably obsolete 2) The section Running Apache for Windows as a Service does not say whether or not the service needs to be started after having been installed. I think that would help beginners Hi Ron, That would be a suggestion for the Apache-2 developers ... File: D:\Apache2\blib\lib\Apache2.pm Comments: 1) This file contains the trivial bug in that the dir is specified twice Command: apache -V output contains: -D APACHE_MPM_DIR=server/mpm/winnt and this dir does not exist. Is this important? I assume not I'm not sure ... Starting I can't get Apache to start with options. I have not edited any files whatsoever. Here's a cut-and-paste from a DOS window: D:\APACHE2bin\Apache -k start [Thu Jan 03 11:33:45 2002] [error] (22502)The system cannot find the file specif ied. : No installed service named Apache2. As you noted next, the service has to be installed first ... D:\APACHE2bin\Apache -k install Using D:\Apache2/blib Installing the Apache2 service The Apache2 service is successfully installed. D:\APACHE2bin\Apache -k start Using D:\Apache2/blib Starting the Apache2 service [Thu Jan 03 11:33:55 2002] [crit] (22703)The system could not find the environme nt option that was entered. : Apache2: Failed to start the service process. I don't know what would cause this ... The service started successfully on both my Win98 and Win2K machine - perhaps it's something to do with NT ... Would you happen to have another Apache2 binary installed before that had installed an Apache2 No. This was the first ever Apache2 I d/l-ed and tried to install. service? What if you try installing a service by a different name than the Apache2 default - is that any different? No. D:\APACHE2bin\apache -k install -n MyApache Using D:\Apache2/blib Installing the MyApache service The MyApache service is successfully installed. D:\APACHE2bin\apache -k start -n MyApache Using D:\Apache2/blib Starting the MyApache service [Thu Jan 03 14:51:40 2002] [crit] (22703)The system could not find the environme nt option that was entered. : MyApache: Failed to start the service process. D:\APACHE2bin\apache -k uninstall -n MyApache Removing the MyApache service The MyApache service has been removed successfully. D:\APACHE2bin\Apache Using D:\Apache2/blib Using D:\Apache2/blib D:\APACHE2bin\Apache -k uninstall Removing the Apache2 service The Apache2 service has been removed successfully. Comments: 1) Note the 2 spaces after 'environment' in the error message after bin\Apache -k start. Is something meant to appear there? It appears that way, but I've not seen that message before ... 2) It's not at all obvious that Apache only starts with no command line options 3) If I try this in another DOS window while Apache is running I get a message I find hard to believe: D:\APACHE2bin\apache -k stop The Apache2 service is not started. The -k start/stop options appear to be specific to services ... 4) Only 1 Using statement is necessary Scripts === I can get http://127.0.0.1/ to work. I can get hello to work with http://127.0.0.1/hello. I can get d:/apache/cgi-bin/test.bat to work with http://127.0.0.1/cgi-bin/test-cgi.bat. But, if I patch the she-bang line of d:/apache/cgi-bin/printenv.pl and then try http://127.0.0.1/cgi-bin/printenv.pl, I get: Server error! Error message: couldn't create child process: 22502: D:/Apache2/cgi-bin/printenv.pl If you think this is a server error, please contact the webmaster Error 500 127.0.0.1 03/01/02 12:15:29 Apache/2.0.30-dev
Fw: Win32 modperl-2 binary
This too is a copy of a msg sent directly to Randy instead of the list. (Back to sleep). Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html - Original Message - From: Ron Savage [EMAIL PROTECTED] To: Randy Kobes [EMAIL PROTECTED] Sent: Thursday, January 03, 2002 3:37 PM Subject: Re: Win32 modperl-2 binary Randy Ahhh. See below. Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html I think this is also work in progress .. Actually, does #!D:/Perl/bin/Perl.exe still with the .exe extension, *and* capitalized as such, work? I got the download window if I use perl.exe (lowercase perl). It is not the capitalization which makes it 'work'. It is the D:. This works: #!D:/usr/bin/perl.exe since I have copied perl.exe to D:/usr/bin (and nothing else to D:/usr/). The .exe is needed too. This fails: #!D:/usr/bin/perl So does this: #!d:/usr/bin/perl This works: #!d:/usr/bin/perl.exe Over and out.
Re: Fw: Win32 modperl-2 binary
Randy Disabling modperl causes yet other strange behaviour. See below. Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html That's too bad ...:( There's probably some more work that needs to be done in getting the service working right ... By the way, if you disable modperl, does it work? When I comment out the modperl stuff: o) I can't use d:/usr/bin/perl.exe any more. I get the error: Can't find the dynamic link library Perl56.dll... o) I can use d:/perl/bin/perl.exe though
Re: Fw: Win32 modperl-2 binary
Randy Disabling modperl affects -k. See below. Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html That's too bad ...:( There's probably some more work that needs to be done in getting the service working right ... By the way, if you disable modperl, does it work? After disabling modperl in httpd.conf and restarting... D:\APACHE2bin\apache -k install Installing the Apache2 service The Apache2 service is successfully installed. D:\APACHE2bin\apache -k start Starting the Apache2 service The Apache2 service is running. D:\APACHE2bin\apache -k stop The Apache2 service is stopping. The Apache2 service has stopped. D:\APACHE2bin\apache -k uninstall Removing the Apache2 service The Apache2 service has been removed successfully. (Re-enable modperl and restart) D:\APACHE2bin\apache -k install Using D:\Apache2/blib Installing the Apache2 service The Apache2 service is successfully installed. D:\APACHE2bin\apache -k start Using D:\Apache2/blib Starting the Apache2 service [Thu Jan 03 15:53:12 2002] [crit] (22703)The system could not find the environme nt option that was entered. : Apache2: Failed to start the service process.
Re: mod_deflate problem with chunked encoding
Stas Does the senario doc (below) apply to Apache V 1, V2 or both? Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html here: http://perl.apache.org/guide/scenario.html, please do that. But
Re: Cross-site scripting vulnerability in Apache::Util
Folks Unicode refs: Unicode|HTML|Weaving the Multilingual Web|http://www.w3.org/Talks/1999/0830-tutorial-unicode-mjd/Overview.html Unicode|Unicode|http://www-4.ibm.com/software/developer/library/globalsoft.html Unicode|UTF-8 and Unicode FAQ for Unix/Linux|http://www.cl.cam.ac.uk/~mgk25/unicode.html Unicode|Zvon Character Reference|http://www.zvon.org/xxl/characterReference/Output/index.html Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html
Re: New mod_perl Logo
Jeezus you guys. All theseAmerican-style names are verging on the racist. This is world-wide code, not f---ing American-wide code. CheersRon Savage[EMAIL PROTECTED]http://savage.net.au/index.html - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] ; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, January 30, 2002 12:48 PM Subject: Re: New mod_perl Logo In a message dated 30-Jan-02 12:50:50 AM GMT Standard Time, [EMAIL PROTECTED] writes: How about "BigFoot"? Probably not the best for a server application. Might make one think of the "footprint" involved ... and isn't one of the major reasons to moving to mod_perl to reduce the overhead and "footprint" of the server? Now Yetti no conotation there. Or Swamp Beast, Sasquatch, or possibly even the local favorite Nessie (I'd love to see Ora get a picture of her on the next book!) -Chris
Re: New mod_perl Logo
Paul How about attaching a copy of _the_ mod_perl book each time you send out your resume. The recipients should be impressed and thus realize it's a Real Program, and I'm sure the authors would consider a bulk discount :-). (Having worked only 2 out of the last 8 months I do appreciate your position). Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html - Original Message - From: Paul Cotter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 31, 2002 12:36 AM Subject: Re: New mod_perl Logo mod_perl is a lousy name. It is causing me a problem. My potential customers have heard of Perl and
Re: Make test issue with the URI module
Thomas See below. Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html When I tried the make test from the mod_perl installation I had an error saying that the module URI couldn't be found. I then downloaded and installed the URI module from cpan.org: URI-1.18 and now I get the following error: /usr/bin/perl t/TEST 0 Can't locate object method new via package URI::URL at ../blib/lib/Apache/te st.pm line 252. I ran into the same problem yesterday. I 'solved' it by adding use URI::URL; to blib/lib/Apache/test.pm Does anyone know why this fails or how to fix it properly? If I recall, years ago the module was called URI::URL, and is now called URI. _If_ they are method-call compatible, you could change the source from use URI::URL; to use URI;
Re: Speed of downloading problem.
Scott See below. Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html Does anyone have any clues what to try? One thought here was to go to 2.0, but we don't know if that will screw up the mod-perl that is built for the Apache 1.3.20 and Ron Savages mod_perl binary. I'm clueless of course :-). But just for the record, I helped document this pre-built binary, but Randy Kobes deserves the credit. Start here: http://savage.net.au/Perl.html#Configuring-Apache
Re: Installing Perl::Magick
lamp See below. Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html Magick.xs:76:24: magick/api.h: No such file or directory This means you must, repeat must, have the ImageMagick source code on tap to compile PerlMagick. Being lazy, I wait for someone to create an ActiveState ppm file... As someone else mentioned, there are ImageMagick mailing lists: http://www.imagemagick.org/www/magick-list.html
Re: Installing Perl::Magick
Aaron See below. Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html There is a package available in ppm for ActiveState Perl. There is a short write up on it PerlMonks http://www.perlmonks.org/index.pl?node_id=140321 Thanx. I was not actually asking for same. There is a package for V 5.4.3.2 here: http://www.dylanbeattie.net/magick/downloads.html I'm supplying this URI just for completeness.
[OT] Hierarchical access to db under Apache and Zeus
This is off topic, I know. I'm accessing your general knowledge, not your mod_perl knowledge. And the CGI script must run under Apache and Zeus. Exit mod_perl. Imagine a club membership db. One table, 'people' say, has a list of members of all clubs. The problem: 1) A club official is allowed to see all people records for their club 2) A state-level official is allowed to see all people records for clubs in their state 3) A national-level official is allowed to see all people records, period. I'm writing all this in Perl, and am using MySQL under both web servers, and I've designed all the tables, so can implement any db and code changes required. Any ideas/articles on implementing this? -- Ron Savage, [EMAIL PROTECTED] on 02/03/2002 http://savage.net.au/index.html
Re: [magick-users] Alternatives of phpGraphy?
On Fri, 1 Mar 2002 17:40:36 +0100, Sebastian Barbe wrote: Hi, I am looking for an alternative to phpGraphy. Does anybody know any good software that works in the same way but is even better and FREE? And what exactly does it do? A URI to an explanation will be sufficient. -- Ron Savage, [EMAIL PROTECTED] on 02/03/2002 http://savage.net.au/index.html
Re: Blank Pages ( Revisited ) [Semi-OT]
On Wed, 13 Mar 2002 10:29:51 + (GMT), Ged Haywood wrote: Hi there, On Wed, 13 Mar 2002 [EMAIL PROTECTED] wrote: However, when I do a random query I get some blank pages. I traced this to the DBI Log using the DBH-Trace(2, /tmp/DBI.log). I found that sometimes the execute() returns 0E0. Does anybody knows why?? It's DBI's way of saying 0 (records returned) but true. Ie It's deliberate. -- Ron Savage, [EMAIL PROTECTED] on 13/3/02 http://savage.net.au/index.html
Re: Open3
On Wed, 03 Apr 2002 13:54:09 -0800, Rasoul Hajikhani wrote: Elizabeth Mattijsen wrote: At 01:44 PM 4/3/02 -0800, Rasoul Hajikhani wrote: Hello folks, I am writing a web based interface to gpg and am using IPC::Open3 Try IPC::Run -- Cheers Ron Savage, [EMAIL PROTECTED] on 06/04/2002 http://savage.net.au/index.html
Re: localizing $dbh attributes with Apache::DBI to minimize the number of connections made
On Mon, 06 May 2002 13:30:07 +0800, Stas Bekman wrote: [snip] my $dbh = DBI-connect (DBI:mysql:test:localhost, '', '', { PrintError = 1, # warn() on errors RaiseError = 0, # don't die on error AutoCommit = 1, # don't commit executes immediately Surely the don't here is wrong? } ) or die Cannot connect to database: $DBI::errstr; [snip] Therefore it's the best to restore the modified attributes to their original Therefore it's best is idiomatic English. -- Cheers Ron Savage, [EMAIL PROTECTED] on 07/05/2002 http://savage.net.au/index.html
[OT] Re: back-tracking
On Tue, 28 May 2002 04:52:48 +1200 (NZST), Andrew McNaughton wrote: [snip] i'm writting a module to highlighting of Perl syntactical structures, but the current code is very slow... :( i need some help to implementing a method of back-tracking or one way to revising a token that has already been formatted without reformatting the entire string? it's possible? Lucas See: Combinatorial Algorithms Nijenhuis and Wilf Academic Press 0-12-519260-6 (1975) P 240 -- Cheers Ron Savage, [EMAIL PROTECTED] on 28/05/2002 http://savage.net.au/index.html
Re: Is mod_perl the right solution for my GUI dev?
On Wed, 26 Jun 2002 09:37:58 -0400, Fran Fabrizio wrote: Fran Ron Savage wrote: On Tue, 25 Jun 2002 12:22:15 -0400, Fran Fabrizio wrote: Fran [snip] from first-hand experience, hell my current project has both of these things in a web interface, and neither were trivial. I crafted an expandable-tree menu (think Windows Explorer style menu) from HTML, CSS, JavaScript and HTML::Template. I have graphs dynamically generated Did you consider using my module CGI::Explorer? I wasn't aware of it's existence. I just now downloaded it and played with the demo. Unfortunately, it looks like it might not have helped in my case. It appears that it is doing a round trip to the server and back on every open/close of a node. That's exactly what I had to avoid. Yes, it does a round trip. Such is life. Our tree has 1000 elements (and growing) pulled dynamically out of a database. In a multi-user environment we don't want to be hitting the server that hard just for a navigational menu for every click of every user. We serve up the entire tree when the user logs in, and all of the state maintenance is handled client-side in terms of what's been opened, etc... we never go back to the server unless the user has requested a refresh of the tree. I could be wrong in how your module operates, that's just from a 3 minute session with the demo. It's good that you've made this available though, most people will have more reasonably sized and constructed trees than we do and should find that module useful. :-) Thanx. -Fran PS - May want to take a look at it on Mozilla. There seemed to be slight table layout issues on my Mozilla 1.0 (yeah, I need to upgrade :-) that caused the graphics to slightly misalign. That may be due to me using some non-standard (Netscape-specific) HTML. Eg 'absmiddle' as in $q - img({src = $image, align = 'absmiddle', width = 17, height = 17}) And when Mozilla has stabilized, in a year or so, I'll consider installing it. Reports of its stability today are not going to sway me :-). Such, too, is life. -- Cheers Ron Savage, [EMAIL PROTECTED] on 27/06/2002 http://savage.net.au/index.html
Re: [win32] new perl/apache/mod_perl binary
On Mon, 8 Jul 2002 00:24:30 -0500 (CDT), Randy Kobes wrote: Hi, I've placed an updated perl-5.6.1/Apache-1.3.26/mod_perl-1.27 Win32 binary package, perl-win32-bin-0.8.exe (a self-extracting archive), in ftp://theoryx5.uwinnipeg.ca/pub/other/. This Randy I cannot get this to start properly under WinNT. I've tried installing in C:\ and D:\. I've updated (but not uploaded) my configure-apache.pl to patch these 3 files: D:\perl\lib\Config.pm D:\perl\lib\CPAN\Config.pm D:\apache\conf\httpd.conf so the install on D:\ should be correct. Symptoms: 1) shellApache.exe -n Apache -k install 2 lines of output appear: Installing the Apache service The Apache service has been installed successfully. and then a Windows error box, containing: The instruction at 0x... referenced memory at 0x The memory could not be 'read'. Nevertheless, Apache is installed, and can be uninstalled. 2) If I try shellapache -k start without the install, and try a -k stop in another DOS window, I get the same error box (in the -k stop window) with _exactly_ the same 2 memory addresses. Nevertheless, Apache stops. 3) If I try shellapache -n Apache -k install and ignore the error, and then try: shellapache -n Apache -k start I get 2 lines of output: The Apache service is starting. The Apache service has started. with about 6 seconds between the msgs, then straight after the 2nd msg, the error box with _exactly_ the same 2 memory addresses. Nevertheless, Apache can be stopped, and it does serve pages. 4) access.log contains the expected. error.log contains nothing. ssl_engine_log contains this per start: -8- [07/Jul/2002 22:47:15 04016] [info] Server: Apache/1.3.26, Interface: mod_ssl/2.8.10, Library: OpenSSL/0.9.6d [07/Jul/2002 22:47:15 04016] [warn] You are using mod_ssl under Win32. This combination is *NOT* officially supported. Use it at your own risk! [07/Jul/2002 22:47:15 04016] [info] Init: 1st startup round (still not detached) [07/Jul/2002 22:47:15 04016] [info] Init: Initializing OpenSSL library [07/Jul/2002 22:47:15 04016] [info] Init: Loading certificate private key of SSL-aware server localhost:443 [07/Jul/2002 22:47:15 04016] [info] Init: Seeding PRNG with 136 bytes of entropy [07/Jul/2002 22:47:15 04016] [info] Init: Generating temporary RSA private keys (512/1024 bits) [07/Jul/2002 22:47:16 04016] [info] Init: Configuring temporary DH parameters (512/1024 bits) [07/Jul/2002 22:47:16 04016] [warn] Failed to release global mutex lock [07/Jul/2002 22:47:16 04016] [warn] Failed to release global mutex lock [07/Jul/2002 22:47:16 04016] [info] Init: Seeding PRNG with 136 bytes of entropy [07/Jul/2002 22:47:16 04016] [info] Init: Configuring temporary RSA private keys (512/1024 bits) [07/Jul/2002 22:47:16 04016] [info] Init: Configuring temporary DH parameters (512/1024 bits) [07/Jul/2002 22:47:16 04016] [info] Init: Initializing (virtual) servers for SSL [07/Jul/2002 22:47:16 04016] [info] Init: Configuring server localhost:443 for SSL protocol [07/Jul/2002 22:47:16 04016] [warn] Init: (localhost:443) RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!? [07/Jul/2002 22:47:18 04016] [info] Init: 2nd startup round (already detached) [07/Jul/2002 22:47:18 04016] [info] Init: Reinitializing OpenSSL library [07/Jul/2002 22:47:18 04016] [warn] Failed to release global mutex lock [07/Jul/2002 22:47:18 04016] [warn] Failed to release global mutex lock [07/Jul/2002 22:47:18 04016] [info] Init: Seeding PRNG with 136 bytes of entropy [07/Jul/2002 22:47:19 04016] [info] Init: Configuring temporary RSA private keys (512/1024 bits) [07/Jul/2002 22:47:19 04016] [info] Init: Configuring temporary DH parameters (512/1024 bits) [07/Jul/2002 22:47:19 04016] [info] Init: Initializing (virtual) servers for SSL [07/Jul/2002 22:47:19 04016] [info] Init: Configuring server localhost:443 for SSL protocol [07/Jul/2002 22:47:19 04016] [warn] Init: (localhost:443) RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!? -8- -- Cheers Ron Savage, [EMAIL PROTECTED] on 09/07/2002 http://savage.net.au/index.html
Re: [win32] new perl/apache/mod_perl binary
On Tue, 9 Jul 2002 02:25:41 -0500 (CDT), Randy Kobes wrote: Randy On Tue, 9 Jul 2002, Ron Savage wrote: On Mon, 8 Jul 2002 00:24:30 -0500 (CDT), Randy Kobes wrote: Hi, I've placed an updated perl-5.6.1/Apache-1.3.26/mod_perl-1.27 Win32 binary package, perl-win32-bin-0.8.exe (a self-extracting archive), in ftp://theoryx5.uwinnipeg.ca/pub/other/. This I cannot get this to start properly under WinNT. Symptoms: 1) shellApache.exe -n Apache -k install 2 lines of output appear: Installing the Apache service The Apache service has been installed successfully. and then a Windows error box, containing: The instruction at 0x... referenced memory at 0x The memory could not be 'read'. Nevertheless, Apache is installed, and can be uninstalled. [ ... ] Does it start OK, and give the server signature, if you just do C:\Apache Apache.exe Yes. I think the problem might be in Embperl - try commenting out the Embperl directives towards the bottom of httpd.conf and see if that helps in starting the service. Neverthless, as you say, things seem to work OK even with these errors on start-up. Yes, the problem is Embperl. Commenting it out (lines 1084 to 1096 of httpd.conf) fixed things. Phew. Thanx for your help. -- Cheers Ron Savage, [EMAIL PROTECTED] on 09/07/2002 http://savage.net.au/index.html
Re: [win32] new perl/apache/mod_perl binary
On Mon, 8 Jul 2002 00:24:30 -0500 (CDT), Randy Kobes wrote: Hi, I've placed an updated perl-5.6.1/Apache-1.3.26/mod_perl-1.27 Win32 binary package, perl-win32-bin-0.8.exe (a self-extracting archive), in ftp://theoryx5.uwinnipeg.ca/pub/other/. This I've update configure-apache.pl to match. See: http://savage.net.au/index.html First timers: configure-apache.pl simply patches a few Perl and Apache config files when you install these packages on a drive other than C:. The entire installation process is documented, including the environment, some security issues, installing and starting Apache as a service, and some MS Windows-specific DNS issues. -- Cheers Ron Savage, [EMAIL PROTECTED] on 10/07/2002 http://savage.net.au/index.html
Re: apache::ASP
At 06:20 AM 28/07/2002 -0700, you wrote: Hello, I have got some problems when I tried to install Apache server together with mod_perl and Apache::ASP. After I had located four subfolder to c:/ , which mean, I have got c:/perl, c:/apache, c:/openssl, c:/readmes. When I tried to start apache.exe. There is an error message showing that it can't load c:/apache/modules/mod_perl.so. But I am sure I got all the files I need. Why is it like that? Thanks so much for your help. From Jeremy. http://savage.net.au/Perl.html#Configuring_Apache __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com Cheers Ron Savage -- Associate Lecturer, School of Information Technology Deakin University, 221 Burwood Highway, Burwood, VIC 3125, Australia Phone: +61-3-9251 7441, Fax: +61-3-9251 7604 Email: [EMAIL PROTECTED] WWW: http://www.deakin.edu.au/~rons/
Re: [ANNOUNCE] StateMachine::Gestinanna 0.01
On Wed, 31 Jul 2002 12:32:51 -0500, James G Smith wrote: James G Smith [EMAIL PROTECTED] wrote: The distribution is available on CPAN (soon -- has been uploaded) and at http://sourceforge.net/project/gestinanna/ Make that http://sourceforge.net/projects/gestinanna/ There are some state machine modules in CPAN already, under the prefix DFA:: for Discrete Finite Automata. Do we really need a separate prefix StateMachine:: for this? For the record, DFA was suggested to me when I asked for module name suggestions, because it (DFA) was already in use when I wanted to submit my module. -- Ron Savage, [EMAIL PROTECTED] on 1/08/2002
CGI.pm's path_info will not stay shared
Folks I'm aware of this doc: http://perl.apache.org/docs/general/perl_reference/perl_reference.html Click on: 'my() Scoped Variable in Nested Subroutines' for details. and I've just had a similar experience with $q - path_info(). Context: In this environment: Win2K, Apache 1.3.26, mod_perl 1.27_01-dev, Perl 5.6.1, CGI.pm 2.89,the CGI method path_info(), when given a URL without any path info, returns the path info from the previous submit, but only if the CGI script is running as an Apache::Registry script.When the CGI script is run as a simple cgi-bin script, this bug is not manifest.This is very like the behavior of my()-scoped variables in nested subroutines, documented above. Under Perl 5.8.0, Apache 2.0.43 the problem does not occur. Is this a known problem? If so, I suggest it be added to the docs. -- Cheers Ron Savage, [EMAIL PROTECTED] on 11/12/2002 http://savage.net.au/index.html
Re: Perl Cookbook modperl chapter
On Wed, 11 Dec 2002 13:58:18 -0700, Nathan Torkington wrote: Nathan I also need help on content. I'm not competing with Geoff, Randy, Some of us are trying to implement authentication/login/logout where, if at all possible, cookies are not to be used. A cookie-free discussion would be most welcome. Having 2 books which can both be casually, if incorrectly, called The mod_perl Cookbook, is asking for endless (minor) trouble. A distinct name would be a distinct advantage. -- Cheers Ron Savage, [EMAIL PROTECTED] on 12/12/2002 http://savage.net.au/index.html
RE: Cookie-free authentication
On Thu, 12 Dec 2002 14:29:16 -, Peter Werner wrote: hi all Hi Peter, et al [snip] i suppose it really depends on what you are developing, but take heed. i fully understand why cookie based authentication may be unacceptable, but consider maintainability and (long-term) scalability when you're doing your design and implementation. in the end you'll save someone a few grey hairs [snip] documentation :). however, it seems to me that (for clients that can support this implementation of Digest, which seems to be just about everyone but MSIE) the nonce provides exactly the kind of state information that is required for login/logout authentication. of course, it trades cookies for that pop-up box (again), so if you're looking for cookiless, HTML form based logins, then it's probably not what you want. All comments highly appreciated. It's a university environment, with MSIE on all PCs. Under Apache V 1/Perl 5.6.0 I could not get the Apache::AuthCookieURL option working which munged URLs without requiring cookies. I've just upgraded to Apache V 2/Perl 5.8.0 and fought off a dept-wide Klez attack, with McAfee lying about having cleaned the machines, so one day soon I'll retry AuthCookieURL. -- Cheers Ron Savage, [EMAIL PROTECTED] on 14/12/2002 http://savage.net.au/index.html
RE: Cookie-free authentication
On Fri, 13 Dec 2002 20:19:55 -0800 (PST), Bill Moseley wrote: Hi Bill On Sat, 14 Dec 2002, Ron Savage wrote: Under Apache V 1/Perl 5.6.0 I could not get the Apache::AuthCookieURL option working which munged URLs without requiring cookies. I thought the problem was that Apache::AuthCookie was redirecting to your login scrip on logout instead of displaying your logout page. Yes, this is one problem. PS My email/internet access at the office has been discontinued while I'm 'between contracts'. -- Cheers Ron Savage, [EMAIL PROTECTED] on 17/12/2002 http://savage.net.au/index.html
[mp2.0/Win2K] Compress::Zlib works under /cgi-bin/, not under /perl/
/site/lib/Module/MakeDist.pm line 272., referer: http://127.0.0.1/cgi-bin/test-zlib.cgi [Thu Dec 19 12:32:12 2002] [error] [client 127.0.0.1] [Thu Dec 19 01:32:10 2002] test-zlib.cgi: Debug: Created zip object: Archive::Zip::Archive=HASH(0x1d71868). at C:/Perl/site/lib/Module/MakeDist.pm line 303., referer: http://127.0.0.1/cgi-bin/test-zlib.cgi [Thu Dec 19 12:32:12 2002] [error] [client 127.0.0.1] [Thu Dec 19 01:32:10 2002] test-zlib.cgi: Debug: Adding file to zip object: Changes.txt. at C:/Perl/site/lib/Module/MakeDist.pm line 318., referer: http://127.0.0.1/cgi-bin/test-zlib.cgi [Thu Dec 19 12:32:12 2002] [error] [client 127.0.0.1] [Thu Dec 19 01:32:10 2002] test-zlib.cgi: Debug: Added file to zip object: Changes.txt. at C:/Perl/site/lib/Module/MakeDist.pm line 322., referer: http://127.0.0.1/cgi-bin/test-zlib.cgi [Thu Dec 19 12:32:12 2002] [error] [client 127.0.0.1] [Thu Dec 19 01:32:10 2002] test-zlib.cgi: Debug: Adding file to zip object: MakeDist.html. at C:/Perl/site/lib/Module/MakeDist.pm line 318., referer: http://127.0.0.1/cgi-bin/test-zlib.cgi [Thu Dec 19 12:32:12 2002] [error] [client 127.0.0.1] [Thu Dec 19 01:32:10 2002] test-zlib.cgi: Debug: Added file to zip object: MakeDist.html. at C:/Perl/site/lib/Module/MakeDist.pm line 322., referer: http://127.0.0.1/cgi-bin/test-zlib.cgi [Thu Dec 19 12:32:12 2002] [error] [client 127.0.0.1] [Thu Dec 19 01:32:10 2002] test-zlib.cgi: Debug: Adding file to zip object: README. at C:/Perl/site/lib/Module/MakeDist.pm line 318., referer: http://127.0.0.1/cgi-bin/test-zlib.cgi [Thu Dec 19 12:32:12 2002] [error] [client 127.0.0.1] [Thu Dec 19 01:32:10 2002] test-zlib.cgi: Debug: Added file to zip object: README. at C:/Perl/site/lib/Module/MakeDist.pm line 322., referer: http://127.0.0.1/cgi-bin/test-zlib.cgi [Thu Dec 19 12:32:12 2002] [error] [client 127.0.0.1] [Thu Dec 19 01:32:10 2002] test-zlib.cgi: Debug: Adding file to zip object: Module-MakeDist.ppd. at C:/Perl/site/lib/Module/MakeDist.pm line 318., referer: http://127.0.0.1/cgi-bin/test-zlib.cgi [Thu Dec 19 12:32:12 2002] [error] [client 127.0.0.1] [Thu Dec 19 01:32:10 2002] test-zlib.cgi: Debug: Added file to zip object: Module-MakeDist.ppd. at C:/Perl/site/lib/Module/MakeDist.pm line 322., referer: http://127.0.0.1/cgi-bin/test-zlib.cgi [Thu Dec 19 12:32:12 2002] [error] [client 127.0.0.1] [Thu Dec 19 01:32:10 2002] test-zlib.cgi: Debug: Adding file to zip object: x86\Module-MakeDist-1.03.tar.gz. at C:/Perl/site/lib/Module/MakeDist.pm line 318., referer: http://127.0.0.1/cgi-bin/test-zlib.cgi [Thu Dec 19 12:32:12 2002] [error] [client 127.0.0.1] [Thu Dec 19 01:32:10 2002] test-zlib.cgi: Debug: Added file to zip object: x86\Module-MakeDist-1.03.tar.gz. at C:/Perl/site/lib/Module/MakeDist.pm line 322., referer: http://127.0.0.1/cgi-bin/test-zlib.cgi [Thu Dec 19 12:32:12 2002] [error] [client 127.0.0.1] [Thu Dec 19 01:32:10 2002] test-zlib.cgi: Debug: Wrote zip file: Module-MakeDist-1.03.zip. at C:/Perl/site/lib/Module/MakeDist.pm line 329., referer: http://127.0.0.1/cgi-bin/test-zlib.cgi -- Ron Savage, [EMAIL PROTECTED] on 19/12/2002 Deakin University, 221 Burwood Highway, Burwood, VIC 3125, Australia Phone: +61-3-9251 7441, Fax: +61-3-9251 7604 http://www.deakin.edu.au/~rons
[OT] Re: pb with theoryx5 ppms archname
On Wed, 29 Jan 2003 09:30:12 -0600, Randy Kobes wrote: On January 29, 2003 08:45 am, [EMAIL PROTECTED] wrote: Hi Pascal with perl 58 /win32 I noted that ppm refuses to install More info here. Watch wrap: http://groups.google.com/groups?q=savage+imagemagick+group:comp.lang.p erl.moduleshl=enlr=ie=UTF-8oe=UTF-8selm=at9d1c%242apu%241%40arach ne.labyrinth.net.aurnum=5 -- Cheers Ron Savage, [EMAIL PROTECTED] on 30/01/2003 http://savage.net.au/index.html
[MP2] Apache::Reload date bug
Folks I don't know if this an Apache problem, or a mod_perl problem. Apache::Reload outputs a UTC date rather than a local date, when it encounters an error. Here's an excerpt from my log. Notice how the dates go Sun, Mon, ..., Sun. [Sun Feb 16 18:31:25 2003] [error] [client 127.0.0.1] Execution of C:/Apache2/cgi-bin/test/test-path-info.cgi aborted due to compilation errors., referer: http://127.0.0.1/cgi-bin/test/test-path-info.cgi [Mon Feb 17 10:44:04 2003] [error] [client 127.0.0.1] Premature end of script headers: menu-process-module.cgi, referer: http://127.0.0.1/cgi-bin/menu-process-module.cgi [Mon Feb 17 10:44:04 2003] [error] [client 127.0.0.1] Can't locate Module/MakeDist.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at C:/Apache2/cgi-bin/menu-process-module.cgi line 15., referer: http://127.0.0.1/cgi-bin/menu-process-module.cgi [Mon Feb 17 10:44:04 2003] [error] [client 127.0.0.1] BEGIN failed--compilation aborted at C:/Apache2/cgi-bin/menu-process-module.cgi line 15., referer: http://127.0.0.1/cgi-bin/menu-process-module.cgi [Sun Feb 16 23:49:41 2003] -e: Apache::Reload: Can't locate C:/Perl/site/lib//CGI/Explorer.pm -- Cheers Ron Savage, [EMAIL PROTECTED] on 17/02/2003 http://savage.net.au/index.html
Re: [MP2] Apache::Reload date bug
On Wed, 19 Feb 2003 10:04:02 +1100, Stas Bekman wrote: Ron Savage wrote: On Tue, 18 Feb 2003 12:56:38 +1100, Stas Bekman wrote: Hi Folks In endeavouring to reproduce this problem, I've encountered another: main.cgi: -8- #!/usr/bin/perl use strict; use warnings; use CGI; use Dummy; # -- my($title) = 'Test'; my($q) = CGI - new(); my($s) = Dummy - string(); print $q - header({type = 'text/html;charset=ISO-8859-1'}), $q - start_html({title = $title}), $q - h1({align = 'center'}, $s), $q - end_html(); -8- Dummy.pm (in /perl/site/lib/): -8- package Dummy; sub string{'This is a string'} 1; -8- Output when run as /perl/main.cgi. Only the first line is expected (by me.) Ie why does the text from OK down, appear? : -8- This is a string OK The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. -- -- Apache/2.0.43 Server at 127.0.0.1 Port 80 -8- The part of httpd.conf controlling /perl/. Note Dummy is not included here, but the original module, which revealed the original bug, is: 8 IfModule mod_perl.c PerlModule Apache::Reload PerlInitHandler Apache::Reload PerlSetVar ReloadAll Off PerlSetVar ReloadModules CGI::Explorer DBIx::AdminEngine Monash::* Sweep::* #PerlSwitches -Mblib=C:\Apache2 PerlRequire C:/Apache2/conf/startup.pl Alias /perl/ C:/Apache2/perl/ Location /perl SetHandler perl-script PerlResponseHandler ModPerl::Registry Options +ExecCGI PerlOptions +ParseHeaders Order deny,allow Deny from all Allow from 127.0.0.1 /Location 8 I'll keep working on the original problem. -- Cheers Ron Savage, [EMAIL PROTECTED] on 24/02/2003 http://savage.net.au/index.html
Re: [MP2] Apache::Reload date bug
On Tue, 25 Feb 2003 09:40:05 +1100, Stas Bekman wrote: And what your error_log says? Nothing is output to the error_log. -- Cheers Ron Savage, [EMAIL PROTECTED] on 25/02/2003 http://savage.net.au/index.html
Re: [MP2] Apache::Reload date bug
On Wed, 26 Feb 2003 09:23:39 +1100, Stas Bekman wrote: Hi Stas Have you tried the current mod_perl cvs? No. Being usually a Windows (shudder) user, I wait for Randy to issue a build. Today I spent 4 hours failing to install Red Hat 6, Red Hat 8 and Mandrake 9 on a brand new Dell with a 82854G/GL video chip. I was aiming for a dual-boot system. Amazing :-(. -- Cheers Ron Savage, [EMAIL PROTECTED] on 27/02/2003 http://savage.net.au/index.html
Re: [MP2] Apache::Reload date bug
On Wed, 26 Feb 2003 22:30:51 -0600 (CST), Randy Kobes wrote: On Thu, 27 Feb 2003, Ron Savage wrote: On Wed, 26 Feb 2003 09:23:39 +1100, Stas Bekman wrote: HI Randy The mod_perl 2 ppm package (for ActivePerl 8xx) at http://theoryx5.uwinnipeg.ca/ppms/ is updated periodically with a cvs build - as of tonight, it's current. Thanx. Now my dual-booter at work is working, I hope to try this tomorrow. It's 8pm here now. -- Cheers Ron Savage, [EMAIL PROTECTED] on 27/02/2003 http://savage.net.au/index.html
Fwd: Re: [MP2] Apache::Reload date bug
--- Original Message --- From: Stas Bekman [EMAIL PROTECTED] To: Ron Savage [EMAIL PROTECTED] Cc: Sent: Sat, 01 Mar 2003 12:47:39 +1100 Subject: Re: [MP2] Apache::Reload date bug Ron Savage wrote: On Tue, 25 Feb 2003 09:40:05 +1100, Stas Bekman wrote: Hi Stas Output when run as /perl/main.cgi. Only the first line is expected (by me.) Ie why does the text from OK down, appear? : -8- This is a string OK The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Thanx. This particular problem has been fixed. cool. please followup on the list. So others know as well. Oops. -- Cheers Ron Savage, [EMAIL PROTECTED] on 02/03/2003 http://savage.net.au/index.html
Doc clarifications requested
Folks (1) On this page: http://perl.apache.org/docs/2.0/user/compat/compat.html Under this heading: $r-args in an Array Context I see this item: if one wishes to simply read POST data, there is the more modern {setup,should,get}_client_block API, and even more modern filter API. Along with continued support for read(STDIN, ...) and $r-read($buf, $r-headers_in-{'content-length'}) I feel the sentence stating with 'Along' should not belong under that dot point. Also, it's not a complete sentence, so what does it mean? (2) Same page. I see this text: $r -is_main is not part of the mod_perl 2.0 API. Use !$r-main instead. (a) Is the '!' correct? (b) Should it refer to is_inital_req (c) Would it be possible to add a reference for is_initial_req? -- Cheers Ron Savage, [EMAIL PROTECTED] on 12/03/2003 http://savage.net.au/index.html
Problem with Apache::Authen::Program V 0.92 under WinXP
(1) I've patch the source slightly: --- Program.pm Sat Mar 29 14:32:24 2003 +++ /perl/site/lib/Apache/Authen/Program.pm Sat Mar 29 14:43:10 2003 @@ -11,5 +11,5 @@ use strict; -use Apache::Constants ':common'; +use Apache::Constants qw(SERVER_ERROR AUTH_REQUIRED OK); use File::Temp q(tempfile); (2) Some other time I'll use these new constants: http://perl.apache.org/docs/2.0/user/compat/compat.html#Deprecated_Con stants (3) startup.pl: use Apache2 (); use ModPerl::Util (); use Apache::RequestRec (); use Apache::RequestIO (); use Apache::RequestUtil (); use Apache::Server (); use Apache::ServerUtil (); use Apache::Connection (); use Apache::Log (); use Apache::Const -compile = ':common'; use APR::Const -compile = ':common'; use APR::Table (); use Apache::compat (); use ModPerl::Registry (); use CGI (); #use DBI (); #use DBD::mysql (); 1; (4) httpd.conf: Directory C:/Apache2/sweep AuthName SWEEP Authentication AuthType Basic PerlSerVar AuthenProgram /usr/bin/perl /Apache2/authen/authen.pl PerlSetVar AuthenProgramSuccess Ok PerlSetVar AuthenProgramPassword File PerlAuthenHandler Apache::Authen::Program require valid-user /Directory (5) What happens is that Apache does not start. It stops within 1 second. There is nothing in error.log. (6) If I comment out 1 line in httpd.conf: # PerlSerVar AuthenProgram /usr/bin/perl /Apache2/authen/authen.pl Apache starts. (7) I've also tried: PerlSerVar AuthenProgram /Apache2/authen/authen.bat and PerlSerVar AuthenProgram /Apache2/authen/authen.bat in case quotes or a single token (no spaces) made any difference, but no. authen.bat is just: perl /Apache2/authen/authen.pl -- Cheers Ron Savage, [EMAIL PROTECTED] on 29/03/2003 http://savage.net.au/index.html
Re: Skipped Tests (was: handler help)
We're getting out of my area of experience here, I don't use mod_perl2, but I hear there are recent changes to CGI.pm. Did you install the latest CGI.pm? You should. 73, Ged. For the record, the last CGI.pm which I could get to work under Win2K/IE 6 is 2.97. V 2.99 corrupts the string returned by $q - url() by %-etc encoding /-etc characters. -- Ron Savage, [EMAIL PROTECTED] on 04/08/2003. Room EF 312 Deakin University, 221 Burwood Highway, Burwood, VIC 3125, Australia Phone: +61-3-9251 7067, Fax: +61-3-9251 7604 http://www.deakin.edu.au/~rons
Re: Apache::Reload and INC path partialy working
Hi Folks Fascinating to see this on a non-Windows box. Reloading modules after they have been editied, eg httpd like so: PerlModule Apache::Reload PerlInitHandler Apache::Reload PerlSetVar ReloadAll Off PerlSetVar ReloadModules CGI CGI::Application ... Sweep::* works about 99% of the time under Win2K and XP. I've been assuming it's a Windows thing. Perhaps the problem lies deeper? Server Version: Apache/2.0.46 (Win32) mod_perl/1.99_10-dev Perl/v5.8.0 -- Ron Savage, [EMAIL PROTECTED] on 14/08/2003. Room EF 312 Deakin University, 221 Burwood Highway, Burwood, VIC 3125, Australia Phone: +61-3-9251 7067, Fax: +61-3-9251 7604 http://www.deakin.edu.au/~rons