On Fri, Feb 04, 2000 at 06:21:21PM -0800, John Darrow wrote:
I apologize if this is a dumb question, but I just installed Apache and
mod_perl and all seems to have gone well. The trouble comes in when I try
to run a script using Apache::Registry and CGI.pm. I get an extra
Content-Type
Thanks. Upgrading to 2.56 did fix it. My system still had CGI version
2.36.
-john.
-Original Message-
From: Stas Bekman [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 05, 2000 1:33 AM
To: Wendell
Cc: John Darrow; [EMAIL PROTECTED]
Subject: Re: newbie question: extra Content
I apologize if this is a dumb question, but I just installed Apache and
mod_perl and all seems to have gone well. The trouble comes in when I try
to run a script using Apache::Registry and CGI.pm. I get an extra
Content-Type in the resulting page, and I can't figure out where it's coming
from
At 06:21 PM 02/04/00 -0800, John Darrow wrote:
I apologize if this is a dumb question, but I just installed Apache and
mod_perl and all seems to have gone well. The trouble comes in when I try
to run a script using Apache::Registry and CGI.pm. I get an extra
Content-Type in the resulting page
Hi there,
I've got the canned footer (Eagle book chapter 4)
up and running, and it edits html files on the local host fine using the
Files ~ "\.html$"... directive.
I was wondering how to implement the footer so that
it appeared on all html files (ie. external files), and not just local
"OHI1" == Oliver Holmes ITS 1999 [EMAIL PROTECTED] writes:
OHI1 Hi there,
OHI1 I've got the canned footer (Eagle book chapter 4) up and running, and it edits
html files on the local host fine using the Files ~ "\.html$"... directive.
OHI1 I was wondering how to implement the footer so that it
I am a relative newbie to mod_perl myself, but - I would think if you just want "a
script to handle forms" that a vanilla CGI would be cake to set up and sufficient for
your needs unless you get huge traffic. And I am led to think that if you just loaded
ActivePerl then you are a long way
I am a relative newbie to mod_perl myself, but - I would think if you just
want "a script to handle forms" that a vanilla CGI would be cake to set up
and sufficient for your needs unless you get huge traffic. And I am led to
think that if you just loaded ActivePerl then you are a long way from
Hi all,
I hope you guys will forgive this question,
but I am a complete beginner with CGI etc.
We run an NT Server using Apache Web Server
and I want to run Perl scripts on our web site to handle our administration
forms.
I loaded the Activeperl software onto the
server, but it still
Hi Ian,
We run an NT Server using Apache Web Server and I want to run Perl scripts
on our web site to handle our administration forms.
To get full advantage out of mod_perl, it is more interesting to use it on
UNIX machines. But, in this community, we will encourage you to use mod_perl
even
Thanks for your responses so far,
I know I have a lot of reading to do but I just thought I would add this to
my first post.
After loading Activeperl I changed the httpd.conf file by adding the
following:
Alias /perl/ c:/Program Files/Apache Group/Apache/cgi-bin
Location /perl
SetHandler
At 05:40 PM 1/28/00 -0500, Deepak Gupta wrote:
How does connection pooling determine how many connections to keep open?
The reason I ask is that I am afraid my non-modperl scripts are getting
rejected by the db server b/c all (or most) connections are being
dedicated to Apache activity.
How does connection pooling determine how many connections to keep open?
The reason I ask is that I am afraid my non-modperl scripts are getting
rejected by the db server b/c all (or most) connections are being
dedicated to Apache activity.
Thanks,
Deepak
On Fri, 28 Jan 2000, Deepak Gupta wrote:
How does connection pooling determine how many connections to keep open?
The reason I ask is that I am afraid my non-modperl scripts are getting
rejected by the db server b/c all (or most) connections are being
dedicated to Apache activity.
Please
On Wed, Jan 26, 2000 at 03:22:12PM -0300, Martin A. Langhoff wrote:
But there's one thing that I can't imagine. When I run top, how do I
tell memory/cpu consumption from lightweight daemons from the mem/cpu
consumption from mod_perl daemons?
We have a web farm that hosts four separate
Check out "perldoc perltoot" under Class interface.
Cheers,
Jeff
At 01:43 PM 1/27/00 -0800, Etienne Pelaprat wrote:
hi all,
i'm starting out doing some Object Oriented programming with mod_perl
and I define one object like this:
sub new {
my $self = shift;
my $type =
Etienne, We all love the OO hype letters, but first it's the offtopic
question, second it's the FAQ question. You can hunt for luck at the perl
newsgroup or other perl generic list. But save your time and frustration
-- read some books, for example 'Object Oriented Perl' by Domian and 'Perl
"Martin A. Langhoff" wrote:
Hi all,
I've read all the documentation on how to run 2 different httpd, one
for lightweight serving and a mod_perl enabled daemon. Also read the
threads about this last weeks.
But there's one thing that I can't imagine. When I run top, how do I
If I understand you correctly, you don't want to use mod_perl, just
Perl.
If so, the easiest way to use perl is to dowload ActivePerl (free) from
Activestate website http://www.activestate.com/ActivePerl/download.htm
It comes with great documentation, install it as per documentation.
If you wish
Hi,
I installed Apache Server for NT on my machine. But
I don't know how to get perl to work not using module perl.
Any message will be appreciated.
Hi,
I'm doing authentication against SQL database and then connecting the
same database from the (embperl) page itself, but I cannot use
Apache::DBI because there are several different databases running (with
way too many connect strings to cache). Is there any (simple) way to
reuse the db
Is there any (simple) way to reuse the db handle from
authentocation handler in serving the page?
Is it possible to put the database handle in $r-pnotes? Or
would the connection not survive that?
That should work...
Gerald
At the top of the config file put:
package Config;
and refer to the vars in your page as:
[+ $Config::foo +]
On 09-Jan-00 Mike Cantrell wrote:
Quick question:
Let's say I want to keep a common configuration file which defines
variables and such. I'd like to [- Execute() -] the file
On Sat, 08 Jan 2000, Sergio Salvi wrote:
Is there a way to remove the stat() and lstat()
syscalls when using the Location directive, as
in this case they're not necessary ?
Make sure you set "AllowOverride None" so that it doesn't try and locate a
.htaccess file.
PS: I've found a simple
. Currently, I am not using VirtualHosts or
.htaccess file.
My question is: Can I use global.asa in each of these sub-
directories *without* using .htaccess file (where I would be
declaring the StateDir variable normally)? The "Global"
variable in my httpd.conf file is set to "."
My
or
.htaccess file.
My question is: Can I use global.asa in each of these sub-
directories *without* using .htaccess file (where I would be
declaring the StateDir variable normally)? The "Global"
variable in my httpd.conf file is set to "."
My concern is that if I do not set t
Hello,
A while ago I built apache 1.3.6 with mod_ssl-2.3.1-1.3.6 and mod_perl-1.19
on my sun solaris 2.7 PRODUCTION box.
Everything has worked GREAT!
QUESTION:
I want to upgrade to apache1.3.9 and mod_ssl-2.4.8-1.3.9 and mod_perl-1.21,
BUT I am not certain on the safe strategy for upgrading
On Thu, 16 Dec 1999, Bill Moseley wrote:
What obvious thing am I missing?
During make test this gets written to the error log:
Can't locate CGI.pm in @INC at /mod_perl-1.21/t/net/perl/cgi.pl line 7.
that's a strange error, because 5.005+ reports the @INC paths, e.g.:
% perl -MNotHere
79) %grep cgi.pl t/logs/error_log
Can't locate CGI.pm in @INC at
/data/_g/lii/apache/src/heavy/mod_perl-1.21/t/net/perl/cgi.pl line 3.
again, I don't think it's possible for 5.005+ to produce this error
message without listing the contents of @INC. cgi.pl is generated from
cgi.pl.PL and also
i am trying to get my mind around the concept of open2 which is..
open2( /*MYSTDIN, /*MYSTDOUT, "myprog");
how do i simply read to the program and write to the program..
is it just...
print MYSTDIN, "my data\n";
and then a ..
while(MYSTDOUT) {
...
}
I think you will
Just trying out Embperl, and I discovered that (in my test of dynamic
tables) the $maxrow and $maxcol variables are being set to defaults of 100
and 10 respectively and then obeyed, even though the $tabmode variable is
set to 17. According to the documentation, these variables should only be
hi,
i am writing a program using perl and its open2 function as opposed to the
open functions as this allows me to both read and write. but since i am only
familiar with..
open (MYSTDIN, "myprog args|");
or open(MYSTDOUT, "| myprog args");
i am trying to get my mind around the concept of
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?
At 11:13 AM 12/17/99 +0100, Kees Vonk 7249 24549 wrote:
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?
Yes.
125) ~ %/usr/local/bin/perl5.00503 -MCGI -e 'print $CGI::VERSION,"\n"'
2.46
Bill Moseley
mailto:[EMAIL
What obvious thing am I missing?
During make test this gets written to the error log:
Can't locate CGI.pm in @INC at /mod_perl-1.21/t/net/perl/cgi.pl line 7.
Ok, so I print out @INC in cgi.pl.
78) %head t/net/perl/cgi.pl
#!/usr/local/bin/perl
BEGIN {
print STDERR join("\n", @INC), "\n";
}
be a problem.
Ok, I just download my own copy of perl 5.005_03 and built it in a local
directory and used that to build mod_perl. That worked just fine.
Question:
How do I figure out what's the problem with the new build of 5.005_03?
Would posting -V from the various perl's help?
Here's how I'm
hi all,
sorry for posting off-topic. Really. Shouldn't. Couldn't.
I'm having a stupid problem with an 'upload file' CGI I
wrote based on the CGI.pm documentation.
The code that is failing is at the end. The file is opened
succesfully for writing (I did try and write a
Thanks to the great Alex Krohn the problem is solved: I had forgotten to
write ENCTYPE='multipart/form-data' in the FORM tag. whoa.
Sorry again for posting OT
--
- Martin Langhoff @ S C I M Multimedia Technology -
- http://www.scim.net | God is real until -
- mailto:[EMAIL
In a perl apache module that I'm writing, I wanted to try to parse the
content of a POST myself. According to "Writing Apache Modules with Perl
and C", page 438, you should be able to read the content from STDIN using
Perl's read() and getc(), and using Perl's file operations.
When I use the
Meanwhile, back at the ranch...
$line = STDIN;
$r-print("$line\n");
In my response, I get the entire POST content echoed back to me, where I
only expected the first line. If I comment out the "print" statement, I
don't get anything echoed back (which is what I would expect). It really
When I use the STDIN statement, I get a single line that contains
the entire POST content, rather than just the first line of the post.
Can anyone think of why that would happen? Here's the snippet of my
code:
$line = STDIN;
$r-print("$line\n");
1. There might not be more than one
Can somebody tell me why Apache::Sandwich will only work with GET requests? I
took a quick look at the code and am not picking it up. I'm guessing that the
post parameters aren't set up for the subrequest and that's the problem?
Wouldn't it be as simple as setting the subr content to the original
I got the Apache web server installed on my WinNT workstation and I also
got Perl interpreter installed on it too. I am able to run perl scripts
on my workstation browser. My workstation is not connected to the
internet. When I try to print the Environment varibales in my CGI
script, the
"JB" == Jason Bodnar [EMAIL PROTECTED] writes:
JB Can somebody tell me why Apache::Sandwich will only work with GET
JB requests? I took a quick look at the code and am not picking it
JB up. I'm guessing that the post parameters aren't set up for the
JB subrequest and that's the problem?
and silly question
friend of mine just learning perl has asking me what does
'string'; means. Perl seems just silently ignores this
'statement' No warning, no action. Is it a known feature ?
Regards,
Oleg
_
Oleg
sorry for offtopic
next time, use comp.lang.perl.misc
silly question
no such thing
friend of mine just learning perl has asking me what does
'string'; means. Perl seems just silently ignores this
'statement' No warning, no action. Is it a known feature ?
In perl and C, an expression
Make your handler aware of the mime type and suppress the
expiration/cache headers if it's image/* or something like that.
Meanwhile, back at the ranch...
I have a directory of images use for navigation purposes, but when
generating dynamic pages with:
sub handler {
I have a directory of images use for navigation purposes, but when
generating dynamic pages with:
sub handler {
$r = shift;
...
$r-header_out("Pragma","no-cache");
$r-header_out("Cache-control","no-cache");
$r-no_cache(1);
$r-send_http_header;
page to follow
}
I use the following with regular headers, but try it with err headers to
see if it works as well:
$r-err_header_out("Pragma","no-cache");
$r-err_header_out("Cache-control","no-cache");
cliff rayman
genwax.com
Naren Dasu wrote:
Hi,
I am doing some testing with a
Hi,
I am doing some testing with a Apache/mod_perl server. And since it is
still under development, I do get an occasional server error ;-) . How can
I set no-cache on the Error Pages that the server generates ?
I need to do this because the brower that I am using is very
Can the new sub meta-command not be used to define functions?
I tried:
[$ sub foo $]
[+ shift +]
[$ endsub $]
[+ sub("bar") +]
and got 0.
---
Jason Bodnar + [EMAIL PROTECTED] + Tivoli Systems
That boy doesn't know the difference between the Internet and a hair net. --
Jason Bodnar
It should be [- foo("bar") -]
- Robert
Jason Bodnar wrote:
Can the new sub meta-command not be used to define functions?
I tried:
[$ sub foo $]
[+ shift +]
[$ endsub $]
[+ sub("bar") +]
and got 0.
---
Jason Bodnar + [EMAIL PROTECTED] + Tivoli Systems
That boy doesn't know the
-parsed ,
text/html.. But SSI statements aren't being processed - they are still in
the HTML code that is delivered to the browser. I'm at wits' end.
I would like to post this question on a Apache mailing list because I can
seem to find the answer on the apache web site, this apache book, or by
sear
Interesting.
I tested an identical setup of Apache/modperl/Embperl/Oracle on NT and
Linux, and I experienced a huge slowdown on NT. When I looked into it, I
found that the more database-intensive the page, the slower the relative
performance of the NT platform. I took that to mean that it
Brad Babb wrote:
Hi,
I'm about to put a site into production using Apache::ASP, and need to have
a development side to the site to continue working.
I won't to be able to have 2 difference Application, one for the production
side, and one for the development side. What do I need to do to
I'm using mod_perl and have Apache::DBI in my startup.pl file.
I usually put my DBI-connect line outside of the handler sub... however, I
would like to put the DBI-connect line inside of the sub so I can get the
connection info from a couple of 'PerlSetVar' config directives (similar to
the way
901 - 956 of 956 matches
Mail list logo