Can somebody help me for telling steps that embperl works. I saw a code in
the example page like:
[$ while ($k, $v) = each (%ENV) $]
[+ $k +] = [+ $v +]
[$ endwhile $]
How can I use it? Should I save it as test.pl and compile with command
perl test.pl? I went over the embperl web but still don
On Mon, 4 Oct 1999, Jim Serio wrote:
> Is it possible to write
> a Perl module to automatically push content which
> is controlled via a CGI?
Yeah. You don't even need to use a Perl module, or mod_perl to do it. A
plain CGI will work fine.
I could never get it to work in IE, though, or find a
Have any of you guys used "Sempaphores" in Perl or MOD_PERL.
Thanks a lot for all the help. I used IPC::Shareable module and it works fine.
Thanks
Mahesh K. Ganesan
Tom Christiansen wrote:
> >> Can you kindly explain the above with an example.
>
> >I've never used IPC::Shareable. "perldoc IPC
Greetings,
Is there an easy way to change where apachectl looks for the apache httpd
and config
files short of recompiling modperl?
Per the Apache Modules book pg 26, I copied the httpd by hand from the
Apache source
directory to my server root directory.
Thank you,
John Kent
On Mon, 4 Oct 1999, Owen Stenseth wrote:
> First thanks to Mike for figuring out how to use Embperl with
> Apache::Filter. A couple of subtle things are still causing problems. I
> have a solution for one but not for the others.
>
> The following line needs to be added as part of the params sent
Perl's "-T" flag turns on taint checking. Check out the perlsec manpage
for more info. Briefly, though, taint checking tells perl (among other
things) not to trust environment variables such as $ENV{PATH}, and warn
you if you make any implicit use of them when you run UNIX commands. You
ca
Tom Brown <[EMAIL PROTECTED]> writes:
> Anyone seen anything like this?
>
> running modperl 1.21 on linux with a work around for the corrupted PATH
> environment variable issue... perl 5.004_05 ...
>
> write(5, "HELO localhost\nONEX\nMAIL FROM: [EMAIL PROTECTED]\n0RCPT
> TO: [EMAIL PROTECTED]\n
>
> Can somebody help me for telling steps that embperl works. I saw a code in
> the example page like:
>
> [$ while ($k, $v) = each (%ENV) $]
> [+ $k +] = [+ $v +]
> [$ endwhile $]
>
> How can I use it? Should I save it as test.pl and compile with command
> perl test.pl? I went over the embperl w
Can somebody help me for telling steps that embperl works. I saw a code in
the example page like:
[$ while ($k, $v) = each (%ENV) $]
[+ $k +] = [+ $v +]
[$ endwhile $]
How can I use it? Should I save it as test.pl and compile with command
perl test.pl? I went over the embperl web but still don
Anyone seen anything like this?
running modperl 1.21 on linux with a work around for the corrupted PATH
environment variable issue... perl 5.004_05 ...
This code:
open( MAIL, "| $MAILER" ) || die "can't open $MAILER";
print MAIL <<"EOM";
HELO localhost
ONEX
MAIL FROM: $from
EOM
foreach
According to Stefan Reitshamer:
>
> Sorry if this is in a FAQ, but I dug through a lot of FAQs and archives and
> couldn't find it:
>
> Is there any database connection pooling built into mod_perl, or DBI?
Not exactly, but you can use Apache::DBI to make the connections
persistent, and you can
At the risk of irritating you by pressing the issue, I have to agree with
Doug, and I've had the same problem with the exact same errors.
My null device worked fine for me but the permissions were changed on it so
that certain other processes couldn't use it (i.e. apache).
Until I cornered the p
Nay, my null device works just fine, but I still keep occasionally getting
these errors for most of mod_perl config directives. One additional piece
of information: it seems that every time this problem shows up, I can get
rid of it simply by rerunning apache's autoconf.
I can't see any physi
Writing the server side of this is fairly easy except...
Piece of cake with netscape but
MS IE does not support this very well.
someone asked this question last month.
you might want to look into the archives, find out who it was,
and how their research went.
cliff rayman
genwax.com
Jim Serio w
Perhaps what you're looking for resembles this:
RewriteRule ^/(images|static)/ - [S=1]
RewriteRule (.+) http://backend$1 [P,L]
John D Groenveld wrote:
>
> I've been using mod_proxy
> to proxypass my static content away from my /modperl
> directories. Now, I'd like to make my root
> dynamic and
Being an Apache module has nothing to do with it, it's who the webserver
is as running and what machine the database is hosted on versus what you
have in your conenct string. Just because a DBI connection works from
your shell doesn't mean it will work identically when run by a web
server.
[EMAI
I've been using mod_proxy
to proxypass my static content away from my /modperl
directories. Now, I'd like to make my root
dynamic and thus pass everything except /images and
/static.
I've looked at the guide and tuning docs, as well
as the mod_proxy docs, but I must be missing
something.
Thanks,
Here's my problem
We are in the process of delivering a Web Cast
and we would like to "control" the delivery of
pages to the browser. For example, let's say you
visit a Web Cast and you only need to load the
first page. Subsequent pages are automatically
pushed from the server. While is sound
The kicker is that this only becomes a problem while using it as an Apache
module...
-Original Message-
From: Joshua Chamas [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 01, 1999 6:36 PM
[EMAIL PROTECTED] wrote:
> Apache mod_perl List,
>
> I am attempting to use DBI / DBD::mysql with
On Mon, 4 Oct 1999, Stefan Reitshamer wrote:
> Is there any database connection pooling built into mod_perl, or DBI?
There is no "pooling", but you can get persistent database connections.
Have a look at
http://perl.apache.org/guide/performance.html#Persistent_DB_Connections
for more.
- Perrin
Stefan Reitshamer wrote:
>
> Hello,
>
> Sorry if this is in a FAQ, but I dug through a lot of FAQs and archives and
> couldn't find it:
>
> Is there any database connection pooling built into mod_perl, or DBI?
Not really. You could take a run at DBD::Proxy.
-jwb
--
Jeffrey W. Baker * [EMAIL
Hello,
Sorry if this is in a FAQ, but I dug through a lot of FAQs and archives and
couldn't find it:
Is there any database connection pooling built into mod_perl, or DBI?
Thanks,
- Stefan Reitshamer
[EMAIL PROTECTED]
>
> Thank you very much. I got it run already. I can start my http but I still
> get some errors. What should I do? Can I ignore these errors or I have
> to fix them? --Thanks
>
> ...
> Use of uninitialized value at (eval1218) line 1.
> Starting httpd... pid = 5764 ok
>
> Testing mod_perl mode.
On Mon, 4 Oct 1999, Gerald Richter wrote:
> > Starting httpd... [Mon Oct 4 15:06:44 1999] [crit] (125)Address
> > already in use: make_sock: could not bind to port 8529
> > Cannot open test/tmp/httpd.pid at test.pl line 953.
> >
> There is already a Apache running on port 8529. Stop it an
> Starting httpd... [Mon Oct 4 15:06:44 1999] [crit] (125)Address
> already in use: make_sock: could not bind to port 8529
> Cannot open test/tmp/httpd.pid at test.pl line 953.
>
There is already a Apache running on port 8529. Stop it and rerun the test.
Gerald
I cannot run make test in Embperl which I get the errors like:
apple 970# make test
PERL_DL_NONLAZY=0 /usr/sbin/perl -Iblib/arch -Iblib/lib
-I/usr/freeware/lib/perl5/5.00502/irix-n32
-I/usr/freeware/lib/perl5/5.00502 test.pl
loading...ok
Testing offline mode...
asci
>
> BTW, what's the future of ePerl? Development has been quiet for over a
> year. Is Ralph Engelschall still the maintainer? And it's sad to see
> that perl.apache.org doesn't mention ePerl anymore, while it mentions
> HTML::Embperl.
>
Ralf told me, that he will still do bugfixes to ePerl, but no
Hi,
I'm trying to figure out what's wrong:
I have a cgi script running under mod_perl. I want this script to call a
ePerl document. I have other ePerl documents running under mod_perl, and
it's running fine.
So, on the command line, my script works fine with Parse::ePerl::Expand.
But when runn
I cannot run "apachectl start" which I got errors as belows:
I use apache1.3.9 and mod_perl1.21 which run in Origin200 IRIX6.4 with
perl 5.00502. I ever run the start before I installed perl5.00502(my
previous perl is perl5.004.4). Somebody help
apple 325# apachectl start
[Mon Oct 4 14:12:5
According to BeerBong:
> Huh, another test
> test.epl
According to BeerBong:
> test.epl
> --
> use DBI;
> $dbh = DBI->connect("DBI:Oracle:SIMain","test","test");
> PHP3 and mod_perl script with DBD::Oracle - 24 Requests per second
Is this with or with
Sergey,
You can crank up Apache::ASP's speed by setting StateDir
to somehting like /tmp/asp, or setting NoState to 1.
Please check out http://www.nodeworks.com/asp/tuning.html
When well tuned, Apache::ASP scripts will still be
slower than tuned Embperl & modperl, but not as much as
shown in you
next point release of embperl.
cliff rayman
genwax.com
Dirk Lutzebaeck wrote:
> Cliff Rayman writes:
>
> > the exit is broken in some contexts.
> > if this is part of a subroutine or called from an execute that may be the
> > problem.
>
> Hmm, in my case there is no execute for sub envolved
On Mon, Oct 04, 1999 at 12:41:45PM +0200, Stas Bekman wrote:
> > Preloading has nothing todo with shared memory. The idea is to load as much
> > as possible in the parent process. Now, when a child is forked, all childs
> > have the same modules loaded. Since Unix only copies the memory when a wri
Ok, here is what you see in thge browser's window:
HTTP/1.0 200 OK Content-Type:
multipart/x-mixed-replace;boundary=TeilTrenner --TeilTrenner HTTP/1.1
200 OK Date: Mon, 04 Oct 1999 23:01:24 GMT Server: Apache/1.3.9 (Unix)
mod_perl/1.21 mod_ssl/2.4.2
OpenSSL/0.9.4 Connection: close Content-Type:
Hi folks,
I´ve got some problems here with an example taken from my personal
Perl-Bible (by M. Schilli) and I dont know what the problem is:
package ServerPush;
use CGI qw/:standard/;
use Postgres;
sub new {
my ($class, $sep) = shift;
my $self = {};
$sep = "TeilTrenner";
$self
> > Preloading has nothing todo with shared memory. The idea is to load as
much
> > as possible in the parent process. Now, when a child is forked, all
childs
> > have the same modules loaded. Since Unix only copies the memory when a
write
> > to a memory loactaion takes place, the preloaded mod
Hello... and Help...
I've been trying to install mod_perl and Apache_1.3.9 on my mandrake
distribution, but thinga are not alle that well..
I've installed these packages (in this order)
libnet-1.0606
MIME-Base64-2.11
URI-1.04
HTML-Parser-2.23
Digest-MD5-2.09
libwww-perl-5.44
DBI-1.13
Compiled
> Preloading has nothing todo with shared memory. The idea is to load as much
> as possible in the parent process. Now, when a child is forked, all childs
> have the same modules loaded. Since Unix only copies the memory when a write
> to a memory loactaion takes place, the preloaded modules will
> Doesn't looks so good :-(
>
> BTW which version of mod_perl you are using?
1.21
Embperl 1.1.1 has problems with
> newer mod_perl versions, because of changes in the handling of $ENV inside
> mod_perl. So your problem may result from that,maybe...
>
> I would suggest to test 1.2b9. It's a reall
Doesn't looks so good :-(
BTW which version of mod_perl you are using? Embperl 1.1.1 has problems with
newer mod_perl versions, because of changes in the handling of $ENV inside
mod_perl. So your problem may result from that,maybe...
I would suggest to test 1.2b9. It's a really stable version. T
On Monday, October 04, 1999 11:02 AM, Jay J [SMTP:[EMAIL PROTECTED]] wrote:
> A search of the archive revealed things like:
>
> ... Sep 1998: "It may be worth noting that I've so far only seen this
> behavior on SSL connections"
> ... Oct 1998: "It means the client connection was broken. No caus
Huh, another test
test.epl
--
DBTest
[-
use DBI;
$dbh = DBI->connect("DBI:Oracle:SIMain","test","test");
$sth = $dbh->prepare("select login,fio from test where login like ?");
$sth->bind_param(1,"Be%");
$sth->execute;
$sth->bind_columns(\$login,\$
A search of the archive revealed things like:
... Sep 1998: "It may be worth noting that I've so far only seen this
behavior on SSL connections"
... Oct 1998: "It means the client connection was broken. No cause for
alarm. With Apache 1.3.x you won't see that message unless LogLevel is set
to deb
> For the Logfile problem try:
>
> PerlSetEnv EMBPERL_VIRTLOG /embperl
>
> and
>
>
>
> note the slash before embperl
Yes, and
195.209.67.50 - - [04/Oct/1999:13:48:13 +0500] "GET /embperl?803283&19801
HTTP/1..0" 404 270
1
195.209.67.50 - - [04/Oct/1999:13:48:16 +0500] "GET
/embperl?803283&19801&S
For the Logfile problem try:
PerlSetEnv EMBPERL_VIRTLOG /embperl
and
note the slash before embperl
For the other problem I would try
SetHandler perl-script
PerlHandler HTML::Embperl
Options ExecCGI
PerlPostReadRequestHandler My::ProxyRemoteAddr
Gerald
> Onto the unsolved problems:
>
> 1. I get Stack Underflow errors every once in a while from Embperl on
> pages that work fine on a reload.
>
I guess your problem occures when the input of Embperl changes. I have
already discussed that problem with Miachel. You need to change the mtime
parameter,
Preloading has nothing todo with shared memory. The idea is to load as much
as possible in the parent process. Now, when a child is forked, all childs
have the same modules loaded. Since Unix only copies the memory when a write
to a memory loactaion takes place, the preloaded modules will actually
Hi guys,
I was hacking tonight and I got the idea that I should share with you some of my
database performance tricks. I hope this will be a good reference for when
people are designing their web application architectures. I will eventually
post this on my website alongside my DBI tutorial. Ma
48 matches
Mail list logo