Re: Problem with libapreq2-2.12

2009-09-25 Thread jesserthompson
That was from May. Is there a fix? Jesse Adam Prime wrote: > > > There is a thread in apreq-dev about this issue: > > http://marc.info/?l=apreq-dev&m=124276135127808&w=2 > > Apparently it has something to do with the machine that the tarball was > built on. > > Adam > > > mod_perl Use

Re: double mod_perl initialization

2009-09-25 Thread Jonathan Swartz
Nope, I still get the error in the logs. It just takes a few seconds to show up. On Sep 25, 2009, at 11:20 AM, Clinton Gormley wrote: Hm. No compile errors would be bad. But I put an error in one of my modules (that only gets loaded the second time) and started apache, and got error log out

Re: distributing software built on mod_perl

2009-09-25 Thread Fred Moyer
On Fri, Sep 25, 2009 at 7:32 AM, Mike Barborak wrote: > I think I see what you're saying. It seems like a very expensive > problem to solve. It must be a barrier to people choosing mod_perl to > develop their apps because it might be the case that their > distribution and installation process is m

Re: double mod_perl initialization

2009-09-25 Thread Clinton Gormley
> Hm. No compile errors would be bad. But I put an error in one of my > modules (that only gets loaded the second time) and started apache, > and got error log output. I wonder what we're doing differently? Shut down apache, then do "apachectl restart" > > Jon >

Re: Really old bugs (semaphore leak) still in Apache???

2009-09-25 Thread Fred Moyer
On Fri, Sep 25, 2009 at 10:59 AM, Igor Chudov wrote: > [note that this is possibly not am od_perl bug] > > After a little over a month of using apache, and restarting it many times, I > started getting errors such as this one: Is this an apache bug, or a mod_perl bug? If it is an apache bug, hav

Really old bugs (semaphore leak) still in Apache???

2009-09-25 Thread Igor Chudov
[note that this is possibly not am od_perl bug] After a little over a month of using apache, and restarting it many times, I started getting errors such as this one: No space left on device: Couldn't create accept lock The issue is nothing like what the error message suggests: it is not a space

Re: double mod_perl initialization

2009-09-25 Thread Jonathan Swartz
There's only one small gotcha that I've found, and that occurs in this situation: - apache isn't running - you do : apachectl restart - there is a compile time bug, and apache dies The gotcha is that you don't get any STDERR or log output in this situation. However, you're only ever likely to

Re: double mod_perl initialization

2009-09-25 Thread Clinton Gormley
> If I don't ever plan to use graceful restarts, and I believe that > smaller restart times are an unqualified Good, is there any reason why > I shouldn't ALWAYS use a script like the above? And is there any way > to avoid PerlModule modules from being loaded twice? I do something pretty si

double mod_perl initialization

2009-09-25 Thread Jonathan Swartz
I was looking into why our server's restarts take so long, and I finally remembered that Apache runs its initialization step twice on startup (http://tinyurl.com/krr25). This means that my startup.pl is loaded twice, along with any modules that it loads. So I moved startup.pl to startup_rea

Re: problem with CSS in a dynamic document

2009-09-25 Thread 叶孤城
2009/9/26 Bruce Johnson : > > or just print the html. When executed as a cgi script, the outgoing > connection from Apache is the script's stdout. Variables substitute just > fine. > > print < Content-type: text/html\n\n > > Howdy $username! > ... > > EOF > > Works for us. > > This way I can do

Re: problem with CSS in a dynamic document

2009-09-25 Thread Bruce Johnson
On Sep 25, 2009, at 6:14 AM, Michael Peters wrote: On 09/25/2009 08:17 AM, Chuck Crisler wrote: # output a document print $query->header(); print $query->start_html(-title=>"Howdy", -style=>{-src=>'./dynamic.css'}); print $query->h1('Form Data'); Also, not to confus

Re: distributing software built on mod_perl

2009-09-25 Thread Mike Barborak
I think I see what you're saying. It seems like a very expensive problem to solve. It must be a barrier to people choosing mod_perl to develop their apps because it might be the case that their distribution and installation process is more complex to develop and support than their actual applicatio

Re: problem with CSS in a dynamic document

2009-09-25 Thread Michael Peters
On 09/25/2009 08:17 AM, Chuck Crisler wrote: # output a document print $query->header(); print $query->start_html(-title=>"Howdy", -style=>{-src=>'./dynamic.css'}); print $query->h1('Form Data'); Also, not to confuse you too much, but most people don't use CGI.pm's H

Re: problem with CSS in a dynamic document

2009-09-25 Thread Chuck Crisler
PERFECT! :-) Thank You!!! On Fri, 2009-09-25 at 20:26 +0800, 叶孤城 wrote: > 2009/9/25 Chuck Crisler : > > > > use CGI; > > use DBI; > > > > my $query=new CGI; > > ... > > # output a document > > print $query->header(); > > print $query->start_html(-title=>"Howdy", > > -style=

Re: problem with CSS in a dynamic document

2009-09-25 Thread 叶孤城
2009/9/25 Chuck Crisler : > > use CGI; > use DBI; > > my $query=new CGI; > ... > # output a document > print $query->header(); > print $query->start_html(-title=>"Howdy", >                         -style=>{-src=>'./dynamic.css'}); > print $query->h1('Form Data'); > > > Here is the contents of the f

problem with CSS in a dynamic document

2009-09-25 Thread Chuck Crisler
I am trying to get some basic knowledge and experience with programming mod_perl. I have created an HTML form that calls a perl script, get the info, query a mySQL database and display the results. So far so good. I am now trying to 'jazz-up' my results document with a CSS. I don't get any errors b