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
Has anyone found this module yet?
Kees
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
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
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
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
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
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
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
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
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
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
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
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
Stas,
just did another search and now (13:15 BST) it is there.
Kees
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
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
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
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
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:
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
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
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
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
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
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/
| 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/
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
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
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?
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
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
32 matches
Mail list logo