Apache::DBI Question

2005-10-16 Thread Jonathan
my webapp is using mysql + apache::dbi to store data on starting up my webapp, i need to pull some data from mysql that is in the parent process (pre fork) pre fork connections are bad though, so i'm wondering: a_ do i have 2 db connect strings: 1. prefork dbh - instantiated prefork

Re: Apache::DBI Question

2005-10-17 Thread Jonathan
r's questions posted on the list. On Oct 16, 2005, at 11:38 PM, Perrin Harkins wrote: Jonathan wrote: on starting up my webapp, i need to pull some data from mysql that is in the parent process (pre fork) pre fork connections are bad though, so i'm wondering: a_ do i have 2

Re: Apache::DBI Question

2005-10-17 Thread Jonathan
a) perrin, thanks again. I checked the DBI pod and source, and couldn't elucidate the info that i needed. some of the source is above my skillset still. b) Here is some: http://modperlbook.org/html/ch01_02.html saw that in the print version. there's a bit in the devel cookbook too, but n

Off Topic - Apache::Session::MySQL and invalid Session IDs

2005-10-17 Thread Jonathan
I'm hoping someone here has a suggestion- I wrote my mod_perl app with Session::File (local development) and am migrating it to Session::MySQL so it could cluster I ran into this issue: If I try to tie with a session id that doesn't exist in the db, the app catches an Apache::Session die

Off Topic - Apache::Session::MySQL and invalid Session IDs

2005-10-17 Thread Jonathan
I'm hoping someone here has a suggestion- I wrote my mod_perl app with Session::File (local development) and am migrating it to Session::MySQL so it could cluster I ran into this issue: If I try to tie with a session id that doesn't exist in the db, the app catches an Apache::Session d

POST vs GET

2005-10-31 Thread Jonathan
Background Running: current stable of mp2 and libapreq-devel Problem: I'm allowing GET style urls to forms for pre-population If the POST action is dirty though, i get cross contamination of vars IF there was a NULL action in the form ie: url: [EMAIL PROTECTED]&s

Re: POST vs GET

2005-10-31 Thread Jonathan
On Oct 31, 2005, at 6:29 PM, Joe Schaefer wrote: pulling POST or GET data for a given fieldname In place of param(), use the body() or args() methods, respectively. Simple and stupid enough. Many thanks!

Re: POST vs GET

2005-10-31 Thread Jonathan
typo. i'm not in good typing mode today - i strained something in my neck, and have having trouble motivating myself to work, much less perform correctly. thanks for the note. On Oct 31, 2005, at 6:18 PM, Philip M. Gollucci wrote: I assume this is a typo, but that should be method="POST"

Re: Questions about memory

2005-11-05 Thread Jonathan
get a copy of the mod perl book on oreilly this chapter is invaluable: http://www.modperlbook.org/html/part2.html read through it online or in the book. it'll answer most of your questions. On Nov 5, 2005, at 3:06 PM, Boysenberry Payne wrote: Now that I'm at the tail end of my cu

Re: Apache, mod_perl and PHP

2005-11-07 Thread Jonathan
i can't talk as to why that's happening - aside from stating the obvious that the server is forgetting to parse things as php. what i will say is this: redo your system as a multi-server setup. run a seperate configuration of mod_perl bound to port 8080 or something on localhost, and prox

Re: Apache::Session's session size

2005-11-30 Thread Jonathan
On Nov 30, 2005, at 12:30 AM, Perrin Harkins wrote: It certainly can be a scoping issue, but it could also be a locking issue. Without seeing a test case that causes it, it's pretty hard to guess. I'd suggest running data dumper and storing each iteration of a 'session' variable to a differ

Re: Solving mod_perl scalability issues for lots of slow connections

2005-12-21 Thread Jonathan
I fwd'd this to a friend with commit access to twisted. hopefully i'll get a response on clarification. But from what I understand, the Twisted networking framework works like this: The twisted 'reactor' is single threaded. It uses select by default, you can use poll. The docs suggest

Re: Apache2::Cookies - getting all names

