Write to a file

2004-06-29 Thread Hill York Controls Dept.
I downloaded and installed the Apache All-in-one ver 1.3 for windows binary with Apache, Perl and mod-Perl pre configured and  everything seems to be working. I created the file "mod_perl_rules.pl" as described in the documentation however when I click on it the perl screen just flashes an

Error installing

2004-06-29 Thread ModPerl List
I am trying to install mod_perl on Red Hat 8.0, which is running cPanel 9.4.1_C63 and WHM 9.4.0   Here are the installation instructions I have:   Quote:   How to Install mod_perl Sometime back I had mod_perl installed on my server, and I was given the install instructions. I wanted to pass

Error upon install

2004-06-29 Thread Richard
I am trying to install mod_perl on a Linux Box that is running Cpanel…   I don’t remember if this is running Red Hat or Fedora, as we have both on our servers, and in my list it does not say, it only says, “Linux”.   Here is my error:   perl Makefile.PL USE_APXS=1 WITH_APXS=/usr/local

Re: Error upon install

2004-06-29 Thread Andy Armstrong
Richard wrote: perl Makefile.PL USE_APXS=1 WITH_APXS=/usr/local/apache/bin/apxs EVERYTHING=1 Reading Makefile.PL args from @ARGV [ error] Unable to determine server version, aborting. [ error] Please specify MP_APXS or MP_AP_PREFIX. Have you tried specifying MP_APXS or MP_AP_PREFIX then? -- And

Re: Error upon install

2004-06-29 Thread ModPerl List
I created a new email, as I did not recieve this one, and I found my OS... subject is "Error Installing"   Sorry. Richard - Original Message - From: Richard To: [EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 3:45 AM Subject: Error upon install I am trying to

Re: Error upon install

2004-06-29 Thread Randy Kobes
On Tue, 29 Jun 2004, Richard wrote: > I am trying to install mod_perl on a Linux Box that is running Cpanel. > > I don't remember if this is running Red Hat or Fedora, as > we have both on our servers, and in my list it does not > say, it only says, "Linux". > > Here is my error: > > perl Makefile

Re: Error upon install

2004-06-29 Thread Andy Armstrong
Randy Kobes wrote: It sounds like you're trying to build mod_perl-1.99 (aka mod_perl 2) against apache-1.3. Try either installing mod_perl 2 against an Apache 2 installation: perl Makefile.PL MP_AP_PREFIX=/path/to/httpd2 \ MP_INST_APACHE2=1 or, if you must stick with Apache-1.3, grab the m

Re: Error upon install

2004-06-29 Thread Andy Armstrong
Geoffrey Young wrote: just as a gentle reminder, keeping everything on-list means that other new users can find the problem answered in the archives, which saves everybody some cycles. I didn't take it off-list... -- Andy Armstrong -- Report problems: http://perl.apache.org/bugs/ Mail list info: ht

[mp2] $r->senfile() curiosity

2004-06-29 Thread Nicholas Studt
I don't know if this is a bug, or if I don't understand how bucket brigades work. I have some code which does the following: $r->print( "First" ); $r->sendfile( "/any/file" ); $r->print( "Last" ); This Produces: First Last I thought it should produce: Fi

Re: Write to a file

2004-06-29 Thread Randy Kobes
On Mon, 28 Jun 2004, Hill York Controls Dept. wrote: > I downloaded and installed the Apache All-in-one ver 1.3 > for windows binary with Apache, Perl and mod-Perl pre > configured and everything seems to be working. I created > the file "mod_perl_rules.pl" as described in the > documentation howe

Re: Apache::Request

2004-06-29 Thread Kemin Zhou
I posted a question about trouble making the following package. libapreq2-2.03_04-dev.tar.gz I figured out the problem. It is a bug in the Makefile.PL. Go to the glue/perl directory perl ../../build/xsbuilder.pl run This told me to install another package Install the required package then run this

Re: Apache::Request

2004-06-29 Thread Joe Schaefer
Kemin Zhou <[EMAIL PROTECTED]> writes: [...] > perl ../../build/xsbuilder.pl run > > This told me to install another package What was the name of the package? ExtUtils::XSBuilder? > Install the required package then run this again. It will generate > the needed file. > > running perl Makefi

[mp1] session variables - how to use?

2004-06-29 Thread Charlie Smith
What is recommended way to get/set session variables? Is there a recommended package to use with examples please? Currently am using Apache/1.3.28 (Unix) mod_perl/1.28 PHP/4.3.1 mod_ssl/2.8.15 OpenSSL/0.9.7d but plan on moving to Apache 2 at some time. Charlie ;) "Postmaster" made the followin

