Migration to mod_perl 2.0: Problems with CGI.pm

2005-06-03 Thread Johannes Kilian
Hi there, I try to migrate to mod_perl 2.0 from mod_perl 1.99 RC4 (WinXP, ActiveState Perl 5.8.6) Running my old scripts the following error occurs in Module cgi.pm: Can't locate Apache/Response.pm in @INC I know this error occurs from renaming Apache to Apach2 - but is there an easier way to do

URL scheme in $r?

2005-06-03 Thread Vsevolod (Simon) Ilyushchenko
Hi, I'm probably missing something obvious, but how do I get the current URL scheme (HTTP or HTTPS) of a request? The full URI will work too. Everything that I see in the Apache2::RequestRec API only returns parts of the URI which don't tell me whether it's HTTP or HTTPS. I need this because

Re: [MP2] How to turn off caching?

2005-06-03 Thread Rodger Castle
> If I am not mistaken, modperl tends to cache all output until the script > is completed, then it sends out the page. If I want to (for example) > print a period (.) back to the browser every second, what do I need to > do? I tried $| but it does not work. I fought with this for a while, too.

URL scheme in $r?

2005-06-03 Thread Vsevolod (Simon) Ilyushchenko
Hi, I'm probably missing something obvious, but how do I get the current URL scheme (or the full URI) of a request? Everything that I see in the Apache2::RequestRec API only returns parts of the URI which don't tell me whether it's HTTP or HTTPS. I need this because I'm fixing Apache::ProxyR

Re: Migration to mod_perl 2.0: Problems with CGI.pm

2005-06-03 Thread Foo Ji-Haw
What do you mean by manipulating the core perl modules? There was an earlier discussion on how to migrate from the Apache to Apache2 namespace. Most of the work can be done in a simple search-and-replace across all scripts/ libraries. You really don't want to continue using 'use Apache::Respons

Re: URL scheme in $r?

2005-06-03 Thread Torsten Foertsch
On Thursday 02 June 2005 21:51, Vsevolod (Simon) Ilyushchenko wrote: > I'm probably missing something obvious, but how do I get the current URL > scheme (HTTP or HTTPS) of a request? The full URI will work too. > Everything that I see in the Apache2::RequestRec API only returns parts > of the URI

Re: Migration to mod_perl 2.0: Problems with CGI.pm

2005-06-03 Thread William McKee
On Thu, Jun 02, 2005 at 03:59:50PM +0100, Johannes Kilian wrote: > I try to migrate to mod_perl 2.0 from mod_perl 1.99 RC4 (WinXP, > ActiveState Perl 5.8.6) > > Running my old scripts the following error occurs in Module cgi.pm: > Can't locate Apache/Response.pm in @INC Did you read the Migrating

Re: Migration to mod_perl 2.0: Problems with CGI.pm

2005-06-03 Thread Malcolm J Harwood
On Thursday 02 June 2005 10:59 am, Johannes Kilian wrote: > Running my old scripts the following error occurs in Module cgi.pm: > Can't locate Apache/Response.pm in @INC Do you have the latest version of CGI? It's been updated to account for the changes in MP2.

Newline and tab escaping in Apache's error_log

2005-06-03 Thread Sam Tregar
Hello all. Does anyone know why Apache (v1.3.33) is escaping newlines and tabs in my error logs? I'm seeing stuff like: [Thu Jun 2 18:54:18 2005] [error] Error executing run mode 'process': Unable to find message named 'city_missing' in messages.conf. at /home/sam/projectx/lib/Projectx

Re: Newline and tab escaping in Apache's error_log

2005-06-03 Thread Michael Peters
Sam Tregar wrote: > Hello all. Does anyone know why Apache (v1.3.33) is escaping newlines > and tabs in my error logs? I'm seeing stuff like: > >[Thu Jun 2 18:54:18 2005] [error] Error executing run mode 'process': >Unable to find message named 'city_missing' in messages.conf. at >

Re: Newline and tab escaping in Apache's error_log

2005-06-03 Thread Sam Tregar
On Fri, 3 Jun 2005, Michael Peters wrote: > It's a fairly recent change to apache since some characters could cause > problems for some text viewers thus creating a security hole (if your > text reader isnt smart enough). > > You can turn it off by building apache like so: > > CFLAGS="-DAP_UNSAF

Re: failure running tests

2005-06-03 Thread Malcolm J Harwood
On Friday 03 June 2005 01:55 pm, Vivek Khera wrote: > I am building up a virgin FreeBSD 5.4 box to test out my application > under modperl2. However, it craps out in the "make test" step... Now > why does it offer to actually run the test when it *knows* it can't > run them? Because often it c

Help Installing Apache Handlers(.pm files)

2005-06-03 Thread Somik Behera
hey guys, I am having trouble installing Apache handlers, was wondering if anybody = has any suggestions. Platform: Win XP/Apache2.0/mod_perl 1.99 this is the config I have in Apache's httpd.conf file for Installing handlers. LoadFile "c:/Perl/bin/perl58.dll" LoadModule perl_module modules/mo

Re: Help Installing Apache Handlers(.pm files)

2005-06-03 Thread Randy Kobes
On Fri, 3 Jun 2005, Somik Behera wrote: > hey guys, > > I am having trouble installing Apache handlers, was wondering if anybody = > has > any suggestions. > > Platform: Win XP/Apache2.0/mod_perl 1.99 > > this is the config I have in Apache's httpd.conf file for Installing > handlers. > > LoadFile

[Question] OS X 10.4

2005-06-03 Thread Anonymous Lion
Newbie I'm trying to set up the existing Apache 1.3 on my OS X 10.4 to run perl scripts. I believe I have made all of the necessary httpd.conf changes. When I try to run a perl script from the command line, all goes well. But when I try to run it from my relocated CGI-Executables folder/directory