Hi,
working with apache 1.3.26, mod_perl/1.27 and perl 5.6.0 on a Redhat
Linux 7.2 with kernel 2.4.7-10, I have serious problems with a
PerlRequire statement in the httpd.conf apache configuration file since
the script is executed twice with the same pid.
The PerlRequire statement is the first
Though I have not encountered this problem personally, it's been discussed
here a few times before, and a google search of PerlRequire running twice
turned up a page full of promising leads, so I suggest peeking at the
archives and google.
-Fran
-Original Message-
From: Andreas Rieke
of PerlRequire statement
Hi,
working with apache 1.3.26, mod_perl/1.27 and perl 5.6.0 on a Redhat
Linux 7.2 with kernel 2.4.7-10, I have serious problems with a
PerlRequire statement in the httpd.conf apache configuration file since
the script is executed twice with the same pid
Kyle Oppenheim wrote:
This behavior is documented in the guide...
http://perl.apache.org/docs/1.0/guide/config.html#Apache_Restarts_Twice_On_S
tart
This is true, although technically it shouldn't require the same file
twice unless you have PerlFreshRestart on (which is a bad idea).
- Perrin
/?t=9971463252r=1w=2
IIRC, it is still outstanding.
in the meanwhile, Perrin has suggested a fix for PerlModule
http://marc.theaimsgroup.com/?l=apache-modperlm=101067662002787w=2
and issues with PerlRequire can probably be worked around by playing with
$Apache::Server::ReStarting
HTH
Hi,
I've been search all the guides and never found the answer to next
question : I have mod_perl 1.26 correctly installed with Apache 1.3.22.
When I include in the httpd.conf file this kind of line Include
/home/me/auto-apache.conf which has a PerlRequire command like
PerlRequire /home/me/bin
Florence Dardenne wrote:
Does mod_perl 1.26 includes the 'PerlRequire' functionality or do I need
higher version ?
All versions of mod_perl have that feature. You must not have mod_perl
compiled into that server. See this entry in the guide:
http://perl.apache.org/guide/install.html
Apache 2.0.35 with Mod_Perl-2. However, I am not able to use
PerlRequire Statement in the httpd.conf.
Whenever I am trying to restart my Windows Services, it is always giving me an error
message which does not allow me to start my Windows Services.
While I am able to execute my CGI Scripts in Apache
a PerlRequire command like
PerlRequire /home/me/bin/startup.pl, I have an error saying :
Invalid command 'PerlRequire', perhaps mis-spelled or defined by a
module not included in the server configuration
Does mod_perl 1.26 includes the 'PerlRequire' functionality or do I need
higher version ?
As Perrin
[EMAIL PROTECTED] wrote:
I am a newbie and had developed a proof-of-concept application on Apache
1.3.23/Mod_Perl-1.26-dev. We are researching into moving away from ASP/IIS
Webapplications to Apache/Mod_Perl. I am stuck with the latest Apache 2.0.35 with the
following problems.
Do you really
On Tue, 16 Apr 2002, Perrin Harkins wrote:
[EMAIL PROTECTED] wrote:
I am a newbie and had developed a proof-of-concept application on Apache
1.3.23/Mod_Perl-1.26-dev. We are researching into moving away from ASP/IIS
Webapplications to Apache/Mod_Perl. I am stuck with the latest Apache
Both the suppositions are right! To have the proof-of-concept working in Apache, I do
have it working 100% under Apache 1.3.23/mod_perl-1.26. I had performed benchmark
studies under IIS/ASP, Tomcat/JSP and Apache/MOD_PERL and have seen the best
performance under Apache 1.3.23/Mod_Perl!
with the following problems.
Today I installed Apache 2.0.35 with Mod_Perl-2. However, I
am not able to use PerlRequire Statement in the httpd.conf.
Whenever I am trying to restart my Windows Services, it is
always giving me an error message which does not allow me to
start my Windows Services
.
- does the service start OK, with mod_perl-2 enabled, if the
PerlRequire statement isn't there?
Yes! Apache2 server starts fine under the 'Apache Monitor Services' Application tool,
when I remove PerlRequire Statement. And on that Application, it clearly shows the
server as : Apache/2.0.35(Win32
On Tue, 16 Apr 2002, Arul, Rex wrote:
Randy:
Thanks for your response. Here are my responses:
A few things to perhaps look at ...
- does the service start OK, with mod_perl-2 enabled, if the
PerlRequire statement isn't there?
Yes! Apache2 server starts fine under the 'Apache Monitor
Randy:
In order to keep my Apache 1.3.23/Mod_Perl-1.26 safe, I tried installing Apache
2.0.35/mod_perl-2 on a different NT 4.0 Server with ActivePerl 628.
LoadModule perl_module modules/mod_perl.so
PerlModule Apache2
WORKS!!!
However, when I write a simple Perl CGI page, it bombs at the
Randy,
For what it's worth, I can verify Rex's experience with the exception
that I used a win2k platform instead of Nt 4. I do have use Apache2 in
my startup.pl.
Rich
Arul, Rex wrote:
Randy:
In order to keep my Apache 1.3.23/Mod_Perl-1.26 safe, I tried installing Apache
installed Apache 2.0.35 with Mod_Perl-2. However, I
am not able to use PerlRequire Statement in the httpd.conf.
Whenever I am trying to restart my Windows Services, it is
always giving me an error message which does not allow me to
start my Windows Services.
Hi
for me on winnt, apache
I hesitate to post this because I haven't kept up with my reading. I did
do several searches of my 28K message modperl mail folder and the list
archives.
My httpd.conf reads...
LoadModule perl_module /opt/apache/libexec/libperl.so
#PerlModule Apache::Status
PerlRequire /home/stevens.1
::Status
PerlRequire /home/stevens.1/apache-perl/conf/startup.pl
If I uncomment the PerlModule config, then no core dump.
If I downgrade to perl-5.0.3, then no core dump.
If I Configure -Uuselargefiles, I still core dump.
Solaris bug, Perl bug, modperl bug, Apache bug, or driver error?
I
I assume that you use Apache DSO. I think that you need to rebuild your
perl with -Ubincompat5005. I cannot see the value of bincompat5005 in
your 'perl -V'
http://perl.apache.org/guide/install.html#When_DSO_can_be_Used
Still cores after explicit -Ubincompat5005, I'm fairly certain I
hi guys...
I know this is from a while ago, but I'm still seeing the double init
thing with PerlModule and PerlRequire on server restarts. I've tried two
different 5.6.1 installs with current CVS.
can somebody verify that I'm not seeing things? the test I was using was
the default
Actually, yes, I had. PerlVINC is not really what I needed, the goal was
not to reload %INC per VirtualHost, the need was to have a single
PerlRequire set up @INC properly per VirtualHost (so Apache::StatINC
would work). Ordinary this would have been done with something like 'use
lib
; Stas Bekman
Cc: [EMAIL PROTECTED]
Subject: Re: Setting PerlRequire in a Perl section
Actually, yes, I had. PerlVINC is not really what I needed,
the goal was
not to reload %INC per VirtualHost, the need was to have a single
PerlRequire set up @INC properly per VirtualHost (so Apache
$PerlRequire to a straight 'require'. They do the same thing.
Perl
my $dirroot = $0;
$dirroot = s/\.htaccess$//;
require ($dirroot . 'modperlstartup.pl');
/Perl
As I mentioned previously we switched to absolute paths in the
per-application startup.pl file. Its a pain to maintain a per-server
-coding that path on each server, you should be
able to just
make everything else relative to that. Is that what you were
trying to do
with your original post? That code would work fine if you change
$PerlRequire to a straight 'require'. They do the same thing.
Exactly, the only abs path
Alex Harper wrote:
Hi,
I'm trying to configure a PerlRequire directive in a Perl section of
an .htaccess file. This is done so that I can have several directories
(one per VirtualHost) load a different PerlRequire startup without
resorting to absolute paths for the startup for each
to use Apache::PerlVINC, but it's not very
efficient.
Actually, yes, I had. PerlVINC is not really what I needed, the goal was
not to reload %INC per VirtualHost, the need was to have a single
PerlRequire set up @INC properly per VirtualHost (so Apache::StatINC
would work). Ordinary this would have
You probably need to use Apache::PerlVINC, but it's not very
efficient.
Actually, yes, I had. PerlVINC is not really what I needed, the goal was
not to reload %INC per VirtualHost, the need was to have a single
PerlRequire set up @INC properly per VirtualHost (so Apache::StatINC
would
Hi,
I'm trying to configure a PerlRequire directive in a Perl section of
an .htaccess file. This is done so that I can have several directories
(one per VirtualHost) load a different PerlRequire startup without
resorting to absolute paths for the startup for each VirtualHost.
Since FindBin
/ /Library/WebServer/cgi-bin/
PerlRequire /Library/WebServer/startup.pl
Alias /cgi-bin /Library/WebServer/cgi-bin
Location /cgi-bin
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
/Location
When trying apachectl start I receive the following error
There have been some messages on the Mason list about people experiencing
startup.pl being loaded twice, even without PerlFreshRestart on. I know the
server restarts during startup, but PerlRequire and PerlModule are both
supposed to obey the laws of %INC, right? I seem to remember some
On Mon, 6 Aug 2001, Perrin Harkins wrote:
There have been some messages on the Mason list about people experiencing
startup.pl being loaded twice, even without PerlFreshRestart on. I know the
server restarts during startup, but PerlRequire and PerlModule are both
supposed to obey the laws
Hi, I'm using Apache 1.3.12-2 that comes with RedHat 6.2 and into the
same CD I have mod_perl both are RPM`s packages and both are working
well.
However if I use Perlrequire directive:
Perlrequire /path to my startup/my startup.pl
and I try to restart my httpd, this says OK but there is no one
On Mon, 5 Mar 2001, Roberto Osorio [iso-8859-1] González wrote:
Hi, I'm using Apache 1.3.12-2 that comes with RedHat 6.2 and into the
same CD I have mod_perl both are RPM`s packages and both are working
well.
However if I use Perlrequire directive:
Perlrequire /path to my startup/my
Hey there.
I have a line in my httpd.conf:
PerlRequire /path/to/startup.pl
In startup.pl I have this line:
use lib '/path/to/module';
This is not being added to my @INC like it should. Any
thoughts?
__
Do You Yahoo!?
Get personalized email
Make sure that your PerlRequire comes BEFORE you actually want to 'use' the
module in your httpd.conf
Alternately, you could unshift(@INC, '/path/to/module') in your startup.pl
-Original Message-
From: Aaron Schlesinger [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 12, 2001 10:07 AM
I was under the impression that once I ran the
PerlRequire script, if I did the use lib command, all
my other mod_perl scripts called on that server would
have access to that library?!
Aaron
--- "Liddick, Scott" [EMAIL PROTECTED]
wrote:
Make sure that your PerlRequire comes
Aaron Schlesinger wrote:
I have a line in my httpd.conf:
PerlRequire /path/to/startup.pl
In startup.pl I have this line:
use lib '/path/to/module';
This is not being added to my @INC like it should.
try
use lib '/path/to';
use module;
Ernest
--
Yours sincerely
Mit
On Mon, 12 Feb 2001, Aaron Schlesinger wrote:
I have a line in my httpd.conf:
PerlRequire /path/to/startup.pl
In startup.pl I have this line:
use lib '/path/to/module';
This is not being added to my @INC like it should. Any
thoughts?
How do you know it isn;t being added? Try
I have found that I can now build an apache_1.3.14 binary with
mod_perl-1.24 . I had to rebuild the perl5.6.0 binary with config_args:
config_args='-des -Doptimize=-02 -march=i386 mcpu=686 -Dcc=gcc -Dcccdlflags=-fPIC
-Darchname=i386-linux -Dd_dosuid -Dd_semctl_semun -Di_db -di_ndbm -Di_gdbm
Hey
I have "PerlRequire conf/startup.pl" in
httpd.conf
and startup.pl has "1;" in it
then I start apache "/usr/local/apache/bin/apachectl start
and it says:
/usr/local/apache/bin/apachectl start: httpd
started
butit looks like it's exiting out right
away. is that
* Dennis ([EMAIL PROTECTED]) [14 Oct 2000 16:00]:
I have "PerlRequire conf/startup.pl" in httpd.conf
and startup.pl has "1;" in it
then I start apache "/usr/local/apache/bin/apachectl start
and it says:
/usr/local/apache/bin/apachectl start: httpd started
but i
I just recompiled Apache with mod_perl support. I followed the
directions, had no errors, and made no brain farts.
The PerlRequire directive isn't valid! Any ideas?
mod_perl version = 1.21
perl version = 5.00503
Apache version = 1.3.11
OS = Redhat Linux version 6.1 on P-150 w/ 48 MBytes RAM
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 01, 2000 2:11 PM
To: [EMAIL PROTECTED]
Subject: PerlRequire problems
I just recompiled Apache with mod_perl support. I followed the
directions, had no errors, and made no brain farts.
The PerlRequire directive isn't valid! Any ideas
tions, had no errors, and made no brain farts.
The PerlRequire directive isn't valid! Any ideas?
mod_perl version = 1.21
perl version = 5.00503
Apache version = 1.3.11
OS = Redhat Linux version 6.1 on P-150 w/ 48 MBytes RAM.
The httpd executable is larger, and I moved it by hand to the
performance and memory usage by consolidating some
common Perl "use" directives in a PerlRequire statement. However, when I
add this line to my Apache config file (/etc/httpd/conf/httpd.conf), the
server fails to come up - and also give no indication that I can find of a
problem. So, I
(gdb) bt
#0 0x40308503 in boot_DBI ()
Looks like your Perl installation binaries (DBI in this case), doesn't match
with Apache/mod_perl. So the best would be to compile everything
Apache/Perl/mod_perl from the sources
Gerald
#1 0x403da306 in ?? () from /etc/httpd/modules/libperl.so
broken record
mod_perl+dso is not a stable mix, try linking mod_perl static
/broken record
Perl "use" directives in a PerlRequire statement. However, when I
add this line to my Apache config file (/etc/httpd/conf/httpd.conf), the
server fails to come up - and also give no indication that I can find
of a
problem. So, I don't know what's going wrong.
Here's what
,
I've been using mod_perl successfully albeit minimally for a couple
months
now.
I'm trying to tune performance and memory usage by consolidating some
common Perl "use" directives in a PerlRequire statement. However, when I
add this line to my Apache config file (
I believe that this is the same thing that is happening to me.
Cliff - are you using PerlRequire successfully? What version of Apache and
mod_perl are you using?
Prakash Kailasa also said:
I have accidentally found a workaround. It may or may not work for
you.
- Comment the PerlRequire line.
- Run:
I am using PerlRequire successfully on both:
Server: Apache/1.3.3 (Unix) mod_perl/1.16 mod_ssl/2.1.2 SSLeay/0.9.0b
AND
Server: Apache/1.3.9 (Unix) mod_perl/1.21 mod_ssl/2.4.8 OpenSSL/0.9.4
both on linux Linux Redhat 5.2 - kernal - 2.0.36
perl, version 5.005_02 built for i686-linux
Are perl
using PerlRequire successfully on both:
Server: Apache/1.3.3 (Unix) mod_perl/1.16 mod_ssl/2.1.2 SSLeay/0.9.0b
AND
Server: Apache/1.3.9 (Unix) mod_perl/1.21 mod_ssl/2.4.8 OpenSSL/0.9.4
both on linux Linux Redhat 5.2 - kernal - 2.0.36
perl, version 5.005_02 built for i686-linux
Are perl
Hi,
I've been using mod_perl successfully albeit minimally for a couple months
now.
I'm trying to tune performance and memory usage by consolidating some
common Perl "use" directives in a PerlRequire statement. However, when I
add this line to my Apache config file (/etc/
On Sat, 11 Dec 1999, Bill Marrs wrote:
Hi,
I've been using mod_perl successfully albeit minimally for a couple months
now.
I'm trying to tune performance and memory usage by consolidating some
common Perl "use" directives in a PerlRequire statement. However, when I
add
Stas Bekman wrote:
On Sat, 11 Dec 1999, Bill Marrs wrote:
Hi,
I've been using mod_perl successfully albeit minimally for a couple months
now.
I'm trying to tune performance and memory usage by consolidating some
common Perl "use" directives in a PerlRequire statement
make sure no server is running on port 80 or use an alternate config with
an alternate port if you are on a production server.
cd /usr/local/apache/bin # where ever your binary is
gdb httpd
set args -X -f /path/to/alternate/serverconfig_ifneeded.conf
run
it should blow up!
then,
bt
58 matches
Mail list logo