Moving ExecCGI to mod_perl - performance and custom 'modules'

2021-02-06 Thread Steven Haigh
list - am I on the right track? wasting my time? or just a simple mistake? -- Steven Haigh 📧 net...@crc.id.au <mailto:net...@crc.id.au> 💻 https://www.crc.id.au <https://www.crc.id.au/>

RE: Moving ExecCGI to mod_perl - performance and custom 'modules' [EXT]

2021-02-07 Thread Steven Haigh
reload or DBI sharing yet - as that'll end up needing a bit of a rewrite of code to take advantage of. I'd be open to suggestions here from those who have done it in the past to save me going down some dead ends :D -- Steven Haigh 📧 net...@crc.id.au <mailto:net...@crc.id.au> 💻 http

RE: Moving ExecCGI to mod_perl - performance and custom 'modules' [EXT]

2021-02-07 Thread Steven Haigh
s in the apache config that still had H=cgi-script - changed those to H=perl-script and saw similar improvements: ExecCGI - Requests per second:11.84 [#/sec] (mean) mod_perl - Requests per second:130.97 [#/sec] (mean) That's quite some gains for a days work. --

Re: Moving ExecCGI to mod_perl - performance and custom'modules'[EXT]

2021-02-08 Thread Steven Haigh
ormal 'use strict; use warnings;' standards good enough? Are there other ways to confirm correct operations? -- Steven Haigh 📧 net...@crc.id.au <mailto:net...@crc.id.au> 💻 https://www.crc.id.au <https://www.crc.id.au/>

RE: Moving ExecCGI to mod_perl - performance and custom'modules'[EXT]

2021-02-08 Thread Steven Haigh
shipping The joys of being on an island a long way from anything ;) -- Steven Haigh 📧 net...@crc.id.au <mailto:net...@crc.id.au> 💻 https://www.crc.id.au <https://www.crc.id.au/>

Confusion about SQL results - row counts and contents differ

2023-01-26 Thread Steven Haigh via modperl
hat leaves me completely stuck - how can old data be returned - even after a full machine reboot? Am I missing something kinda obvious? The system is Fedora 37 with the following versions: mariadb-10.9.4-1 mod_perl-2.0.12-5 httpd-2.4.54-5 perl-DBD-MariaDB-1.22-3 perl-DBD-MySQL-4.050-15

Re: Confusion about SQL results - row counts and contents differ

2023-01-26 Thread Steven Haigh via modperl
On Fri, Jan 27 2023 at 09:50:42 +0800, demerphq wrote: On Fri, 27 Jan 2023, 09:43 Steven Haigh via modperl, mailto:modperl@perl.apache.org>> wrote: Hi all, I'm a little confused about my little mod_perl web site at the moment. I'm doing an SQL query, then punting th

Re: Confusion about SQL results - row counts and contents differ

2023-01-26 Thread Steven Haigh via modperl
On Thu, Jan 26 2023 at 21:07:17 -0500, Perrin Harkins wrote: Maybe you haven't committed some manual change on the server, so it isn't visible to other connections. I thought about this - but surely, restarting *everything* (db + apache + entire VM) would cause this to fall out. Also, w

Re: Confusion about SQL results - row counts and contents differ

2023-01-26 Thread Steven Haigh via modperl
On Fri, Jan 27 2023 at 10:41:02 +0800, demerphq wrote: On Fri, 27 Jan 2023, 10:35 Steven Haigh via modperl, mailto:modperl@perl.apache.org>> wrote: On Thu, Jan 26 2023 at 21:07:17 -0500, Perrin Harkins mailto:phark...@gmail.com>> wrote: Maybe you haven't committed some man

stdout from scripts goes to apache logs

2024-05-12 Thread Steven Haigh via modperl
pen3(0, \*READER, 0, $cmd, @args); while ( my $output = ) {     print $output; } print "Speed test complete."; waitpid $pid,0; Does anyone have any clues as to why STDOUT would end up in the apache log and not in the web page being served when using perl-script as the handler? -- Steven Haigh 📧 net...@crc.id.au 💻 https://crc.id.au

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Steven Haigh via modperl
Handler ModPerl::Registry   or PerlHandler SomeLib::SomePAckage type thing... (this would be as well as the Set/AddHandler line) Kind regards, On Mon, May 13, 2024 at 7:54 AM Steven Haigh via modperl mailto:modperl@perl.apache.org>> wrote: Hi all, I'm playing around with mo

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Steven Haigh via modperl
:53 AM Steven Haigh via modperl mailto:modperl@perl.apache.org>> wrote: Hi all, I'm playing around with mod_perl on apache on docker - and now I've finally got all the module issues sorted, I'm trying to figure out why when using mod_perl, the output of s

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Steven Haigh via modperl
om, you can see how to output the content. Cheers, Joseph On Mon, May 13, 2024 at 9:35 PM Steven Haigh via modperl mailto:modperl@perl.apache.org>> wrote: That being said, is there a way to output to the web page in this scenario? On 14/5/24 12:15, Joseph He wrote:

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Steven Haigh via modperl
you put your script under the mod-perl environment? What is your httpd.conf file? Thx. On Mon, May 13, 2024 at 10:00 PM Steven Haigh via modperl mailto:modperl@perl.apache.org>> wrote: I wonder if perhaps I haven't been clear in the problem. In the provided c

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Steven Haigh via modperl
On 14/5/24 14:18, Ed Sabol wrote: On May 13, 2024, at 11:00 PM, Steven Haigh via modperl wrote: If I was to guess, it seems like an interaction with open3 and modperl. https://perldoc.perl.org/IPC::Open3 Yes, this is a known problem with IPC::Open3 that is commonly seen with mod_perl