Re: mod_perl invokation valid?
Hi Charlie, On Fri, 10 Jan 2003, Charlie Smith wrote: > Thanks for your quick response. I was informed that we were not running mod > Perl, but at the same time the env hash indicated we were, Read the Guide, it has a section specifically addressing this issue. > So, I'll try and clarify my question. We would like to take advantage of > caching with PERL, and make use of the DBI packages as well. It would seem > that there is duplicity that needs to be resolved here. The env hash for apache > indicates we're running Perl ver 5.00503. I installed ver 5.8 to get the DBI > stuff working. That probably wasn't necessary unless there's a 5.8 dependency in the particular modules you're using - I still routinely use DBI with Perl 5.00503 and MySQL in live servers. > The mod_perl is part of the apache configuration that was there > when I came on board. It would seem to me that we need to upgrade the > apache/Perl relationship so that the env hash and programs recognize Perl 5.8. > > Question: Do I need to recompile anything, You need to recompile mod_perl if you want to use 5.8 with your mod_perl scripts. It's explained in the Guide and it's a lot easier than it looks at first. > I've got some other apps that use CGI and HTTP modules associated with perl > 5.00503. They don't appear to work with PERL 5.8 as configured on my machine. > I'd like to get these working with PERL 5.8 as well. Then I guess you're going to have to do some recoding... > Another related question: Just to understand part of your response. Looks like > I'm already ok with current versions of apache and mod_perl at 1.3.19 and 1.25? I don't think I quite said that. You should upgrade to the latest stable Apache and mod_perl for several reasons, security and bug fixes being two of them. My recommendation would be that you always compile your own Apache and mod_perl from the sources whenever you can. > How are things in grand old England? Snowing (but then I'm not going to stay here for very long... :) 73, Ged.
[OT] Re: [mod_perl] Re: mod_perl invokation valid?
Charlie Smith wrote: How are things in grand old England? Well our country's gone to the dogs, our government is corrupt and ineffective and it's bloody cold at the moment too. But the sun is shining so a true Englishman won't complain. ;-) -- Jonathan M. Hollin Technical Director: Digital-Word Co. (http://digital-word.com/) Co-ordinator: WYPUG (http://wypug.pm.org/)
Re: mod_perl invokation valid?
Thanks for your quick response. I was informed that we were not running mod Perl, but at the same time the env hash indicated we were, so I really was not clear. Sorry. So, I'll try and clarify my question. We would like to take advantage of caching with PERL, and make use of the DBI packages as well. It would seem that there is duplicity that needs to be resolved here. The env hash for apache indicates we're running Perl ver 5.00503. I installed ver 5.8 to get the DBI stuff working. The mod_perl is part of the apache configuration that was there when I came on board. It would seem to me that we need to upgrade the apache/Perl relationship so that the env hash and programs recognize Perl 5.8. Question: Do I need to recompile anything, or are there just a couple httpd vars that I could change so that we can cache Perl 5.8? I've got some other apps that use CGI and HTTP modules associated with perl 5.00503. They don't appear to work with PERL 5.8 as configured on my machine. I'd like to get these working with PERL 5.8 as well. Another related question: Just to understand part of your response. Looks like I'm already ok with current versions of apache and mod_perl at 1.3.19 and 1.25? How are things in grand old England? Thanks, Charlie reference original question: From: Charlie Smith To: [EMAIL PROTECTED] Date: 1/6/2003 8:41 AM Subject: mod_perl invokation valid? CC: [EMAIL PROTECTED] I'm a newbee at this, so please have patience. Question: Even though I have PERL 5.8 installed, we wish to get mod_perl installed to make use of caching. Currently, a listing of the %ENV hash indicates that we're running mod_perl/1.25. PERL 5.8 is also listed out in the PERL5LIB env variable in httpd.conf. Is it correct assume we'll see a speed up after upgrading mod_perl?IF not, what else might need to be done to acheive a performance improvement with caching PERL. My configuration includes: GCC 2.95, PERL 5.8, DBI 1.3 and DBD::Oracle 1.12, Oracle 9.0.1 SunOS 5.8 Generic 108528-12 sun4u sparc SUNW, Ultra-80, Apache 1.3.19 mod_perl/1.25 Thanks, Charlie 1/6/02>>> "Ged Haywood" <[EMAIL PROTECTED]> 01/06/03 09:32AM >>>Hi there,On Mon, 6 Jan 2003, Charlie Smith wrote:[snip,snip]> assume we'll see a speed up after upgrading mod_perl?Your question is not clear. It depends on what you're doing with it.If you're already using mod_perl then simply upgrading it won't giveyou a substantial performance improvement.Read the mod_perl Guide, you'll find it at the mod_perl home pagehttp://perl.apache.org and it tells you a lot about performancetuning and other useful stuff.> My configuration includes:> GCC 2.95, PERL 5.8, DBI 1.3 and DBD::Oracle 1.12, Oracle 9.0.1SunOS 5.8 Generic> 108528-12 sun4u sparc SUNW, Ultra-80, Apache 1.3.19 mod_perl/1.25You should upgrade to the latest versions of Apache and mod_perl(versions 1.3.x and 1.2x, not mod_perl 1.99 which is really 2.0x:)There have been problems now and again with SunOS but don't letme worry you about that, it might not happen.73,Ged. -- This message may contain confidential information, and is intended only for the use of the individual(s) to whom it is addressed. ==
Re: mod_perl invokation valid?
Charlie Smith wrote: Question: Even though I have PERL 5.8 installed, we wish to get mod_perl installed to make use of caching. Currently, a listing of the %ENV hash indicates that we're running mod_perl/1.25. Okay, so you have mod_perl installed and now you want to use it. Take a look at the documentation for the Apache::Registry module that comes with mod_perl. That will help you run your CGI scripts under mod_perl. - Perrin
Re: mod_perl invokation valid?
Hi there, On Mon, 6 Jan 2003, Charlie Smith wrote: [snip,snip] > assume we'll see a speed up after upgrading mod_perl? Your question is not clear. It depends on what you're doing with it. If you're already using mod_perl then simply upgrading it won't give you a substantial performance improvement. Read the mod_perl Guide, you'll find it at the mod_perl home page http://perl.apache.org and it tells you a lot about performance tuning and other useful stuff. > My configuration includes: > GCC 2.95, PERL 5.8, DBI 1.3 and DBD::Oracle 1.12, Oracle 9.0.1SunOS 5.8 Generic > 108528-12 sun4u sparc SUNW, Ultra-80, Apache 1.3.19 mod_perl/1.25 You should upgrade to the latest versions of Apache and mod_perl (versions 1.3.x and 1.2x, not mod_perl 1.99 which is really 2.0x:) There have been problems now and again with SunOS but don't let me worry you about that, it might not happen. 73, Ged.
mod_perl invokation valid?
I'm a newbee at this, so please have patience. Question: Even though I have PERL 5.8 installed, we wish to get mod_perl installed to make use of caching. Currently, a listing of the %ENV hash indicates that we're running mod_perl/1.25. PERL 5.8 is also listed out in the PERL5LIB env variable in httpd.conf. Is it correct assume we'll see a speed up after upgrading mod_perl?IF not, what else might need to be done to acheive a performance improvement with caching PERL. My configuration includes: GCC 2.95, PERL 5.8, DBI 1.3 and DBD::Oracle 1.12, Oracle 9.0.1 SunOS 5.8 Generic 108528-12 sun4u sparc SUNW, Ultra-80, Apache 1.3.19 mod_perl/1.25 Thanks, Charlie 1/6/02 -- This message may contain confidential information, and is intended only for the use of the individual(s) to whom it is addressed. ==