Re: fork inherits socket connection

2000-12-21 Thread Kees Vonk 7249 24549
Below is a solution to this problem: * fork the long running process from mod_perl * and be able to restart the server o without killing this process o without this process keeping the socket busy and thus preventing the server restart Thanks to Doug for the hint. You

Re: Apache::LogSTDERR

2000-12-20 Thread Kees Vonk 7249 24549
Has anyone found this module yet? Kees

Re: Apache::LogSTDERR

2000-12-20 Thread Kees Vonk 7249 24549
Stas, I am sorry I didn't see the 'it has not been released yet' bit of your message. I read Doug's note, which says: it's in our cvs tree here at CP, not on CPAN. it shouldn't be a problem to release this one to CPAN, I'll check. but I didn't realise that CP wasn't public domain, I just

Apache::LogSTDERR

2000-12-15 Thread Kees Vonk 7249 24549
I read in the guide about Apache::LogSTDERR, but I don't seem to be able to find it on CPAN. Can anyone tell where I can find this? Kees

Re: fork inherits socket connection

2000-12-15 Thread Kees Vonk 7249 24549
Stas, I had the following in my code: my($nOrgPID) = fork; exit if $nOrgPID; die "Could not fork: $!" unless defined $nOrgPID; close STDIN; close STDOUT; close STDERR; setsid() or die "Could not start new session: $!"; but that didn't work, however

fork inherits socket connection

2000-12-14 Thread Kees Vonk 7249 24549
On our intranet server I have a page that allows the user to start a long running process. In order not to hang a httpd child I fork off the process and detach it from the calling process. This works fine most of the time. However in the unusual situation where apache needs to be restarted

Digest List doesn't show subjects!!!!

2000-12-07 Thread Kees Vonk 7249 24549
Can someone please confirm if this issue is being looked at. The modperl digest list is often very helpful and I would like to keep using it. For at a few weeks now the digest list has been looking like this (no topics are listed): modperl Digest 21 Nov 2000 23:42:00 - Issue 256

Digest List doesn't show subjects!!!!

2000-12-06 Thread Kees Vonk 7249 24549
Can someone please confirm if this issue is being looked at. The modperl digest list is often very helpful and I would like to keep using it. For at a few weeks now the digest list has been looking like this (no topics are listed): modperl Digest 21 Nov 2000 23:42:00 - Issue 256

Digest List doesn't show subjects!!!!

2000-12-05 Thread Kees Vonk 7249 24549
Can someone please confirm if this issue is being looked at. The modperl digest list is often very helpful and I would like to keep using it. For at a few weeks now the digest list has been looking like this (no topics are listed): modperl Digest 21 Nov 2000 23:42:00 - Issue 256

Re: Anyone get Apache::PerlVINC to work?

2000-08-21 Thread Kees Vonk 7249 24549
I have managed to get Apache::PerlVINC to work on the following configuration: Apache/1.3.6 (Unix) mod_perl/1.21 mod_ssl/2.3.5 OpenSSL/0.9.3a but never on Apache/1.3.9 (Unix) mod_perl/1.21 mod_ssl/2.4.8 OpenSSL/0.9.4 I am still not sure why it doesn't work on the second config (seemed a

Re: [ ANNOUNCE ] Apache::PerlVINC v0.02

2000-07-26 Thread Kees Vonk 7249 24549
Dave, you say you have revamped the directives, is that the only change you have made or are there functional changes as well? If not what is the advantage of using this new version over the old one (as I have managed to get that working). Kees PS. sorry for the late reply, I have been on

RE: system

2000-06-08 Thread Kees Vonk 7249 24549
The command i use is: system("./cserver ") or die "system cserver failed: $?"; what i get in the error log is: null:system cserver failed: 0 at /home/httpd/perl/test.pl line 35 Are sure that cserver fails? I have come across several unix programs that return 0 on success. You can

RE: ANNOUNCE: mod_perl Guide 1.24

2000-06-08 Thread Kees Vonk 7249 24549
Stas, I just logged on to CPAN to download the latest version of the guide, and even though CPAN thinks version 1.24 is there (search for mod_perl_guide) the actual file is not there in your directory (this was at 11:20 BST (08/06/2000)). Kees

Re: ANNOUNCE: mod_perl Guide 1.24

2000-06-08 Thread Kees Vonk 7249 24549
Stas, I was searched at search.cpan.org and then followed the link from there, as far as I know that is a link to www.perl.com. Kees

Re: ANNOUNCE: mod_perl Guide 1.24

2000-06-08 Thread Kees Vonk 7249 24549
Stas, just did another search and now (13:15 BST) it is there. Kees

Apache::PerlVINC again

2000-06-01 Thread Kees Vonk 7249 24549
The following works on Apache/1.3.6 (Unix) mod_perl/1.21 mod_ssl/2.3.5 OpenSSL/0.9.3a But when running on Apache/1.3.9 (Unix) mod_perl/1.21 mod_ssl/2.4.8 OpenSSL/0.9.4, I get the following problem which _appears_ (I am not 100% sure) to be caused by Apache::PerlVINC. I have the following

Perl Section questions

2000-05-31 Thread Kees Vonk 7249 24549
I have two questions about perl sections: 1) Has setting an entry in the %ENV hash in a perl section the same effect as using a SetEnv (or PerlSetEnv) directive (What btw is the difference between SetEnv and PerlSetEnv, both seem to effect %ENV in the same way.) 2) If the order of

