Re: ASP script shown in the web browser

2007-08-24 Thread Helmut Zeilinger

Hi Shirley,

most important are the following directives in the
vhost-/ or httpd- config file:

...
   PerlModule  Apache::ASP

   FilesMatch .*\.asp
   SetHandler perl-script
   PerlResponseHandler  Apache::ASP
...

Checkout if these lines are present, if yes -
and the server starts without complaining ! -
and it still does not work, please post the relevant section
of your httpd.conf (or vhost.conf).

Helmut

(I am on vacation for one week, so someone else might help you in this case)

Shirley Mayadewi schrieb:

*Hi,*
**
I am trying to build the Apache Web Server (Apache-ASP-2.59 with
apache_1.3.37) with mod_perl ( mod_perl-1.30 ) and mod_ssl ( mod_ssl-
2.8.28-1.3.37 ) in Linux (Fedora Core 6). I have followed the instructions
under *Build Apache and mod_perl* and *Quick Start.* Basically, after I put
all the source codes for apache, mod_ssl, and mod_perl under make_httpd
folder, I just ran ./build_httpds.sh and it was completed with no errors.

But after I start apache and test the examples in the folder
$DOCUMENT_ROOT/asp/site/eg, it doesn't work. The ASP script is still shown
in the browser. Can anyone give me any suggestions what I should try?
Thanks.

S

  




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Can't locate object method request via package Apache

2007-07-11 Thread Helmut Zeilinger

Hi Tim,

(like i postet Tidal 2 months ago on this list)

you might try a patch from Maurice Yarrow:

see

http://www.gossamer-threads.com/lists/modperl/asp/89060?search_string=yarrow;#89060 



(approx. bottom quarter of the page)


Helmut