Re: Apache::Request

2004-06-29 Thread Kemin Zhou
perl ../../build/xsbuilder.pl run This told me to install another package | What was the name of the package? ExtUtils::XSBuilder? Dependency to ExtUtils::XSBuilder can be detected by the top level Makefile.PL Furthermore, XSBuilder requires Parse-RecDescent-1.94.tar.gz The missing one is Tie

RE: [mp1] session variables - how to use?

2004-06-29 Thread Clayton Cottingham
here is a test script i created to understand the basics, everyone feel free to rip it apart, through mistakes we learn :) <<<:code:>>> #!/usr/bin/perl use strict; use Apache::Session::MySQL; use CGI; =cut SYNOPSIS #make a fresh session for a first-time visitor tie %session, 'Apach

Re: [mp2] $r->senfile() curiosity

2004-06-29 Thread Stas Bekman
Nicholas Studt wrote: I don't know if this is a bug, or if I don't understand how bucket brigades work. I have some code which does the following: $r->print( "First" ); $r->sendfile( "/any/file" ); $r->print( "Last" ); This Produces: First Last I thought it should

Re: Apache::Request

2004-06-29 Thread Stas Bekman
Kemin Zhou wrote: perl ../../build/xsbuilder.pl run This told me to install another package | What was the name of the package? ExtUtils::XSBuilder? Dependency to ExtUtils::XSBuilder can be detected by the top level Makefile.PL Furthermore, XSBuilder requires Parse-RecDescent-1.94.tar.gz The

[mp2] APR::Table / Apache::Request usage question