backticks in perl sections?

2000-05-30 Thread Kees Vonk 7249 24549
I have a question about perl sections, I have the need to build a httpd.conf file that can be run on more than one server, this means that I need to determine what the server name is (for the ServerName directive), I think I can do this by putting: Perl $ServerName = `uname -n`; /Perl

Can't call method bytes_sent

2000-05-25 Thread Kees Vonk 7249 24549
What could cause the following error in a Perl Section (in the middle of a virtual host declaration)? Syntax error on line 350 of /opt/ward/apache/conf/httpd.conf: Can't call method "bytes_sent" on an undefined value at /opt/perl5/lib/5.00503/CGI/Carp.pm line 344. Kees

Re: Apache::PerlVINC

2000-05-24 Thread Kees Vonk 7249 24549
try this in httpd.conf: Perl delete $INC{'Apache/PerlVINC.pm'}; require Apache::PerlVINC; /Perl Apache start up now (why does mod_perl not do this, can you explain?), however I get the following error when trying to access a page that contains the reloaded module:

Re: Apache::PerlVINC

2000-05-23 Thread Kees Vonk 7249 24549
I am testing the use of Apache::PerlVINC but I think I must do something wrong because I get an error on the PerlRequire statement in the following bit of httpd.conf when starting apache: PerlINC /opt/ward/IDV/DEV/Modules PerlRequire Ward/IDV/IDVDatabase.pm PerlINC

RE: mod_perl on HP-UX ?

2000-05-22 Thread Kees Vonk 7249 24549
Are there any gotchas to using mod_perl on HP-UX? I seem to remember somewhere in the Apache documentation something about HP-UX implemented shared memory in a weird way... I have been using mod_perl on HP-UX 10.20 for a long time and as far as I know I there are no real problems (I use

Apache::PerlVINC

2000-05-18 Thread Kees Vonk 7249 24549
I am testing the use of Apache::PerlVINC but I think I must do something wrong because I get an error on the PerlRequire statement in the following bit of httpd.conf when starting apache: - PerlModule Apache::PerlVINC VirtualHost _default_:8443

Re: multiple copies of a module

2000-05-17 Thread Kees Vonk 7249 24549
Stas Bekman wrote: Both questions are already answered in the guide: Kees' original: http://perl.apache.org/guide/modules.html#Apache_PerlVINC_set_a_differe Gunter's suggestion: http://perl.apache.org/guide/control.html#Starting_a_Personal_Server_for_E Thank you very much this is

RE: To-Experts: BIG problem: my variables in nested subroutin

2000-05-09 Thread Kees Vonk 7249 24549
QUESTION: But how should I transform the script, if the anonymous subs call each other? Very simple little example: #!/usr/bin/perl -w use strict; my $i = 0; my $a; my $b = sub { print "$i\n"; exit if $i++ = 10; $a }; $a = sub { print "$i\n"; exit if $i++ = 10; $b }; $a; Does that

mod_proxy problem

2000-04-25 Thread Kees Vonk 7249 24549
I have the following directives in my httpd.conf: ... VirtualHost _default_:8082 DocumentRoot "/app/env_control/httpd/DocumentRoot" Location "/Test" # disable mason for this location SetHandler default-handler /Location ProxyPass/Test/ http://myhost:8084/Test/

Re: mod_proxy problem

2000-04-25 Thread Kees Vonk 7249 24549
| VirtualHost _default_:8082 |DocumentRoot "/app/env_control/httpd/DocumentRoot" |Location "/Test" | # disable mason for this location | SetHandler default-handler |/Location |ProxyPass/Test/ http://myhost:8084/Test/ |ProxyPassReverse /Test/

RE: WindowsNT Explorer like look and feel??

2000-04-19 Thread Kees Vonk 7249 24549
Does anyone know of an easy way to get a WindowsNT explorer (expanding directory/folder) lokk and feel using modperl? I know this is off topic, but have a look at http://www.alchemy-computing.co.uk/joust/ which is a (free) javascript implementation that gives you more or less what you want

Re: loading mod_perl DSO on a per-virtualhost basis?

2000-01-26 Thread Kees Vonk 7249 24549
However, if I'd like to do so, I'd have to split up my httpd.conf into a part with mod_perl-using-vhosts and a part with the remaining vhosts and setup 2 startup scripts for 2 separate apache instances, both listening on port 80 (or 443 for https). I think you might find the answer to this

Re: Another install question: CGI.pm not found

1999-12-17 Thread Kees Vonk 7249 24549
Can't locate CGI.pm in @INC at /mod_perl-1.21/t/net/perl/cgi.pl line 7. If CGI.pm readable by the user running apache?

perl-script breaks cgi?

1999-12-15 Thread Kees Vonk 7249 24549
I just ran into a problem I don't understand: I was testing a PerlAccessHandler on a cgi (not modperl) directory like this: Directory /my/user/directory SetHandler perl-script PerlAccessHandler My::Access /Directory when I tried to access a cgi script and got passed the access control

One handler covering the whole site

1999-12-14 Thread Kees Vonk 7249 24549
I am trying to implement a small mod_perl handler that will affect the whole site, but at the same time should also let every other handler do its work. I have tried the following in my httpd.conf: ... LocationMatch / SetHandler perl-script PerlHandler My::Handler /LocationMatch