T R Stickland schrieb:
[First a quick hello.   We (http://edina.ac.uk/) have been using 
Apache::ASP for a few years, but you haven't heard much from us as 
it's worked pretty well!]


For the first time I've built apache2 (apache 2.2.4, mod_perl 2.0.3) 
for use with ASP (2.59).   The build and configuration went fine.   
The web server started up and was fine until the first time I tried to 
access an ASP application.


   Can't locate object method request via package Apache at 
[...]/perl5/lib/perl5/site_perl/5.8.0//Apache/ASP.pm line 165.

...and that line is...


   my $rtest = $ModPerl2 ? Apache2::RequestUtil-request() : 
Apache-request();

It's calling Apache-request when should be calling 
Apache2::RequestUtil-request (it's mod_perl version 2.0.3).So 
it's the $ModPerl2 flag.   Line 66 of ASP.pm initialized it:


   $ModPerl2 = ($mod_perl::VERSION = 1.99);

Now it turns out $mod_perl::VERSION is 1.30.   There's an easy 
workaround using $ENV{MOD_PERL_API_VERSION}


   $ModPerl2 = ($ENV{MOD_PERL_API_VERSION} = 2);

I see this has occurred before, though the error reported was 
different, and also in that case  $mod_perl::VERSION was undefined 
rather than having the wrong value.See:  
http://tech.groups.yahoo.com/group/apache-asp/message/2136


On one hand the workaround is OK, and I'm not keen to guddle about in 
the mod_perl code.  On the other hand, I'm not really happy just 
ignoring the fact that $mod_perl::VERSION is wrong...


Anyone know the cause and/or better fix? 
tim




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Can't call method item -- ASP.pm line 1521

2007-01-18 Thread Helmut Zeilinger

Hi Spirit,

it is most likely because there exist no Server Variables

'PATH_INFO' and
'PATH_TRANSLATED'

at least on my linux system.

But may be on windows they should exist,
which i can't test now for some reason..?

Did you try to add

PerlOptions +SetupEnv

in your http / vhost-conf?

What about other Server Variables like

eg. QUERY_STRING, REQUEST_URI?

Do they exist / work?


Helmut




SPiRiT_oF_HeLLSoNG serveur schrieb:

Hi and thaanks for your answer.
Here my httpd.conf:

PerlRequire C:/startup.pl
PerlModule Apache::ASP
Files ~ (\.asp)
SetHandler perl-script
PerlHandler Apache::ASP
PerlSetVar Global .
PerlSetVar StateDir C:/tmp/asp
/Files
---
inside C:/startup.pl:

#!/usr/bin/perl

use Apache2::compat;
1;
---
the hello.asp file is some sample from the sample library installed 
with apache-asp


%@ LANGUAGE = PerlScript %
html
HEAD
!--
Copyright (c) 1996, Microsoft Corporation. All rights reserved.
Developed by ActiveState Internet Corp., http://www.ActiveState.com
--
TITLE Hello World /TITLE
/HEAD

BODY BODY BGCOLOR=#FF
!--
ActiveState PerlScript sample
PerlScript: The coolest way to program custom web solutions.
--

!-- Masthead --
TABLE CELLPADDING=3 BORDER=0 CELLSPACING=0
TR VALIGN=TOP TD WIDTH=400
A NAME=TOPIMG SRC=PSBWlogo.gif WIDTH=400 HEIGHT=48 
ALT=ActiveState PerlScript BORDER=0/AP

/TD/TR/TABLE

%
for ($i = 3; $i  8; $i++) {
%
font size=%= $i %
Hello World!
/font
BR
%
}
%

!-- +
here is the standard showsource link -
Note that PerlScript must be the default language -- hr
%
$url = $Request-ServerVariables('PATH_INFO')-item;
$_ = $Request-ServerVariables('PATH_TRANSLATED')-item;
s/[\/\\](\w*\.asp\Z)//m;
$params = 'filename='.$1.'URL='.$url;
$params =~ s#([^a-zA-Z0-9_.:%/-\\]{1})#uc '%' . unpack('H2', $1)#eg;
%
A HREF=index.htm Return /A
A HREF=showsource.asp?%=$params%
h4iview the source/i/h4/A

/BODY
/HTML

---


From: Helmut Zeilinger [EMAIL PROTECTED]
To: SPiRiT_oF_HeLLSoNG serveur [EMAIL PROTECTED]
Subject: Re: Can't call method item -- ASP.pm line 1521
Date: Mon, 15 Jan 2007 16:41:44 +0100

Hi Spirit,

could you supply your httpd config (the relevant section only!)
and the content of your hello.asp?

Helmut

SPiRiT_oF_HeLLSoNG serveur schrieb:

Hello ASP community,

Here my problem:
I run a little server with Apache/2.0.53 (Win32) mod_perl/2.0.3 
Perl/v5.8.8
and i have recently installed Apache::ASP but, none of the samples 
work.

They just give me an error 500 and my log show this error:
[Thu Jan 11 17:57:15 2007] [error] [asp] [4996] [error] Can't call 
method
item on an undefined value at C:/webapache/asp/hello.asp line 38. 
-- ,

C:/usr/site/lib/Apache/ASP.pm line 1521

Any idea?

_
Windows Live Messenger sur i-mode™ : dialoguez avec vos amis depuis 
votre mobile comme sur PC ! http://mobile.live.fr/messenger/bouygues/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






_
Ten : Messenger en illimité sur votre mobile ! 
http://mobile.live.fr/messenger/ten/





--
HZ.labs
Dr. Helmut Zeilinger
Wiesengrund 2
D-86 684 Holzheim
Tel. 08276 58767
Fax. 08276 58787
Mobil0160 91 55 61 68 
Internet http://www.hzlabs.de

Mail [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ASP error: Can't locate object method get via package APR::Table...

2006-06-12 Thread Helmut Zeilinger

Hi Maurice,

can you check of few things:

Is there an APR::Table module?
(Usually in a subtree of /usr/lib/perl5)

This should have been created/installed within the mod_perl 2 installation
(from the source package).

If yes what version is it ?
Are there multiple (outdated) versions of it installed?

If no, how did you install mod_perl? Can you reinstall it from the
mod_perl's source:

http://perl.apache.org/dist/mod_perl-2.0-current.tar.gz


Helmut


Maurice Yarrow schrieb:

Hello ASP people

Environment:
   FC1
   apache httpd 2.0.58
   perl5.8.8
   BLDBM,  BLDBM::Sync, Apache::ASP (2.59)  - I just installed these.
   mod_perl.so (2.0.2) installed, httpd.conf configured with appropriate
   LoadModule directive

After making and installing the above perl modules, copied the
Apache-ASP-2.59/site/asp directory tree to htdocs (including,
of course, htdocs/asp/eg/.htaccess), added the appropriate
   Directory /usr/local/apache2/htdocs/asp/eg 
 Options FollowSymLinks
 AllowOverride All
   /Directory
directive.
Can go to http://localhost/asp  (index.html), but get the below error
message when going to http://localhost/asp/eg  (i.e., the examples
dir from above):

[Tue Jun 06 00:05:32 2006] [error] [client 192.168.1.122] Can't locate 
object method get via package APR::Table at 
/usr/local/lib/perl5/site_perl/5.8.8/Apache/ASP.pm line 2016.\n at 
/usr/local/lib/perl5/site_perl/5.8.8/Apache/ASP.pm line 
2016\n\tApache::ASP::get_dir_config('APR::Table=HASH(0x85005c4)', 
'Global') called at /usr/local/lib/perl5/site_perl/5.8.8/Apache/ASP.pm 
line 275\n\tApache::ASP::new('Apache::ASP', 
'Apache2::RequestRec=SCALAR(0x85005a0)', 
'/usr/local/apache2/htdocs/asp/eg/index.html') called at 
/usr/local/lib/perl5/site_perl/5.8.8/Apache/ASP.pm line 
183\n\tApache::ASP::handler('Apache2::RequestRec=SCALAR(0x85005a0)') 
called at -e line 0\n\teval {...} called at -e line 0\n

[EMAIL PROTECTED] Apache-ASP-2.59]#

I observe that this is an error that has been reported previously in
the ASP user group archives (currently maintained at yahoo), but
I saw no indication of a resolution.  (I am not a yahoo special
interest group member, so did not pursue it further at that location.)

Any ideas ?

Regards,
Maurice Yarrow




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: might be Off Topic...

2005-07-26 Thread Helmut Zeilinger

Hi D.L.,

just an idea - try to add a name attribute to the
input elements instaed of / in addition to the
id attributes.


Helmut


D. L. Fox schrieb:




Joshua Chamas wrote:


The problem seems to be what the browser is sending, since on the
server side its not seeing any content uploaded from the form:



I thought it might be something with Firefox so I tried it with IE, 
Netscape, Mozilla, and Opera all with the same results.



So maybe the HTML itself is not correct, but honestly it looked
fine to me.



I wondered if the HTML might have something to do with it but it 
validates as strict per the W3C, so I'm not sure what to think.



Maybe also a chance that the apache server + mod_perl is too old
and you should upgrade.  The mod_perl version is pretty old
at this point.



I wish I had that option. This is a hosted site, unlike before when I 
normally ran things on my own stuff. I have been searching for another 
host provider anyway. I am no longer satisfied with my current one. 
They don't seem to stay up-to-date with their software, and they 
change things which will break your site without telling you.


The main reason I chose this provider was because they had 
Apache::ASP. Now I need to find another host account with Apache::ASP. 
Is there a list of providers using Apache::ASP somewhere?


I've been looking through the many lists of providers on the 'Net but 
it's difficult to search on Apache::ASP because it always turns up 
MS-ASP or Chili. I can program in VB just fine but would *much* rather 
use Apache::ASP and Perl.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Perl DBI with Apache ASP

2005-05-23 Thread Helmut Zeilinger

Hi,

what does DBI::errstr say ?

E.g.

...
$DBH=DBI-connect($dsn,$user,$pwd);
print DBI::errstr;

# prevent the script from dying in the subsequent $dbh-execute();
$Response-End();
...


By the way:

- I would not use a global variable $DBH rather than a private my 
$DBH.

 What happens, if a second script (in another apache child) is
 calling $DBH-execute just after in the first script 
$DBH-disconnect() was done?



Helmut




Hello

I am working on an apache asp page that has a mysql database at the 
backend.  The problem I have is that the code does work but sometimes 
the error


#  Can't call method prepare on an undefined value
appears and my page fails.

I know the code I have works because it runs several times then 
fails.  I have also established that the error is because the 
connection to the database failed.


The database is on the same system so network errors are not the problem.

The following is the code

my $price=;
  5: my $product=;
  6: my $ID=;
  7:
  8: if ($Request-Params('par'))
  9: {
 10:$par=$Request-Params('par');
 11: }
 12: else
 13: {
 14:$Response-Redirect('test.asp');
 15: }
 16:
 17: $price=$Request-Params('price');
 18: $product=$Request-Params('Product');
 19: $ID=$Session-{'user'};
 20:
 21: $DBH=DBI-connect($dsn,$user,$pwd);
 22:
 23: $sth=$DBH-prepare(Insert into 
wishlist(sessionID,product,price,pnumber,pcode,name) values 
('$ID','$product','$price','not-set','$par','not-set') );


 24:
 25:
 26: $sth-execute();
 27:
 28: $sth-finish;
 29: $DBH-disconnect;
 30:
 31: $Response-Redirect(test.asp?par=$par);
 32:

The DBI-connect parameters are setup in the global.asa file.  I had 
the connect statement in there too but I would get more refreshes and 
successful runs when it was in here then in the global.asa.  It seems 
to be intermittent for some reason. 

Again the code does do what it is supposed to most of the time but 
sometimes fails with the above error.


Can anyone help me on this.

Many thanks

Trevor Cushen
Sysnet Ltd

Telephone: 01-2983000


** 
This email and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they 
are addressed. If you have received this message in error please 
notify SYSNET Ltd., at telephone no: +353-1-2983000 or 
[EMAIL PROTECTED] 
**





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Application Variable not getting created

2005-05-23 Thread Helmut Zeilinger
   /usr/local/lib/perl5/site_perl
   .
==

Could anyone please let me know what could be the problem?  Please 
let me know if you need any further information from me.


I also notice another problem with .asp files.  When I run an .asp 
file for the first time in a new browser, I get the following error.


=
Errors Output 
, /usr/local/lib/perl5/site_perl/5.8.6/Apache/ASP.pm line 1518 

Debug Output 
, /usr/local/lib/perl5/site_perl/5.8.6/Apache/ASP.pm line 1518 
=


But when I reload the application, I don't receive this error. 
Any 
thoughts on this?


Thanks in advance,
Sangeeth




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 




--
HZ.labs
Dr. Helmut Zeilinger
Wiesengrund 2
D-86 684 Holzheim
Tel   08276/58767
Fax.  08276/58787
Mobil  0160 91 55 61 68 
Internet  http://www.hzlabs.de

Mail  [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Application Variable

2005-05-18 Thread Helmut Zeilinger
Hi,
you might try something like this:
...
foreach my $ap_key (sort keys %{$Application}) {
 print qq ($ap_key = $Application-{$ap_key}br);
}
...
Helmut
How do we print all the application variable names and its  values?  I 
tried the following but it didn't work.

my $item;
foreach $item ($Application-Contents) {
print $itembr;
}
Any suggestions?  Thanks in advance.
Sangeeth

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


--
HZ.labs
Dr. Helmut Zeilinger
Wiesengrund 2
D-86 684 Holzheim
Tel   08276/58767
Fax.  08276/´58787
Mobil  0160 91 55 61 68 
Internet  http://www.hzlabs.de
Mail  [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: problem

2005-05-15 Thread Helmut Zeilinger

i install apache::asp on windows
apache_2.0.48-win32-x86-no_ssl.msi
ActivePerl-5.8.6.811-MSWin32-x86-122208.msi
And mod perl
When I try to get tha page I get  No valid request object 
(Apache2::RequestRec 

Any one has an idea why this is happening?
Hi,
if you are using the newest mod_perl (RC6) you should rename everything 
(at least) in

...site/lib/Apache/ApacheCommon.pm
according to
http://perl.apache.org/docs/2.0/rename.html
HTH
Helmut

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: problem

2005-05-15 Thread Helmut Zeilinger
Helmut Zeilinger schrieb:

i install apache::asp on windows
apache_2.0.48-win32-x86-no_ssl.msi
ActivePerl-5.8.6.811-MSWin32-x86-122208.msi
And mod perl
When I try to get tha page I get  No valid request object 
(Apache2::RequestRec 

Any one has an idea why this is happening?
Hi,
if you are using the newest mod_perl (RC6) you should rename 
everything (at least) in

...site/lib/Apache/ApacheCommon.pm
according to
http://perl.apache.org/docs/2.0/rename.html
HTH
Helmut

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
sorry should be
Path_to_Perl\site\lib\Apache\ASP\ApacheCommon.pm
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Apache feature NO-private IP

2005-05-05 Thread Helmut Zeilinger

I have a server running Apache.
I know how to web host and assigning
virtual host space too. But I need to know
how to generate NO-Private IP with Apache.
I was told by a friend that Apache has that
feature but I can't find on the web any good
link explaining how. I would I appreciate if
somebody could tell me how.
 

May be that helps
http://httpd.apache.org/docs-2.0/vhosts/
(assuming you are using Apache 2).
Of course you can't generate an IP address by Apache..
you can do this by using the ip tool for example (ip addr add..).
Helmut
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Subdomain Creation In Apache server

2005-05-05 Thread Helmut Zeilinger
Bharat Suneel Varma S schrieb:
Dear all,
I have a problem in creating subdomain in apache.
The subdomain looks like subdomain.domian.

Waiting for your reply.

 

Could you give more information here..
what is the relation to Apache::ASP?
Helmut
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: MailErrorsTo

2005-03-14 Thread Helmut Zeilinger
Hi,
 
 i am using MailErrorsTo to get infos from scripts,
 that have been crashed on the production web server.
 
 ..
 PerlSetVar MailHost localhost
 PerlSetVar MailFrom [EMAIL PROTECTED]
 PerlSetVar MailErrorsTo [EMAIL PROTECTED]
 ..
 
 Mailer: exim 4.x
 
 Problem: The mails do not have a date, which would be
 very helpfull in same situations.
 
 Did i miss something or does MailErrorsTo never set a date?
 
 
 When I use this feature, there is an SMTP date which is displayed
 in my mail client.  When is this not sufficient?
 

There is no date in the mails i receive. In the mails headers
is no Date: field - see below. But there is a Delivery-date: field.

One mail client (mulberry) shows no date at all,
thunderbird shows some kind of default date (1.1.1970).

But may be some mailers use this Delivery-date: if there is no
Date: field?

So i guess i have to change something in the mail servers 
configuration to set the date. 

But anyway, my problem is solved, because I can look for the 
Delivery-date: to see when the error has happened.

Thank you!

Helmut


[ASP-Error Mail]
Return-path: [EMAIL PROTECTED]
Envelope-to: [EMAIL PROTECTED]
Delivery-date: Mon, 14 Mar 2005 17:01:32 +0100
Received: from p508072b8.dip0.t-ipconnect.de ([80.128.114.184] helo=rosa)
by mail.hzlabs.de with esmtpa (Exim 4.43)
id 1DAs0Z-0006Mo-K0
for [EMAIL PROTECTED]; Mon, 14 Mar 2005 17:01:32 +0100
Received: from localhost ([127.0.0.1] helo=localhost.localdomain)
by rosa with esmtp (Exim 4.43)
id 1DAs0f-SK-W2
for [EMAIL PROTECTED]; Mon, 14 Mar 2005 17:01:38 +0100
Subject: Apache::ASP Errors for /unsinn/zeit/main.asperl
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
MIME-Version: 1.0
Content-Type: text/html
Content-Length: 15086
Status: RO
X-UID: 1300
X-Keywords:


GLOBAL: /unsinn/zeit 
FILE: /unsinn/zeit/main.asperl 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: passing $Request-Params() ?

2005-02-15 Thread Helmut Zeilinger
Hi Tia,

 
 How to pass Params-hash to other script..what  I want is :
 
 add.asp -calls-- do_add.asp
 
 Now in do_add.asp I want to do some stuff and after that want to 
 call add.asp again with the Params-hash so that I can refill the 
 add.asp-Form with data...

what do you mean by call? 

is it a link (a href=..) in add.asp that points to do_add.asp
or do you include do_add.asp into add.asp via $Response-Include ()?

 What is the best way to do it ?
 I thought to use Session !! then Include with parameters !?
 both seems unsuitale for this task or is it ?!


Helmut

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: passing $Request-Params() ?

2005-02-15 Thread Helmut Zeilinger
 I want add.asp to get the focus/be-executed (like it been typed in the
 url-bar, not like a-link), but get the same data which was typed in the
 first-add.asp-FORM.
 Like this :
 add.asp --- do_add.asp -- add.asp--.
I__|
 

no, not so clear, but anyway, you like data 
created in add.asp to be accessable in do_add.asp 
(or vice versa) - right?

add.asp:
..
my $params = { some hash };
..

do_add.asp:
..
my $params = { same hash}
..

- you can use a Session variable - as you stated - but be aware
of the 1024 byte limit of SDBM_File and that you assign the hash
in ONE step (for both see Apache::ASP man page)

..
$Session-{complex} = {data = $data}; # Write ok, all at once.
..

- you can also use the Storable module with store and retrieve
and some unique filename for the stored data
or a database like mysql etc. 


Helmut

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A mod_perl content handler and ASP $Session

2005-02-15 Thread Helmut Zeilinger
Hi Phil,
 
 Your reply sounds perfect!  Can you confirm that this will retrieve the
 $Session hash pointer currently being used by the user? 

yes the current session, because $r contains the session information
(cookie)

 Essentially, I do
 not want to create a new $Session, rather retrieve information from the
 one currently in use. 
 

but of course, if the session has expired meanwhile, you will create a new
one,
but to check this you can test for the existence 
of a session key after the session retrievement, that you create before..
(was that clear?)


Helmut


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



@INC

2005-01-24 Thread Dr. Helmut Zeilinger
Hi all,

i have a problem concerning Apache::ASP and the @INC Array:

(Apache 2.0.52, MP 1.999.21)

httpd.conf:
..
PerlRequire /www/hmdb-lifa/conf/startup.pl
..

startup.pl:

#!/usr/bin/perl
use Apache2;
..print @INC to file..
1;

@INC (at server startup) contains:

/usr/lib/perl5/site_perl/5.9.1/i686-linux-thread-multi/Apache2
/usr/lib/perl5/5.9.1/i686-linux-thread-multi
/usr/lib/perl5/5.9.1
/usr/lib/perl5/site_perl/5.9.1/i686-linux-thread-multi
/usr/lib/perl5/site_perl/5.9.1
/usr/lib/perl5/site_perl
.
/usr/local/apache2

just what one expected.

After adding the line use Apache::ASP  to startup.pl, @INC contains:

/usr/lib/perl5/site_perl/5.9.1//i686-linux-thread-multi
/usr/lib/perl5/site_perl/5.9.1/
/usr/lib/perl5/site_perl/5.9.1/i686-linux-thread-multi/Apache2
/usr/lib/perl5/5.9.1/i686-linux-thread-multi
/usr/lib/perl5/5.9.1
/usr/lib/perl5/site_perl/5.9.1/i686-linux-thread-multi
/usr/lib/perl5/site_perl/5.9.1
/usr/lib/perl5/site_perl
.
/usr/local/apache2

Obviously the first two lines were added.

Problems:

- why are there double slashes in the first line? 

- why adding paths, which allready exist?

- the main problem however is, when you have use Apache::ASP in your
startup.pl
or an PerlOptions Autoload in your httpd.conf,
the Apache::ASP handler is loaded at server startup and adjusts the @INC
array 
in a manner that not the Apache2 path comes first.

This can cause wrong (non Apache2) modules being loaded at startup (if
there are any - 
like at my machine) , so that the server 
wouldn't start at all because of version mismatches of  modules.

The problem does not exist, if you have only an PerlModule Apache::ASP,
because then
the Apache::ASP module is loaded later where the handler is involked (at
least that's what i
read in the modperl docus).

To make things confusing, this problem first happend, when i upgraded to
mod_perl-2.0.0-RC4 (from RC1).

Anyway, could it be a solution to add the additional INC-pathes at server
startup behind the original ones and
not before them? 

(The additional document-root path, that is added at handler runtime,
however should stay in front
of the other paths)




Helmut


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error while testing Examples files

2004-05-12 Thread Helmut Zeilinger
Hi,

i guessed, that is has to do with the state management because of

..
 [Tue May 11 13:55:19 2004] [error] [client 127.0.0.1] Undefined
 subroutine Apache::ASP::InitState called at
..

Does it work if you disable session and application state at all by

PerlSetVar NoState 1

(if you allready didn't) ?

Helmut

--On Wednesday, May 12, 2004 09:54:17 +0200 Ehab El Maraghy
[EMAIL PROTECTED] wrote:

 Helmut
 Guten Morgen
 First of all I want to thank you for prompt response.
 I have checked  /tmp/asp permissions, they were 755 I have changed it to
 777 and tested
 same result   (Error 500 Internal Server Error)
 Any other suggestions??
 
 
 
 
 
 
 
 
 
 
 - Original Message -
 From: Helmut Zeilinger [EMAIL PROTECTED]
 To: e_elmaraghy [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Wednesday, May 12, 2004 7:46 AM
 Subject: Re: Error while testing Examples files
 
 
 Hi E.,
 
 just a rough guess: is your state directory /tmp/asp writable and
 readable by apache?
 (or has mode 0777 for a try)
 
 
 Helmut
 
 --On Tuesday, May 11, 2004 11:12:19 + e_elmaraghy
 [EMAIL PROTECTED] wrote:
 
 Hi Folks
 I am having RedHat9  Apache2
 I have installed Apache::ASP for mod_Perl I can view the website
 index
 and config pages but when I go to the Examples subdirectory I can
 view
 the pages with extensions .htm
 but when requesting a (.asp) page I only get Error 500  (Internal
 server rror) although I have added the paragraph
 Directory â?ovar/www/html/asp/egâ? 
 Options FollowSymLinks
 AllowOverride All
   /Directory
 at the end of httpd.conf
 I need a consultation also where in the httpd.conf file  can I  add
 the paragraph
 PerlModule  Apache::ASP
  Files ~ (\.asp)
SetHandler  perl-script
PerlHandler Apache::ASP
PerlSetVar  Global .
PerlSetVar  StateDir /tmp/asp
  /Files
 I have placed it  between virtual host  /virtual host and still
 getting the same result
 
 the error log file
 
 [Tue May 11 13:55:18 2004] [error] [asp] [14921] [debug] RUN ASP (v2.
 57) for /var/www/html/asp/eg/application.asp
 [Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] call srand()
 post fork
 [Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] GlobalASA
 package Apache::ASP::Demo
 [Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] global.asa
 was not cached for __ASP__var_www_html_asp_eg__xxApache::ASP::Demo
 [Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] compiling
 global.asa Apache::ASP::Demo __ASP__var_www_html_asp_eg__xxApache::
 ASP::Demo exists 1 - asp: Apache::ASP=HASH(0x84fa0bc); compiled:
 HASH(0x85d06b4); exists: 1; package: Apache::ASP::Demo;  - --- -
 exists: 0; mtime: 0;
 [Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] global.asa
 routines - Application_OnEnd: 1; Application_OnStart: 1;
 Script_OnEnd:
 1; Script_OnFlush: 1; Script_OnStart: 1; Session_OnEnd: 1;
 Session_OnStart: 1;
 [Tue May 11 13:55:19 2004] [error] [client 127.0.0.1] Undefined
 subroutine Apache::ASP::InitState called at
 /usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 418.!!Apache::ASP::
 new('Apache::ASP','Apache::RequestRec=SCALAR(0x84f9f6c)',
 '/var/www/html/asp/eg/application.asp') called at
 /usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 181!!Apache::ASP::
 handler('Apache::RequestRec=SCALAR(0x84f9f6c)') called at -e line 0!!
 eval {...} called at -e line 0!, referer: http://ehab/asp/eg/index.
 html
 [Tue May 11 13:55:21 2004] [error] [asp] [14921] [debug] destroying
 ASP object Apache::ASP=HASH(0x84fa0bc)
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error while testing Examples files

2004-05-11 Thread Helmut Zeilinger
Hi E.,

just a rough guess: is your state directory /tmp/asp writable and
readable by apache?
(or has mode 0777 for a try)


Helmut

--On Tuesday, May 11, 2004 11:12:19 + e_elmaraghy
[EMAIL PROTECTED] wrote:

 Hi Folks
 I am having RedHat9  Apache2 
 I have installed Apache::ASP for mod_Perl I can view the website
 index 
 and config pages but when I go to the Examples subdirectory I can
 view 
 the pages with extensions .htm
 but when requesting a (.asp) page I only get Error 500  (Internal 
 server rror) although I have added the paragraph
 Directory “var/www/html/asp/eg” 
 Options FollowSymLinks
 AllowOverride All
   /Directory
 at the end of httpd.conf 
 I need a consultation also where in the httpd.conf file  can I  add 
 the paragraph
 PerlModule  Apache::ASP
  Files ~ (\.asp)
SetHandler  perl-script
PerlHandler Apache::ASP
PerlSetVar  Global .
PerlSetVar  StateDir /tmp/asp
  /Files
 I have placed it  between virtual host  /virtual host and still 
 getting the same result
 
 the error log file 
 
 [Tue May 11 13:55:18 2004] [error] [asp] [14921] [debug] RUN ASP (v2.
 57) for /var/www/html/asp/eg/application.asp
 [Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] call srand() 
 post fork
 [Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] GlobalASA 
 package Apache::ASP::Demo
 [Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] global.asa 
 was not cached for __ASP__var_www_html_asp_eg__xxApache::ASP::Demo
 [Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] compiling 
 global.asa Apache::ASP::Demo __ASP__var_www_html_asp_eg__xxApache::
 ASP::Demo exists 1 - asp: Apache::ASP=HASH(0x84fa0bc); compiled: 
 HASH(0x85d06b4); exists: 1; package: Apache::ASP::Demo;  - --- - 
 exists: 0; mtime: 0; 
 [Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] global.asa 
 routines - Application_OnEnd: 1; Application_OnStart: 1;
 Script_OnEnd: 
 1; Script_OnFlush: 1; Script_OnStart: 1; Session_OnEnd: 1; 
 Session_OnStart: 1; 
 [Tue May 11 13:55:19 2004] [error] [client 127.0.0.1] Undefined 
 subroutine Apache::ASP::InitState called at 
 /usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 418.!!Apache::ASP::
 new('Apache::ASP','Apache::RequestRec=SCALAR(0x84f9f6c)',
 '/var/www/html/asp/eg/application.asp') called at 
 /usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 181!!Apache::ASP::
 handler('Apache::RequestRec=SCALAR(0x84f9f6c)') called at -e line 0!!
 eval {...} called at -e line 0!, referer: http://ehab/asp/eg/index.
 html
 [Tue May 11 13:55:21 2004] [error] [asp] [14921] [debug] destroying 
 ASP object Apache::ASP=HASH(0x84fa0bc)
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Status and ErrorDocument

2004-05-03 Thread Helmut Zeilinger
--On Friday, April 30, 2004 19:43:04 -0700 Josh Chamas [EMAIL PROTECTED]
wrote:

 Helmut Zeilinger wrote:
 Hi all,
 
 when i try to use 
 
 $Response-ErrorDocument (404, '/notfound.page')
 
 in combination with 
 
 $Response-Status (404)
 
 i do not get my notfound page, but a 404 Apache error message
 combined with an additional 404 message:
 
 
 I don't know why this would not work for you.  Apache::ASP uses
 Apache-request-custom_response($code, $uri) internally, and you
 might try that API directly.
 
 If nothing ends up working for you, you might try first doing a:
 
   my $error_text = $Response-TrapInclude('notfound.page');
   $Response-ErrorDocument(404, $$error_text);
 

Of course that would work..

I did some trying:
It works perfect when i comment out line 459 in ASP/Response.pm (Version
2.57)

..
$r-status($status) if defined($status);
..

at least what this particular problem concerns..


Regards

Helmut

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



$r-status() ?

2004-05-01 Thread Helmut Zeilinger
Hi all,

i am confused about $r-status().
When do i have to set this manually - if ever? 
I searched for documentations about this item, but i did not find a
detailed explaination.

My problem is, what's the difference between

sub handler {
..
$r-status(404);
return (?);
}

and

sub handler {
..
return (HTTP_NOT_FOUND);
}

[? means that i don't know what to return]


Regards

Helmut




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: $r-status() ?

2004-05-01 Thread Dr. Helmut Zeilinger
Sorry,  i erroneously posted this to the asp list, but it rather should
have been posted to the mod_perl list ..


--On Saturday, May 01, 2004 09:12:39 +0200 Helmut Zeilinger [EMAIL PROTECTED]
wrote:

 Hi all,
 
 i am confused about $r-status().
 When do i have to set this manually - if ever? 
 I searched for documentations about this item, but i did not find a
 detailed explaination.
 
 My problem is, what's the difference between
 
 sub handler {
 ..
 $r-status(404);
 return (?);
 }
 
 and
 
 sub handler {
 ..
 return (HTTP_NOT_FOUND);
 }
 
 [? means that i don't know what to return]
 
 
 Regards
 
 Helmut
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Trouble with the arrow operator(-) in custom tags

2004-04-19 Thread Helmut Zeilinger
Maybe

${$Session}{'User'}

helps?

Helmut


--On Sunday, April 18, 2004 22:33:36 -0700 Christopher Brown
[EMAIL PROTECTED] wrote:

 Hi,
 
 This could be really simple or really easy.
 
 I want to write a custom tag that renders the content of the tag only if
 the 'test' argument evaluates to be true.  I want it to work something
 like this:
 
 asp:Test test=$Session-{User}
 The Session User Object Exists
 /asp:Test
 
 
 Where the Perl code is:
 
 sub asp::Test {
 
 my ($args, $content) = @_;
 
  if ( eval( $args-{test} ) != 0  ) {
  $Response-Write($content);
  }
 
 }
 
 The problem here is that the parser recognizes the  of the arrow
 operator - as the tag closure.  Has anyone experienced similar
 troubles?  Is there a good (easy) solution?
 
 Thanks In Advance,
 
 Chris
 
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: use perl modules in Apache::ASP

2004-04-19 Thread Dr. Helmut Zeilinger
Hi S=F8ren,

several ways:

1) in your asp file:
..
do 'test.pl';
subroutine();
..

or do 'path/test.pl' if test.pl is in another path than your asp script.

2) in your apache.conf:

..
PerlRequire path/test.pl
..

important: test.pl must return a true value e.g. must end with 1; and
your subroutine(s) must be
prepended with the package name you gave in the PerSetVar GlobalPackage
directive,
e.g. in test.pl:
..
sub GP::testsub {
..

and call it in your asp:
..
GP::testsub();
..

3) convert the test.pl to the perl module test.pm.

Please read man perlmod for this, there also exists a script=20
pl2pm (at least i think, this is the name?) which converts a pl file to a
pm file.

4) in your test.pl:

remove the #!/usr/bin/perl (or similar) line and put a % at the begin
and a % at the end of the file
and rename it test.inc (for example)

In your asp:
..
$Response-Include ('test.inc)
..
(of course before calling the subrouine)

May be there are more ways..


Helmut


 Hi all,
 =20
 Is it possible to include/use an external PERL module in an ASP page?
 I have a ASP page that needs to access subroutines placed in a PERL file.
 =20
 E.g. test.asp needs to use test.pl in order to access the subroutine =
test.
 =20
 ---
 Apache server
 Apache:ASP
 Win2000 Server
 ---
 =20
 /Soren
 =20
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: use perl modules in Apache::ASP

2004-04-17 Thread Helmut Zeilinger
Hi Søren,

several ways:

1) in your asp file:
..
do 'test.pl';
subroutine();
..

or do 'path/test.pl' if test.pl is in another path than your asp script.

2) in your apache.conf:

..
PerlRequire path/test.pl
..

important: test.pl must return a true value e.g. must end with 1; and
your subroutine(s) must be
prepended with the package name you gave in the PerSetVar GlobalPackage
directive,
e.g. in test.pl:
..
sub GP::testsub {
..

and call it in your asp:
..
GP::testsub();
..

3) convert the test.pl to the perl module test.pm.

Please read man perlmod for this, there also exists a script 
pl2pm (at least i think, this is the name?) which converts a pl file to a
pm file.

4) in your test.pl:

remove the #!/usr/bin/perl (or similar) line and put a % at the begin
and a % at the end of the file
and rename it test.inc (for example)

In your asp:
..
$Response-Include ('test.inc)
..
(of course before calling the subrouine)

May be there are more ways..


Helmut


 Hi all,
  
 Is it possible to include/use an external PERL module in an ASP page?
 I have a ASP page that needs to access subroutines placed in a PERL file.
  
 E.g. test.asp needs to use test.pl in order to access the subroutine test.
  
 ---
 Apache server
 Apache:ASP
 Win2000 Server
 ---
  
 /Soren
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ASP on Redhat Virtual Server

2004-02-08 Thread Helmut Zeilinger
Hi Steve,

did you do

AddType text/html .asp  ?

(and set the executable bit of the asp-file)

That's because the XBitHack on directive only works
on files of the type text/html. (At least that's what the
Apache manual says)
Of course you could do the same
with
print readpipe ('ls');

and so on.. (glob()..)

Regards

Helmut



It works!  It really WORKS!



A big THANK YOU to all who helped me through this.  Some 20+ ASP's are
now registering folks for orienteering events, keeping track of results
and keeping track of the volunteers who help with the events.


I still have at least one problem left to solve.  I can't do a server
side include to include code in a different directory than the
DOCUMENT_ROOT directory.  I can't !--#exec cmd=/bin/ls -- or
!--#exec cgi=http://ptoc.org/cgi-bin/bulletin.pl; -- or exec
cmd=http://ptoc.org/cgi-bin/bulletin.pl; --


I can do !--#echo var=DATE_LOCAL -- and  !--#flastmod
file=test.html --


Some of httpd.conf is as follows

VirtualHost 209.133.46.140

Directory /home/webadmin/ptoc.org/html

Options Indexes FollowSymLinks ExecCGI Includes

AllowOverride All

XBitHack on

/Directory

PerlModule  Apache::ASP

Files ~ (\.asp)

  SetHandler  perl-script

  PerlHandler Apache::ASP

  PerlSetVar  Global /home/webadmin/ptoc.org/register

  PerlSetVar  StateDir /tmp/asp

  PerlSetVar Debug 2

  PerlSetVar UseStrict 0

/Files

DocumentRoot /home/webadmin/ptoc.org/html

Alias /register/ /home/webadmin/ptoc.org/register/

ScriptAlias /cgi-bin/ /home/webadmin/ptoc.org/cgi-bin/



Any help is greatly appreciated.



Steve Brown




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: $Session object

2004-02-04 Thread Helmut Zeilinger
Hi Chris,

the reason for the data size limit is, that the SDBM hash size
limit is 1024 bytes for the key + the value.
You can store more data if you use DB_File or MLDBM::Sync::SDBM_File
for storing the data.
But see man Apache::ASP, Section State Management (StateDB).

Regards

Helmut

I seem to remember reading in this group, that you shouldn't stuff too
much data in $Session.  Why is this the case?  Is is simply performance,
and if so how much data can I store in here reasonably.
The reason that I ask is this:

I tend to develop using OO, and was wondering if there are any
ramifications of generating a reasonably complex object (hash structure
with references to array references and other hash structures, probably
about 30K of data) and simply storing the pointer to this in the $Session
object.
Now when the script actually finishes, does the $Session object in it's
entirity get dumped to the state directory (I'm assuming that this is the
case) or does my complex object get kept in memory until the $Session
object expires; when the $Session object is destroyed, there will be no
more references to my object and hence it should be garbage collected.
Any shedding of light on this would be appreciated.

Regards,

Chris.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: New Perl 5.8.0

2004-01-29 Thread Helmut Zeilinger
Hi Steve,

your Perl configuration is a little bit confusing..
Why did you (they) install perl 5.8.0 and perl 5.8.3 at different locations?
What version does perl -V give and what @INC does it indicate?

What i would do is delete all the different Perl installations - manually -
that means, remove all the different Perl interpreters and remove everything
under /usr/lib/perlx and /usr/local/lib/perlx and install
perl again with the prefix /usr or /usr/local.
I think, this would not take as much time as repairing around this strange 
installation.
Of course you have to reinstall all the necessary non-standard modules 
again.

Helmut

--On Wednesday, January 28, 2004 19:58:10 -0600 Steve Brown 
[EMAIL PROTECTED] wrote:

Spencer at globalservers.com has recompiled mod_per and apache using perl
5.8.  See message below.
We have perl 5.8.0 installed at /usr/bin.

We have perl 5.8.3 installed at /usr/local/bin

I have done a /usr/bin/perl -MCPAN -e shell
cpan install Bundle::Apache::ASP
and a /usr/local/bin/perl -MCPAN -e shell
cpan install Bundle::Apache::ASP
When I put these lines into the /etc/httpd/conf/httpd.conf file:
PerlModule  Apache::ASP
Files ~ (\.asp)
  SetHandler  perl-script
  PerlHandler Apache::ASP
  PerlSetVar  Global /home/webadmin/ptoc.org/register
  PerlSetVar  StateDir /tmp/asp
  PerlSetVar UseStrict 0
  PerlSetVar Debug 3
/Files
The Apache web server will not restart and gives no errors in error_log.

When I comment out these lines and put them in the
/home/webadmin/ptoc.org/register/.htaccess file.  I get the following
error when I run my test.asp (Hello World) asp.
[Wed Jan 28 11:24:58 2004] [alert] [client 207.43.195.204]
/home/webadmin/ptoc.org/register/.htaccess: Can't locate Digest/MD5.pm in
@INC (@INC contains: /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.6.1/i386-linux
/usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl . /etc/httpd/
/etc/httpd/lib/perl) at /usr/lib/perl5/site_perl/5.6.0/Apache/ASP.pm line
13.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.6.0/Apache/ASP.pm line 13.
Compilation failed in require at (eval 2) line 3.
We don't understand why it's showing perl 5.6 in the error message and of
course it doesn't work.
With the lines commented out here's the error_log entry from a good
restart: [Wed Jan 28 11:23:46 2004] [notice] Apache/1.3.27 (Unix)
(Red-Hat/Linux) PHP/4.1.2 mod_perl/1.26 configured -- resuming normal
operations
Any help would be appreciated.

Steve Brown

-Original Message-
From: Candland, Spencer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 11:46 AM
To: 'Steve Brown'
Subject: RE: New Perl 5.8.0
I just completely recompiled mod_perl and apache using perl 5.8.  Please
try
again.  If you continue to have problems please make sure there is
nothing in apache ASP that is specifically referencing perl 5.6.
-Original Message-
From: Steve Brown [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 27, 2004 7:52 PM
To: Candland, Spencer
Subject: RE: New Perl 5.8.0
I am very sorry to report, but from the following error, it appears that
mod_perl is still using perl 5.6
[Tue Jan 27 18:42:42 2004] [alert] [client 24.145.166.227]
/home/webadmin/ptoc.org/register/.htaccess: Can't locate Digest/MD5.pm in
@INC (@INC contains: /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.6.1/i386-linux
/usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl . /etc/httpd/
/etc/httpd/lib/perl) at /usr/lib/perl5/site_perl/5.6.0/Apache/ASP.pm line
13.
Steve Brown

 -Original Message-
 From: Candland, Spencer [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, January 27, 2004 7:36 PM
 To: 'Steve Brown'
 Subject: RE: New Perl 5.8.0

 I recompiled mod_perl against perl 5.8 for you.  I believe your may
 need to
 reinstall apache asp again.


 -Original Message-
 From: Steve Brown [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, January 27, 2004 7:15 AM
 To: Candland, Spencer
 Subject: New Perl 5.8.0


 I have been hit hard by the new MyDoom worm/virus and I may not have
 received your most recent email.

 This morning I was checking on things and discovered that I have a new
 perl
 5.8.0 under /usr/bin.

 I tried to run cpan and it was missing.  I copied the two missing files
 from
 /usr/local/lib/perl5/5.8.3

 I then ran what appears to be a successful Apache ASP using cpan
install
 Bundle::Apache::ASP

 I put the ASP conf stuff in my ptoc.org/register/.htaccess file and ran
my
 test.asp (Hello World) and received the following error in the
error_log.
 mod_perl is still compiled to use perl 5.6.


 [Tue Jan 27 05:33:08 2004] [alert] 

Re: Multiple virtual hosts and same pm-modules names errors

2004-01-25 Thread Helmut Zeilinger
Hi all,

DHZ use lib /path1/lib.pm
DHZ ..
DHZ and in the startup file of vhost 2

DHZ ..
DHZ use lib /path2/lib.pm
DHZ ..
DHZ This works for me.
DHZ Both lib.pm's are separated because new perl interpreters are used
for DHZ vhost1 and vhost2.
Thanks Helmut, I will try this solution (PerlOptions +Parent) later,
after learning this option of mod_perl...
I didn't realize that +Parent worked yet for the newer threaded
apache/mod_perl.
It really works! (Apache 2.48, mp 1.99_10 - ok not the newest, Perl 5.9.0 
with ithreads)

Here is my test configuration:

vhost1.conf:
..
   PerlOptions +Parent
   PerlRequire /www/hz1/conf/startup.pl
   PerlModule  Apache::ASP
..
/www/hz1/conf/startup.pl:
..
use lib '/www/hz1/lib';
..
/www/hz1/lib/TestLib:

package TestLib;
..
sub which_lib {
   return lib1;
}
..
/www/hz1/test.asp:
%
use TestLib;
print which_lib();
%
vhost2.conf:
..
   PerlOptions +Parent
   PerlRequire /www/hz2/conf/startup.pl
   PerlModule  Apache::ASP
..
/www/hz2/conf/startup.pl:
..
use lib '/www/hz2/lib';
..
/www/hz2/lib/TestLib:

package TestLib;
..
sub which_lib {
   return lib2;
}
..
/www/hz2/test.asp:
%
use TestLib;
print which_lib();
%
Results:

http://vhost1/test.asp prints out 'lib1'
and
http://vhost2/test.asp prints out 'lib2'
when you comment out the +Parent Option both are printing out 'lib1' 
(bescause vhost1 comes before vhost2 in my config file),
when you change the order both are printing 'lib2'.

Regards Helmut













-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Newbie alert, why this does not work

2003-10-01 Thread Helmut Zeilinger
Hi,

you can also use various Data and Time related perl modules to get a nicer 
formatting, for
example:

%
use Date::Format;
use Date::Language::German;
my $lang = Date::Language::German-new;
print $lang-time2str(%a %b %e %T %Y\n, time);;
print \n;
%
displays:

Mit Okt  1 21:47:42 2003

(for example)

(In Apache::ASP you can call print instead of $Response-Write())

Other Date / Time modules would be: Date::Calc, Date::Manip

Helmut



--On Wednesday, October 01, 2003 17:04:07 + brentatkerson 
[EMAIL PROTECTED] wrote:

Okay, I seem to have missed the boat, I still cannot figure this
out, think I still have syntax wrong.  I have been to the link you
provided and still cannot get rid of that long number.  Could you
provide another hint to at least get me over the edge?
--- In [EMAIL PROTECTED], Fagyal, Csongor [EMAIL PROTECTED]
wrote:
brentatkerson wrote:

 Okay, this is the result  Hello World164691910332731 .

Oh... well :-)
  Making
 progress, but how/where would a newbie go to find the localtime
time
 thing?  I think that is what I need most is a comprehensive list
of
 objects and events so I know what I have to choose from.


Apache::ASP uses the built-in perl functions, plus extends them
with
some objects/events/etc. The later group is discussed at the
www.apache-asp.org page, while docs on the former you should find
at
www.perldoc.com. I'd recommend reading
http://www.perldoc.com/perl5.8.0/pod/perlfunc.html
Here you will also find localtime and time (and will probably
understand
why you got that big number :-)).

Regards,
- Cs.
---
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [Apache::ASP] Digest Number 336

2003-07-07 Thread Dr. Helmut Zeilinger
Hi bhargavi,

i think the order of those directives does not matter,
of course inside the same VirtualHost container or in
the same context respectively.
But anyway you should have a look into

http://httpd.apache.org/docs-2.0/sections.html

where Apache's processing of Files-, Directory- and Location-Directives
is explained in detail.
Helmut

--On Sunday, July 06, 2003 23:23:43 -0700 Bhargavi guttal 
[EMAIL PROTECTED] wrote:

Thanks Helmut,

Previously i had tried with
Files ^/~asp
..
/Files
It didn't work..

So i tried to place these in some other location in
httpd.conf file  now it has started working...
So i want to clarify something.. does the location of
placing these directives matter in httpd.conf file ?
I thank u once again for ur help...

with lots of wishes
bhargavi








--- [EMAIL PROTECTED] wrote:
 Yahoo! Groups Sponsor
-~--
Save up to 80% on top-quality inkjet cartridges and
get your order fast!
FREE shipping on orders $50 or more to the US 
Canada. Shop at Myinks.com!
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/v2G7ND/KfUGAA/ySSFAA/ndFolB/TM

-~-
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]



There is 1 message in this issue.

Topics in this digest:

  1. Re: To make asp files running... What
should be done ?
   From: Dr. Helmut Zeilinger
[EMAIL PROTECTED]





Message: 1
   Date: Thu, 03 Jul 2003 13:18:49 +0200
   From: Dr. Helmut Zeilinger
[EMAIL PROTECTED]
Subject: Re: To make asp files running... What
should be done ?
Hi bhargavi,

just an idea - does

Files ~ .*\.asp

or

FilesMatch .*\.asp

work?

Helmut

--On Wednesday, July 02, 2003 06:50:53 +
guttalbhag
[EMAIL PROTECTED] wrote:
 Hi All,

  Iam trying to run asp scripts in Linux platform..

  Iam using Apache server with Apache-Asp engine to
run asp scripts..

  I changed the httpd.conf file  included these
directives...

  Directory
/home/intranet/www/html/timesheet/timesheet
 Options FollowSymLinks
AllowOverride All
/Directory




   Files ~ ^\.asp
SetHandler  perl-script
PerlHandler Apache::ASP
PerlSetVar  Global
/home/intranet/www/html/timesheet/timesheet/.
PerlSetVar  StateDir /tmp/asp
   /Files

  Now i restarted the server  tried to run asp
scripts again...

  But the browser is returning the code instead of
executing it...

  Plz give me some solutions so as to make asp
files running...

  regards
 bhargavi



-
 To unsubscribe, e-mail:
[EMAIL PROTECTED]
 For additional commands, e-mail:
[EMAIL PROTECTED]







-
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]








Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/



__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]