2004-06-29 Thread Nicholas Studt
I am trying to approximate a construct that I used heavily in mod_perl 1, namely: my %in = ( $r->content, $r->args ); if ( $in{form_data_key} ) { # ... do something ... } else { $in{form_data_key} = 'some value'; } $r->print( $in{form_data_key} ); Under mod_perl 2, using Apache

Re: Apache::Request

2004-06-29 Thread Joe Schaefer
Stas Bekman <[EMAIL PROTECTED]> writes: [...] > There is little value and a huge overhead in building the table files > by each user (not talking about extra dependencies). I know our build/xsbuilder.pl has Win32-specific code in it, so I'm somewhat reluctant to simply generate and bundle the p

Re: [mp2] APR::Table / Apache::Request usage question

2004-06-29 Thread Geoffrey Young
> my $apr = Apache::Request->new( $r ); > my $in = $apr->param; > > if ( $in->{'form_data_key'} ) { > # ... do something ... > } > else { > $in->{'form_data_key'} = 'some value'; > } > > $r->print( $in->{'form_data_key'} ); > > When I read this value from a POST or a GET everything

Re: Error upon install

2004-06-29 Thread Geoffrey Young
Andy Armstrong wrote: > Geoffrey Young wrote: > >> just as a gentle reminder, keeping everything on-list means that other >> new >> users can find the problem answered in the archives, which saves >> everybody >> some cycles. > > > I didn't take it off-list... sure, I understand - lots of peo

Re: Error upon install

2004-06-29 Thread Geoffrey Young
Andy Armstrong wrote: > Randy Kobes wrote: > >> It sounds like you're trying to build mod_perl-1.99 (aka >> mod_perl 2) against apache-1.3. Try either installing >> mod_perl 2 against an Apache 2 installation: >> perl Makefile.PL MP_AP_PREFIX=/path/to/httpd2 \ >> MP_INST_APACHE2=1 >> or

Re: [mp2] APR::Table / Apache::Request usage question

2004-06-29 Thread Joe Schaefer
Nicholas Studt <[EMAIL PROTECTED]> writes: [...] > When I read this value from a POST or a GET everything works happily. > When I try to add something to the table the add happens without > event, but I can not read the set value back. Actually a segfault is likely here, because Apache::Request:

Re: [mp2] APR::Table / Apache::Request usage question

2004-06-29 Thread Nicholas Studt
> Joe Schaefer wrote on 29 Jun 2004 15:00:54 -0400 > > Nicholas Studt <[EMAIL PROTECTED]> writes: > > [...] > > > When I read this value from a POST or a GET everything works > > happily. When I try to add something to the table the add happens > > without event, but I can not read the set value

Re: [mp2] APR::Table / Apache::Request usage question

2004-06-29 Thread Geoffrey Young
>>Actually a segfault is likely here, because Apache::Request::Table >>does not provide a (safe) overload for APR::Table::add(). You cannot >>currently assign params to any of the APR::Table-derived objects in >>apreq2, but this isue should be addressed before the next release. > > > Having tri

Re: [mp2] APR::Table / Apache::Request usage question

2004-06-29 Thread Damayanti Gupta
How do I remove myself fro this list? Thanks Dami -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Re: [mp2] APR::Table / Apache::Request usage question

2004-06-29 Thread Geoffrey Young
Damayanti Gupta wrote: > How do I remove myself fro this list? please see the footer at the bottom of every message posted to the list (including the list's copy of this one :) --Geoff -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.htm

Re: Apache::Request

2004-06-29 Thread Randy Kobes
On Tue, 29 Jun 2004, Joe Schaefer wrote: > Stas Bekman <[EMAIL PROTECTED]> writes: > > [...] > > > There is little value and a huge overhead in building the table files > > by each user (not talking about extra dependencies). > > I know our build/xsbuilder.pl has Win32-specific code in it, so > I'

Uploading files

2004-06-29 Thread Kemin Zhou
To the Developers, I saw this in the documentation for Apache::Request for file upload tempname [XXX- Does this mesh with brigade API?] Provides the name of the spool file. This method is reserved f

potential bug/issue with internal_redirect in mp2

2004-06-29 Thread Kreimendahl, Chad J
Here goes... -8<-- Start Bug Report 8<-- 1. Problem Description: This issue occurs only when using auth and internal_redirects. User request page a.html some task is done and redirects to b.html the redirect page (b.html) will not contain $r->user

Re: Apache::Request

2004-06-29 Thread Stas Bekman
Randy Kobes wrote: On Tue, 29 Jun 2004, Joe Schaefer wrote: Stas Bekman <[EMAIL PROTECTED]> writes: [...] There is little value and a huge overhead in building the table files by each user (not talking about extra dependencies). I know our build/xsbuilder.pl has Win32-specific code in it, so I'm

Re: potential bug/issue with internal_redirect in mp2

2004-06-29 Thread Geoffrey Young
> OLD WAY: [broken] > $obj->{USER_ID} = $r->user; > $obj->{USER_PASS} = $I->get_basic_auth_pw; I'm not sure where you would have gotten this way from, but it is clearly wrong - in both apache 1.3 and 2.0 it is ap_get_basic_auth_pw that populates $r->user (r->user in 2.0 an

Re: Uploading files

2004-06-29 Thread Joe Schaefer
Kemin Zhou <[EMAIL PROTECTED]> writes: > To the Developers, > > I saw this in the documentation for Apache::Request > > for file upload > >tempname [XXX- Does this mesh with brigade API?] > > Provides the name of the spool file. This method is reserved for > debugging purposes, and is

Re: [mp2] $r->senfile() curiosity

2004-06-29 Thread Stas Bekman
Stas Bekman wrote: Nicholas Studt wrote: I don't know if this is a bug, or if I don't understand how bucket brigades work. I have some code which does the following: $r->print( "First" ); $r->sendfile( "/any/file" ); $r->print( "Last" ); This Produces: First Last I thought it shou