segmentation fault after installing mod_perl2

2005-10-26 Thread Michael Greenish
Hello, I am trying to migrate from mod_cgi to mod_perl. My system is as follows: linux suse 9.2 (installed via rpm from suse) apache2-mod_php4-4.3.8-8.9 apache2-2.0.50-7.3 apache2-devel-2.0.50-7.3 apache2-prefork-2.0.50-7.3 apache2-mod_perl-2.0.1-2.1 I added the 'LoadModule perl_module /usr/li

apache::session not writing to db

2005-12-18 Thread Michael Greenish
Hello, This seems be a rather basic problem but I haven't found the solution in the last several hours and have run out of ideas. I am using MP2 with Apache::Session 1.80. I have created a session object class so I can keep the retrieving of the session out of my main code. The session is calle

Re: apache::session not writing to db

2005-12-18 Thread Michael Greenish
tabase. I couldn't track down the location of the MySQL binary files to see if an actual update is being performed. And I killed and restarted Apache2 just in case. --- Malcolm J Harwood <[EMAIL PROTECTED]> wrote: > On Sunday 18 December 2005 02:31 pm, Michael > Greenish wrote:

modperl not recognizing array reference

2006-01-12 Thread Michael Greenish
Hello, This should be very easy but apache is not letting me do this. I have a list of file names stored in an array. The list is created as follows: push @resizeList, $img->{path} . $img->{file}; The list is passed to a package via a new method as follows: my $imageResize = Ishare::Clas

RE: modperl not recognizing array reference

2006-01-12 Thread Michael Greenish
Since I am passing a reference to an anonymous hash when calling the new method, the @_ only contains one element, that reference. The '$objRef = shift;' in the constructor brings the hash ref into the function. When I print out the $self in my resize function, I see the list, so it definitely ex

Re: modperl not recognizing array reference

2006-01-12 Thread Michael Greenish
an 12, 2006 at 11:09:32AM -0800, Michael > Greenish wrote: > > > sub resizeImgs { > > my $self = shift; > > foreach my $file( @$self->{resize_list} ) { > > ... > > > > I get the following error: > > > > Not an ARRAY reference at

Re: A question for the newbies

2006-02-16 Thread Michael Greenish
I've been writing in perl for just over a year. I was a developer in embedded controls, but had an idea for a website and some free time so started learning perl. I had a strong C++ background so understood OO pretty well. I chose Perl because I had heard so much about it. My first site was pur

external redirect after internal redirect not working

2006-03-21 Thread Michael Greenish
Hello, I am attempting an external redirect after an internal redirect and it isn't working. Below are code excerpts: use strict; use DBI; use Apache2::RequestRec(); use APR::Table(); use CGI; $CGI::POST_MAX=1024 * 1024; # max 1M posts $CGI::DISABLE_UPLOADS = 0; # change to 1 to disable uploa

Re: external redirect after internal redirect not working

2006-03-22 Thread Michael Greenish
hanks, greanie --- Tom Schindl <[EMAIL PROTECTED]> wrote: > Fred Moyer wrote: > > Michael Greenish wrote: > >> use strict; > > [..] > > > >> # redirect > >> $r->headers_out->set( Location => $redirectURL ); > >> $r->status( RE

Re: external redirect after internal redirect not working

2006-03-22 Thread Michael Greenish
another way to perform the redirect in registry mode? > Michael Greenish wrote: > > I am working in modperl::registry (not writing my > own > > handlers) and I found this recipe on the modperl > > website: > > > > > http://perl.apache.org/docs/2.0/user/coding/cooking.

external redirect after internal redirect not working

2006-06-22 Thread Michael Greenish
Hello, A few months ago, I wrote to this group because external redirects for requests from internal redirects were not working while redirects from normal requests worked fine. I was running in registry mode and was told that that was probably the source of the problem. However, I have changed

permission on document root

2006-08-11 Thread Michael Greenish
Hello, I am having problems with permissions when only the web url is typed into the browser. I know this should be just an apache config issue I have two sites being served on this server and they both have the same configuration in the vhost file. One site uses mod_perl and has problems, the

Re: design patters with mod_perl

2006-09-13 Thread Michael Greenish
I definitely recommend using a template engine and using an Model-View-Controller (MVC) framework; the template engine helps with the view part. I was first introduced to it on the tutorials under documentation on perl.apache.org. It took me a little while to figure out how to create & instantiate

apache2::reload causing 500 errors on return statement

2006-10-18 Thread Michael Greenish
Hello, I just added apache2::reload to config & handlers, classes, packages for my application. However, everywhere I have "return OK", I get an error: "Not a CODE reference at /http/greanie/IndexHandler.pm on ..." and request returns the page and a 500 error (in browser, I see rendered page

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Michael Greenish
06, at 10:59 AM, Michael Greenish wrote: > Hello, > > I just added apache2::reload to config & handlers, classes, > packages for my application. However, everywhere I have "return > OK", I get an error: > > "Not a CODE reference at /http/greanie/Index

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Michael Greenish
> Do you import OK from Apache2::Const in your script? If you don't > return OK, do you still have that message? > - Perrin I do import the constants: use Apache2::Const qw( OK FORBIDDEN REDIRECT :log ); When I don't return OK, I got an error as well but not from the handler (i.e. no

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Michael Greenish
> I also had to make the follow addition to my config file: > >PerlInitHandler Apache2::Reload >PerlSetVar ReloadAll Off > > I never figured out how to check if it was actually picking up changes > on its own. > > For now, I have reverted to not using Apache2::Reload, which is kind

Re: apache2::reload causing 500 errors on return statement

2006-10-23 Thread Michael Greenish
ot; in the top of my module? Is that why I am getting the error on my return OK call? - Original Message From: Philippe M. Chiasson <[EMAIL PROTECTED]> To: Michael Greenish <[EMAIL PROTECTED]> Cc: modperl@perl.apache.org Sent: Friday, October 20, 2006 7:31:13 PM Subject: Re: apach

uploading problem

2007-03-30 Thread Michael Greenish
Hello, I doubt this is specifically a modperl problem but if not, perhaps someone can point me to a better group to post this message with? First, I am using: modperl 2.0.x perl 5.8.5 Linux I have a page on a site where users can upload as many pictures as they like. I am using the cgi class

Re: TIF image file

2007-05-08 Thread Michael Greenish
I wrote some classes and functions to convert & resize images on the fly using image magick. Plus they are cached so they only have to be converted once, unless they are updated of course. Let me know if you are interested. greanie - Original Message From: "Vaughn, Terry" <[EMAIL PRO

Re: Which template engine is best to create a perl site

2007-06-05 Thread Michael Greenish
Hello. Rather than being most concerned about the learning curve, I would be more concerned with using a flexible and powerful template engine. Because once you start down the road of building templates, if your template engine isn't capable enough, you have to go back and redo them and maybe