2005-12-26 Thread Jonathan
This is what I do: my $cookiejar = Apache2::Cookie::Jar->new( $this->{'ApacheRequest'} ); my @names = $cookiejar->cookies(); DEBUG_COOKIE >0 && print STDERR "-| Found These Cookies : " . (join " , ",@names) . "\n"; if ( $cookiejar->cookies( $this->{'CookieDef

Re: mailing list does NOT work

2005-12-28 Thread Jonathan
On Dec 28, 2005, at 5:41 PM, JupiterHost.Net wrote: I see. In that case, since most people don't want to test the unsubscribe mechanism for someone assumedly too dumb or lazy to try it, they should specify what the problem: "I've tried emailing [EMAIL PROTECTED] from [EMAIL PROTECTED] and

Re: [slightly OT] Catalyst? Maypole?

2006-01-20 Thread Jonathan
Forgot to add: I'm big on templating... If you're looking at multiple frameworks, remember to keep templating in mind Making /designing the damn things can take more time than coding your logic. and switching them from one system to another can be a nightmare. Some systems are very i

Re: Patch for Apache::DBI v 0.9901 under MP2 using prefork

2006-01-28 Thread Jonathan
I ran into the same issue. I found a cheap workaround- I have a config handle. Same db, with a readonly user called REGULARNAME_config , connects on prefork to pull in server config info. no matter what i do though, i can't seem to kill the config connection. it just kinda sits there an

Re: hardware prerequisite

2006-02-02 Thread Jonathan
On Feb 2, 2006, at 4:15 AM, Ken Perl wrote: My machine which cpu is celeron 266Mhz is running Debian 3.1, and apche2 modperl2 are configured for running the content manager program WebGUI which needs modperl2. Now my issue is the performance is very bad and very slow even I click edit a link. T

Catching a POST_MAX overage

2006-02-02 Thread Jonathan
I've got POST_MAX set to limit to 100k sub handler { my $r = shift; my $apr = Apache2::Request->new( $r , DISABLE_UPLOADS=>0 , POST_MAX=>100_000 ); } I'm able to upload files < 100 k fine But I just realized - what will happen if i try to upload a 200k file? so i tried

Re: Clarifying Q: Usage suggestions: caching DB metadata with mod_perl?

2006-02-05 Thread Jonathan
On Feb 4, 2006, at 7:03 PM, RJ Herrick wrote: In validating my form input I look at my DB tables to see what types of input they will accept (valid values, maxlength, NULL ok, etc). This data is about the database, not the values coming in off the forms. It will stay the same until I alter

Re: Clarifying Q: Usage suggestions: caching DB metadata with mod_perl?

2006-02-05 Thread Jonathan
Well I couldn't use Data::FormValidator for my exact needs There were too many if/else conditions I needed to implement into my form class that I couldn't do with its constraint and dependency system easily ( a bunch of multiple-field validations that would even change the valid repsonse s

Re: Answered: Need to clean MySQL handle attributes with persistant handle?

2006-02-13 Thread Jonathan
On Feb 13, 2006, at 1:39 PM, Perrin Harkins wrote: Perrin- I would test this myself... except that, crazy as it sounds, I'm not currently using mod_perl. It doesn't matter -- you can test this from any old command-line script. Just open a connection, do an insert that works, do one that

Re: mp2 and httpd 2.2 - future plans / roadmap?

2006-02-16 Thread Jonathan
On Feb 16, 2006, at 11:53 AM, Perrin Harkins wrote: Ohere's a set of instructions on how to download the source and add things to it: http://perl.apache.org/contribute/index.html - Perrin oh great! its in svn too. i'll send stuff to docs-dev asap. thanks!

Re: A question for the newbies

2006-02-16 Thread Jonathan
On Feb 16, 2006, at 12:48 PM, Michael Greenish wrote: What I like about PHP over perl is the ease of variable declaration. I feel I have to use strict with perl, I would like the ability to not have to put "my" in front of every new variable. putting my / our before variables is good though.

Re: A question for the newbies

2006-02-16 Thread Jonathan
Just because I like to advocate TAL: First item? Even item? Odd item? Replaced by Foo{'blah'}{'var'} Replaced by Foo{'blah'}->method() template: renders in browser without code, as it would be seen is valid markup works in multiple languages

Re: (slightly OT) postgresql? firebird? mysql?

2006-02-20 Thread Jonathan
mysql's innodb and mysql 5's 'improvements' should address a lot of issues with previous versions that said, mysql and postgres are great. (i've never used firebird) there's beginning to be less of a difference between mysql and postgres as time progresses though the mysql project esse

Re: TIE

2006-02-23 Thread Jonathan
Most of these non- mod-perl centric questions can be answered faster with a lookup on perlmonks.org oddly though, this list is bouncing today. anyways, a quick search on gdbm on perlmonks likes to this node: http://perlmonks.org/?node_id=405754 which links to this page from the camel

MP2 on FreeBSD - How often to update Apache/MP/Libapreq/Perl?

2006-02-25 Thread Jonathan
I decided to upgrade my production box last night for some apps (its FreeBSD 6.0 ) not fun. the port system does a great job , but without me realizing it, i had set Perl to upgrade as well which means i'm now sifting through all the errors and manually deinstall/reinstall things that c

Re: [OT] modperl vs. Ruby

2006-02-25 Thread Jonathan
there's been a popular link critiquing rails floating around http://discuss.joelonsoftware.com/default.asp?joel.3.309321.3 personally, I hate rails. i'm seeing a lot of colleagues adopt it, with a combination of this reasoning: it 'sucks less than php'( from someone

Re: Apache::Session::MySQL lock troubles

2006-02-26 Thread Jonathan
looks like DBI stops talking to mysql when this happens, is apache hanging? or does it just crash on one page, and then continually crash on subsequent pages? a few ideas: a are you using the same dh / $dbh for session as the rest of your site? if so,

Re: Apache::Session::MySQL lock troubles

2006-02-26 Thread Jonathan
fyi , you can also see that in a regular mysql client show processlist this could also be a pure mysql problem. mysql is a fast db, but its got some weird bugs. i kept having issues with a collation matching problem on a table, because I needed to change the column defaults from

Re: Apache::Session::MySQL lock troubles

2006-02-26 Thread Jonathan
how many connections do you get from a show processlist in mysql? is it possible that some scoping issue had the connect occuring during prefork, instead of postfork, and mysql is dying from apache trying to do everything via 1 persistent connection?

configuration question

2006-04-23 Thread Jonathan
I've got a question on a setup right now, i have modperl set up as such: PerlRequire /path/to/startup.pl PerlSetEnv PERL_RLIMIT_DEFAULTS On PerlModule Apache2::Resource SetHandler 'modperl' PerlResponseHandler 'myapp::api'

Re: perl CGI problem

2006-04-23 Thread Jonathan
On Apr 24, 2006, at 12:01 AM, Philip M. Gollucci wrote: I have a standard formmail perl routine taken verbatim from matt’s script archive. It works. Expect that matt's script archive is ancient, and has serveral known security vunerabilties. Use at your own risk. When I read the original

using mod_perl to debug apache?

2006-04-24 Thread Jonathan
something is odd with my mime types on a custom apache install. sometimes text/css is text/css, other times its sent as text/html (which firefox hates) since i have mp enabled on this server, and mp can plug into apache just about anywhere, i'm wondering if anyone would know of a way to

ORMs under mod_perl

2006-05-17 Thread Jonathan
i'm running really behind schedule on something, so i need to use an ORM to get it off the ground quick ( i generally hate them and prefer pure sql) doing some searches online, I found some issues with mod_perl and Class::DBI from about a year ago -- does anyone know if they're still aro

$c->remote_ip

2006-05-21 Thread Jonathan
n external machines, i'm getting ipv4 numbers (ie 192.168.1.101) anyone know how to force an ipv4 ? //Jonathan Vanasco |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | RoadSound.com / Indie-Rock.net | Collaborative Online Management And Syndication Tools |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Re: Slightly OT: mp2 oriented Captcha Module -- anyone interested ?

2006-06-06 Thread Jonathan
annoying and some will feel disfranchised by... but with a few lines in code I can switch it to audio or text-logic as those parts get written. ( though its not as extensible as i'd like right now.. i'd like to support multiple image rendering options). //Jonathan Vanasco |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | RoadSound.com / Indie-Rock.net | Collaborative Online Management And Syndication Tools |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Re: Question about mod_perl 2 and Perl CGI form processor

2006-06-08 Thread Jonathan
org/docs/2.0/user/coding/coding.html#Cleaning_up http://perl.apache.org/docs/general/perl_reference/ perl_reference.html#myScoped_Variable_in_Nested_Subroutines //Jonathan Vanasco |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | RoadSound.com / Indie-Rock.net | Collaborative Online Management And Syndication Tools |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Re: GDGraph and mod_perl

2006-06-25 Thread Jonathan
d.net ) running php- cgi . you'll get at least identical performance to mod_php under apache, and you can jail the sucker easily (which is pretty much required if you use any open source php apps). toss in eaccelerator in cache only mode, and you blow mod_php performance away.

question: ssl login

2006-07-10 Thread Jonathan
-> mod_perl ( port 8000 ) b- in that scenario, is there any way to make sure that a login happened via SSL ? the $ENV{HTTPS} , like in the mp docs , would only be set if we were using the same modperl for both 80 and 443 and serving directly, correct ? any pointers would be grea

Re: Authentication

2006-08-05 Thread Jonathan
On Aug 5, 2006, at 6:07 AM, Radoslaw Zielinski wrote: Thanks for explaining, I wasn't aware of cases like this. For some reason, I thought you mean clients on some crazy PPP link which breaks once every few minutes. yeah, its extremely common with ISPs in the US. its also common with busine

Re: issue with DBD::Pg, server side prepares, and persistent connections?

2006-08-05 Thread Jonathan
27; is private to the session. so two different connections will each have their own statement handle. my guess on things to look into: how is dpd::pg caching the statement handle? are they even doing it? where is the statment handle being cached, accessed, checked? in the memor

Re: Apache2::AuthCookie

2006-08-06 Thread Jonathan
based on everything that philip mentioned, my guess is that the modules are not being imported correctly personally, i solve lib issues in mod_perl as such: i have a 'use lib' line in startup.pl that calls in my handler lib, and various external libs use lib qw(

Re: FreeBSD mp related updates

2006-08-07 Thread Jonathan
: Update: www/p5-Apache-DBI 1.00 -> 1.02, fix download URL Apache-DBI 1.02 was released to CPAN Fixes a typo in the debugging Apache-Peek 1.06 was released to CPAN. Fixes perl 5.8.8+ compiles An Apache-Peek FreeBSD port PR is forth-coming, AWESOME THANK YOU. // Jonat

MaxClients and Apache::DBI ?

2006-08-08 Thread Jonathan
I'm running prefork as such: StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients75 MaxRequestsPerChild 1 Using ab, I benched a page that has 3 db handles: session read write session has 1 connection of its own. read/write are c

Re: Redhat up2date breaking mod_perl installation?

2006-08-11 Thread Jonathan
Your box is now running apache: httpd 2.0.52 28.ent i386 perl: perl 5.8.5 36.RHEL4 i386 i don't see any mod_perl port (httpd-perl /modperl/etc) my guess is that mod_perl was compiled from source, against the old perl and the old apache, because there is no mod_perl p

Re: Redhat up2date breaking mod_perl installation?

2006-08-11 Thread Jonathan
On Aug 11, 2006, at 7:06 PM, Mark Hedges wrote: This happened to me when running up2date on rhel4 too. Had to re-install all CPAN modules. We used Apache2/Mod_perl2 compiled from source because the RedHate vendor lib distrib of Apache2/mod_perl1.99 and savagely hacked libraries suck eggs and s

Re: apache2::Status & B::TerseSize

2006-08-11 Thread Jonathan
On Aug 12, 2006, at 2:16 AM, Philip M. Gollucci wrote: I generally just do this: SetHandler perl-script PerlResponseHandler Apache2::Status PerlSetVar StatusOptionsAll On PerlSetVar StatusDeparseOptions "-p -sC" which is what you wrote. when you do that, do memory stats work for t

Re: apache2::Status & B::TerseSize

2006-08-12 Thread Jonathan
I'm finding some issues with the 2 modules i think some of it happens when you have a module that has no subroutines ( ie , a namespace placeholder or something ) check out ~ line 551 in Apache2::Status adding a few over-the-top checks seems to help, and gets memory use working on more i

Re: apache2::Status & B::TerseSize

2006-08-12 Thread Jonathan
ok, also found I also figured this out: in B::TerseSize, line 634 - my $script = $q->script_name; + my$script ; + if ( defined $q && $q ) + { + $script = $q->script_name; + } Killing that makes a lot more things work too. The only caveat of that, is that 'memory usage' doesn't appe

Re: Prefork not sharing on FreeBSD, but sharing on OSX ?

2006-08-12 Thread Jonathan
On Aug 12, 2006, at 10:10 PM, Philip M. Gollucci wrote: What are you using to measure this on each ? ok. this is f'd up i tried Gtop on my production box (FreeBSD 6)- the children were 16mb meanwhile, top is showing me this: www 97088 0.0 25.3 260548 254976 ?? I12:42AM 0:00.

Re: mod_perl2 installed, but scripts slow

2006-08-20 Thread Jonathan
i'm not going to speak of the mod_perl install setup, but I will say this: it sounds like a lot of the speed issues have to do with compile issues. mod perl speeds up serving content by caching the perl modules. most people use a startup.pl file that is included from httpd.con in a

Re: Prefork not sharing on FreeBSD, but sharing on OSX ?

2006-08-23 Thread Jonathan
27;ve been profiling with top/ps , RUSAGE (BSD:Resource), and GTOP. all 3 give me waaay different numbers. off by 10s of mbs each. The low amount of shared memory on all these setups makes me wonder though. First off, Jonathan T and are running the same setup and compile options. I believ

Re: Prefork not sharing on FreeBSD, but sharing on OSX ?

2006-08-23 Thread Jonathan
On Aug 23, 2006, at 6:05 PM, Jonathan Tweed wrote: I'm not clear on how these numbers are interpreted, but it looks to me that the FreeBSD is allocating all 30MB at startup. Have I missed something in httpd.conf that will cause this? It also looks like 64656 has been replaced by 6483

Re: Prefork not sharing on FreeBSD, but sharing on OSX ?

2006-08-23 Thread Jonathan
i formatted a spare drive and isntalled ubuntu- then installed my stuff here are osx , freebsd and ubuntu (debian ) all numbers are from ps aux , and list ( in this order ) VSZ RSS Startup OSX FreeBSD Ub

Re: Prefork not sharing on FreeBSD, but sharing on OSX ?

2006-08-24 Thread Jonathan
On Aug 24, 2006, at 2:59 AM, Philip M. Gollucci wrote: Every one of those looks as I would expect. really? i'd expect the memory usage to be more uniform RSS is not shared RAM, but memory resident -- the rest in is swapped out. yeah, i didn't finish the gtop tests yet. i kind of passed o

forking/subprocess/etc

2006-09-04 Thread Jonathan
too much memory child processes will persist as zombies when complete i've got to be missing something anyone have a clue? the archives on the list aren't very helpful. // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Logging to a file

2006-09-21 Thread Jonathan
I need to introduce some new functionality to my webapp app, and I'm not quite sure if i can do it in MP. Hoping someone here can offer a suggestion. essentially, I have a high traffic syndicated image server that is currently serving from a vanilla apache instance. right now, its not log

Re: Memory leak in mod_perl?

2006-09-27 Thread Jonathan
IIRC, didn't we track this to Postgresql ? If so, we should relocate to the postgresql lists. Not officially/definitively, though i've already posted it to the pgsql lists. ( and ruled out bsd as being the cause thanks to some friends with NYC BSD UG )

Re: possible memory leaks, FreeBSD,mod_perl/1.29

2006-09-29 Thread Jonathan
That's probably just normal apache growth-- possibly nothing to do with modperl i'd suggest using: Devel::GC::Helper and Devel::Leak to check refcounts... see what's going on There's a lot of crazy ways you can have process growth within mod- perl that are just perl

Re: what's the best way to share variables between main script and template files

2006-10-07 Thread Jonathan
On Oct 7, 2006, at 11:12 AM, GZ Dark wrote: But is it the best way to use global vars for the sharing under modperl?is there any other good way?Thanks. pnotes personally though, i think you should opt for a more OOP approach and create a new header and footer object , explicitly passin

Re: AW: Cannot restart or stop Apache after several days of running

2006-10-17 Thread Jonathan
On Oct 17, 2006, at 2:55 PM, Henrik Steffen wrote: oops, I didn't know that. I have always done it with "apachectl restart" until now, and never had any trouble with it. Note though: apachectl is just a bash script which does a simple "/usr/sbin/httpd -k restart". Is this still a problem?

Re: CSRF (Was: XSS evasion)

2006-10-17 Thread Jonathan
Sorry for the OT ness of this thread--- I spent the better part of the past 2 days trying to do a 1pass content filtering on xss attacks-- including flash. breaking down every piece of user input 2x wasn't nice on my server load. I liked HTML::TagFilter, but it was making broken tags and I

Re: [QUESTION] How to include content from another site (on the same server)?

2006-10-19 Thread Jonathan
off the top of my head.. a- use an ssi or include to the file, but just use an absolute path, or create a synlink so it falls into an easily readable section. if its on the same machine, unless apache is jailed, there's a way to get to your data. b- query the blog's cms s

status code / constant question

2006-10-23 Thread Jonathan
the server error log. if i return NULL / undef -- i'm fine. the current workaround, is for me to do return ( $r->status() >= 200 && $r->status()<=204 ) ? 0 : $r->status(); which is just stupid. i must be missing something, or ha

Re: Transhandler? Redirect permanent?

2006-10-25 Thread Jonathan
{ 'regex' => qr/^\/findmeon\/findmeons\/([\w]{32})\/v1(:?\/)?$/, 'package' => 'FindMeOn::Syndicate::Base::Fin

Re: looking for recommendations for a perl user account script

2006-11-02 Thread Jonathan
On Nov 1, 2006, at 11:32 AM, Neville Aga wrote: Hello, I have a existing website which I am looking to add in a piece for users to sign up for accounts. I am searching around Google and I find a few scripts mentioned - account manager / account manager lite from site interactive (last upda

Re: retrieving cached connections

2006-11-29 Thread Jonathan
the problem AND teaches people how to do things the right way. +1 // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | FindMeOn.com - The cure for Multiple Web Personality Disorder | Web Identity Management and 3D So

Re: Apache2::Status "Memory Usage" fails on Debian

2006-11-30 Thread Jonathan
while back check out this: http://comments.gmane.org/gmane.comp.apache.mod-perl/24906 i have 2 posts at the bottom, which i'll just paste here: = Jonathan | 13 Aug 00:46 I'm finding some issues with the 2 modules i think some of it happens when you have a module that has no

Re: using light/heavy apache

2006-12-01 Thread Jonathan
inx ( http://wiki.codemongers.com ) using it, i've really gotten a lot more out of my mod_perl servers. // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | FindMeOn.com - The cure for Multiple Web Personality Disorder | Web Identity

Re: light+ssl/heavy and conf management

2006-12-04 Thread Jonathan
rate my system to this setup, and i now can manage all of my dev and production machines with no issues. // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | FindMeOn.com

Re: [BUG] Inconsistent $r->print() behavior with references

2003-12-10 Thread Jonathan Field
using it and it's not supported by mod_perl 2.0. If >you have a scalar reference containing a string to be printed, >dereference it before sending it to print. > > It's now documented as such. > > Jonathan, please adjust your code to dereference the sca

Registry not loaded...script still works

2004-02-09 Thread Jonathan Mangin
I have a static installation of mod_perl-1.29 with apache-1.3.29. Apache::Registry lines are commented in httpd.conf and startup.pl. Apache::Status shows that ::Registry is not loaded. Why does my script still work?? PerlRequire /usr/local/apache/perl/lib/startup.pl # PerlFreshRestart On PerlTain

Re: Registry not loaded...script still works

2004-02-09 Thread Jonathan Mangin
> It can work as a CGI script without Apache::Registry. If you want to > be sure what's going on, put some debugging statements in the code so > that they will tell you what is being ewxecuted (and, by a process of > deduction, what isn't). > Well, silly me. :) I expect (and prefer) directive

Re: Mail bounced thru Kazakhstan -- This list only

2004-02-09 Thread Jonathan Mangin
Doh. Tell me it's not me and I'll quit uglying up your inbox. --Jon - Original Message - From: "Dooley, Michael" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, February 09, 2004 5:02 PM Subject: RE: Mail bounced thru Kazakhstan -- This list only > its n

PerlEnable directive suggestion

2004-09-25 Thread Jonathan Sailor
e) in UserDirs, with something like: PerlEnable off to prevent users from using .htaccess files to install their PerlHandlers and running code inside Apache's webspace. - -Jonathan Sailor _ "Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effe

New to ModPerl 2

2004-11-14 Thread jonathan vanasco
I'm new to using mod_perl2 A few years ago I made a web application in perl cgi, moved it over to mod_perl1 about a year ago, and now I want to continue development of it in mod_perl2 I probably made this wrong to begin with, as I learned from a handful of mod_perl books In mod_perl1, I have a

Re: New to ModPerl 2

2004-11-14 Thread jonathan vanasco
On Nov 14, 2004, at 4:06 PM, Kurt Hansen wrote: Markus Wichitill wrote: Apache::Request 2.0 (libapreq2), like mod_perl 2.0, is officially still in development, but mostly done. http://httpd.apache.org/apreq/ I second the advice to use libapreq2 if your code is based on libapreq1. I'm almost done

Re: New to ModPerl 2

2004-11-14 Thread jonathan vanasco
On Nov 14, 2004, at 7:04 PM, Dan Brian wrote: I'll add to your list (of potential confusion) that $r->args may not produce the expected results, and not just because of the change away from array context described at:

Re: New to ModPerl 2

2004-11-15 Thread jonathan vanasco
Assuming this is a segfault, i get the same error: [Tue Nov 16 00:45:17 2004] [notice] child pid 2237 exit signal Bus error (10) The only difference is the env variable to ApacheCookie This works: == #file:MyApache/Rocks.pm #-- package MyApache::Rocks;

Re: Segfaults with mod_php + mod_perl + mysql + mysqli

2004-11-16 Thread jonathan vanasco
On Nov 16, 2004, at 3:58 AM, Sönke Ruempler wrote: Hi, I asked the php-install and php-dev lists before - they didn't answer. I dunno if it's PHP and/or Perl related - so before I open a PHP Bug Report, maybe here someone has an idea: << Hi, Because I upgraded my MySQL server to 4.1.7, I tried to

Re: New to ModPerl 2

2004-11-16 Thread Jonathan Vanasco
I'm just wondering how people have handled cookie stuff before -- There seems to be a group that has encountered this error, and another group that has not -- if anyone is a member of the latter group and can share their approach to cookie/request handling (assuming its more than just substitut

Advice needed on custom webapp framework

2004-11-17 Thread jonathan vanasco
I built for mod_perl1 a customer webapp framework It functions as 2 perl modules/package sets /lib/WebAppFramework /lib/Website For each website/webapp, i make a new /lib/Website that subclasses the WebAppFramework (which handles users, email, webpage generation, etc -- and makes heavy use of cpa

Re: Advice needed on custom webapp framework

2004-11-17 Thread Jonathan Vanasco
Thanks! Right now, I should have been more clear, though -- I'm am kinda doing a bit of each approach you mentioned -- but i am in need of a little more help. I think what i want is more of your second approach right now... Let me elaborate for a moment WebAppFramework::DB.pm Base C

Re: Advice needed on custom webapp framework

2004-11-17 Thread Jonathan Vanasco
Because i'm an idiot and didn't realize that I was doing that! I'm just used to passing refs everywhere. to get into the whole 'No More passing large vars around' thing, i just stopped passing everything but a ref Silly me! On Nov 17, 2004, at 1:25 PM, Tom Schindl wrote: I don't answer your que

Re: Advice needed on custom webapp framework

2004-11-17 Thread Jonathan Vanasco
I'm pretty damn sure you did get that right! That would do EXACTLY what i want it to do! I'm gonna play around with that approach when i get home tonight. Thanks! On Nov 17, 2004, at 2:26 PM, Tom Schindl wrote: What you really need here when talking about Pattern-Programming is a "Factory-Class

Re: Urgent justification for perl

2004-11-19 Thread Jonathan Vanasco
Justification using perl/mod_perl for what, and opposed to what? A security risk in what way? There's a 'Success Stories' page here, that might have some things you want/need: http://perl.apache.org/outstanding/index.html On Nov 19, 2004, at 7:35 AM, Martin Moss wrote: All, I've had an urgent r

Re: Urgent justification for perl

2004-11-19 Thread Jonathan Vanasco
I think you're getting mod_perl confused with mod girls. They wear white boots, and pose in magazines. On Nov 19, 2004, at 2:17 PM, [EMAIL PROTECTED] wrote: 3) it seem's sexy one of those is a 'valid reason' above all others, see if you can tell which one ;> regards Steph -- Report problems: ht

Re: mod_perlservice? what the heck?

2004-11-24 Thread Jonathan Vanasco
It makes a lot of sense to me Having spent time building lots of webapps with flash, and knowing many people who still do so and come from art school backgrounds, their system seems simple enough and tailored exactly for someone who doesn't know programming It seems to be an easily configurable

Re: mod_perl marketing

2004-11-30 Thread Jonathan Vanasco
Amazon itself might be mason under fastcgi, but its imdb.com subsidiary seems to be mod_perl by the job descriptions here (there was a 'love movies? know perl?' job link in big letters on the imbd front page when i looked up a movie today) http://www.amazon.com/exec/obidos/tg/stores/static/-

Re: mod_perl marketing

2004-11-30 Thread Jonathan Vanasco
People want benchmarks. Little graphs that show "Speed", and why it matters to them C is going to be faster for certain things, Perl for others. Thats a given. But over half of the speed optimizations one language has over another are useless in any given application. If you give raw numbers,

Re: Apache::Session permissions problem

2003-11-13 Thread Jonathan Swartz
Perrin Harkins writes: > Sorry if I came off overly critical. Many people have had problems > trying to use Mason with Apache::Session because of that article. This > is why on the Mason website the link to that article describes it as > outdated and steers people to newer documentation. (It pr

Re: Apache::Session permissions problem

2003-11-13 Thread Jonathan Swartz
> > > The latest Apache::Session on CPAN is version 1.54, released in October > > 2001. > > > > Perhaps this answers my previous question. :) > > Yes, it is far from actively maintained. I've been considering > recommending that people use CGI::Session instead, since it is better > documented and

Re: Apache::Session permissions problem

2003-11-13 Thread Jonathan Swartz
> On Thu, 2003-11-13 at 15:18, Jonathan Swartz wrote: > > Interesting! I'll take a look. Have you seen any comparisons of features > > anywhere? > > No, I don't think anyone has written up a comparison. Well, at first glance it looks promising - lots of documenta

Re: Apache::Session permissions problem

2003-11-13 Thread Jonathan Swartz
> On Thu, 2003-11-13 at 16:47, Jonathan Swartz wrote: > > So the default MySQL driver does locking just like Apache::Session, and > > there's no built-in way to turn it locking. So it's possible that the same > > locking problems that plague Apache::Session would h

Unable to install mod_perl using several tutorials...

2003-11-26 Thread Jonathan Villa
Ok, I'm trying to install OpenWebMail but I keep getting an Internal Server Error when I try to access it via the web. Here is what I have/did Installed: Apache 1.3.29/mod_ssl 2.8.16-1.3.29/PHP 4.3.4 Installed: v5.8.2 built for i686-linux I'm trying to install mod_perl 1.29 and I've followed sev

Re: Unable to install mod_perl using several tutorials...

2003-11-26 Thread Jonathan Villa
thout mod_perl? And how can I get the simple index.pl file to work, I think I would feel more comfortable once that is working... tvilliers wrote: On Wed, 26 Nov 2003 09:36:39 -0600, Jonathan Villa wrote: Ok, I'm trying to install OpenWebMail but I keep getting an Internal Server Error

Re: Unable to install mod_perl using several tutorials...

2003-11-26 Thread Jonathan Villa
I even tried a simple index.html within the /var/www/cgi-bin dir... FYI, I do have suidperl installed Jonathan Villa wrote: I did the Content-Type and nothing new... So you're saying that Openwebmail does not require mod_perl? This is the main thing I need to get setup...so perhaps I s

Re: Unable to install mod_perl using several tutorials...

2003-11-26 Thread Jonathan Villa
Sorry for the repeats I noticed that on the top of the pages, there is #!/usr/bin/suidperl -T so I tried that on the command line and get this: Script is not setuid/setgid in suidperl ??? Jonathan Villa wrote: I did the Content-Type and nothing new... So you're saying that Openwe

Re: Unable to install mod_perl using several tutorials...

2003-11-26 Thread Jonathan Villa
Ok, I should have read the FAQ for Openwebmail first... which says that openwebmail cannot be used with mod_perl... that would have saved me some time in thinking that perhaps it was because of mod_perl and joining this list... thanks for at least reading this... Jonathan Villa wrote: Sorry

  1   2   3   4   5   6   7   8   9   >