Apache ASP help not helpfull :(

2001-11-28 Thread alan matthews

After twenty years in hardware and real-time
programming,
I'm back at university getting into business
computing, so I'm very new to this server stuff and
I'm trying to learn.

I wanted to run a local server but Microsoft PWS
doesn't run on Win ME. Searching around I came across
this http://www.ricocheting.com/sever/index.html I
found it very helpful, albeit a bit out of date.
  
So, I've installed apache_1.3.22-win32-x86.msi onto
this Win ME machine as a localhost and it works fine.

I've installed ActivePerl, and it works fine too.

I want to run ASP, so I download Apache-ASP-2.29

Then as per the instructions I did
___
 shell prompt perl -MCPAN -e shell
 ...
 cpan install Bundle::Apache::ASP
___

A huge amount of text flowed down the screen which
ended with
___
Removing previously used
\.cpan\build\Apache-ASP-2.29\.
Couldn't find \.cpan\build\Apache-ASP-2.29\. at
C:/Perl/lib/CPAN.pm line 1972
___

I tried to run some of Perl's sample asp pages but
nothing worked. Clealy the phrase:-

'The easiest way to install Apache::ASP for the first
time from perl is to fire up the CPAN shell like:'

isn't quite as easy as it claims.

The rest of the information at
http://www.nodeworks.com/asp/install.html
is unitelligable to anyone who hasn't worked with
servers, and all the FAQ's seem to assume your an
expert, so I'm no better off.

The main confusion I'm getting is figuring which is
Perl stuff from Apache. Also links like:-
___
There are several other Perl modules that you might
wish to have installed, to take full advantage of
mod_perl functionality. Provided you have Andreas
König's CPAN.pm module, simply run:
___

is just a long list of meaningles files. 

So, is there any chance of an Idiot's guide to getting
this ASP to work?

Python

__
Do You Yahoo!?
Everything you'll ever need on one web page from News and Sport to Email and Music 
Charts
http://uk.my.yahoo.com



Apache ASP help not helpful. I'm not alone

2001-11-28 Thread alan matthews

I've just seen a pile of posts on a Yahoo board full
of people with ASP problems.

__
Do You Yahoo!?
Everything you'll ever need on one web page from News and Sport to Email and Music 
Charts
http://uk.my.yahoo.com



Re: Apache ASP help not helpful. I'm not alone

2001-11-28 Thread Randy Kobes

On Wed, 28 Nov 2001, alan matthews wrote:

 I've just seen a pile of posts on a Yahoo board full
 of people with ASP problems.

For Win32 ActivePerl users, if the CPAN.pm method of installing
Apache::ASP becomes confused, you may want to try ppm:

C:\ ppm
ppm set repository some_name
http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?urn:/PPMServer
ppm install Apache-ASP
ppm set save
ppm quit

where the 'set repository ...' command has been broken over
two lines for readability. This should install Apache::ASP
plus all its dependencies that you might not have - if it
doesn't, please let me know what it missed. After that, the
Apache::ASP docs and web site are very good at describing
the configuration and use.

See an earlier post today by Joshua Chamas about a way to disable
flock() on Win98 within Apache::ASP, which will be needed for
MLDBM::Sync.

best regards,
randy kobes




Re: Apache ASP help not helpfull :(

2001-11-28 Thread Joshua Chamas

alan matthews wrote:
 
 I wanted to run a local server but Microsoft PWS
 doesn't run on Win ME. Searching around I came across
 this http://www.ricocheting.com/sever/index.html I
 found it very helpful, albeit a bit out of date.
 
 So, I've installed apache_1.3.22-win32-x86.msi onto
 this Win ME machine as a localhost and it works fine.
 
 I've installed ActivePerl, and it works fine too.
 
 I want to run ASP, so I download Apache-ASP-2.29
 

[[ for Apache::ASP support, get on its mail list by emailing
   [EMAIL PROTECTED] ]]

For a quick start, I'd recommend installing the prebuilt 
win32 mod_perl / apache from:
  
  http://perl.apache.org/distributions.html

This page ends up referring you to:

  ftp://theoryx5.uwinnipeg.ca/pub/other/perl-win32-bin-0.7.exe

It comes fortunately with a working Apache::ASP.  You will 
still need to update the ./perl/lib/Config.pm to point to your
compiler installation if you want to build your own perl 
modules later.

This hint is provided here:
  http://www.apache-asp.org/install.html#Win32%20Instal93dbe80f

As a user going through these woes, it would be helpful if you could
suggest how I could make that part of the install help stand out more,
and content that would be more useful  accurate to you?

What is not in the help is a bug/workaround for WinME / Win9x users
that occurred recently in the 2.25 release of Apache::ASP.  The bug
is that MLDBM::Sync uses flock() which is not implemented on WinME.

The fix is to add this to you httpd.conf, preferrably

Perl
*CORE::GLOBAL::flock = sub { 1 };
/Perl

This fix is not necessary if you do not use $Session
or $Application though, which you can turn off with
the httpd.conf config:

  PerlSetVar NoState 1

 Then as per the instructions I did
 ___
  shell prompt perl -MCPAN -e shell
  ...
  cpan install Bundle::Apache::ASP
 ___
 
 A huge amount of text flowed down the screen which
 ended with
 ___
 Removing previously used
 \.cpan\build\Apache-ASP-2.29\.
 Couldn't find \.cpan\build\Apache-ASP-2.29\. at
 C:/Perl/lib/CPAN.pm line 1972
 ___
 

I will check out the bundle files and see how they can be improved
for the next release.

 I tried to run some of Perl's sample asp pages but
 nothing worked. Clealy the phrase:-
 
 'The easiest way to install Apache::ASP for the first
 time from perl is to fire up the CPAN shell like:'
 
 isn't quite as easy as it claims.
 
 The rest of the information at
 http://www.nodeworks.com/asp/install.html
 is unitelligable to anyone who hasn't worked with
 servers, and all the FAQ's seem to assume your an
 expert, so I'm no better off.
 

Apache::ASP isn't geared towards new users.  It makes a lot of
of assumptions like knowledge of perl, apache,  unix ( perl is
unix paradigm programming often, even on win32 platforms ).
I would like it to make it more user friendly, and I understand
the docs  site can help, so please send me your suggestions.

 So, is there any chance of an Idiot's guide to getting
 this ASP to work?

Not yet!  I have long considered writing a book on Apache::ASP,
which would probably have at least a chapter as the Idiot's guide.
I don't think it would be out in time for your needs though :(

-- Josh
_
Joshua Chamas   Chamas Enterprises Inc.
NodeWorks Founder   Huntington Beach, CA  USA 
http://www.nodeworks.com1-714-625-4051



Re: Apache ASP help not helpful. I'm not alone

2001-11-28 Thread Joshua Chamas

alan matthews wrote:
 
 I've just seen a pile of posts on a Yahoo board full
 of people with ASP problems.
 

If these are Apache::ASP users, they need to get on the 
mail list for it at [EMAIL PROTECTED] ...

If they are using IIS / VBScript or PerlScript ASP, 
then they may be in the right place?

--Josh
_
Joshua Chamas   Chamas Enterprises Inc.
NodeWorks Founder   Huntington Beach, CA  USA 
http://www.nodeworks.com1-714-625-4051



Apache::ASP help!

2001-01-24 Thread Philippe Ratté

Hello :)

My Apache::ASP is working; i've copied the ./site/eg/ dir to my htdocs, and
all that works..

In my root dir, ( / ) i've made a simple ASP document. When I run it, it
gives me the following errors:



Errors Output
Undefined subroutine Apache::ASP::date called at (eval 9) line 1. ,
/usr/lib/perl5/site_perl/Apache/ASP.pm line 1471
Debug Output
RUN ASP (v2.07) for /usr/local/apache/htdocs/date.asp
call srand() post fork
GlobalASA package Apache::ASP
global.asa was not cached for _usr_local_apache_htdocs___global_asa
opening lock file /tmp/server/internal.lock
opening lock file /tmp/server/application.lock
session id from cookie: 3ccc7d73e98
refreshing 3ccc7d73e98 with timeout 980387526
opening lock file /tmp/3c/3ccc7d73e98.lock
session not expired - time: 980387226; timeout: 980387286;
tieing session 3ccc7d73e98
updating LastSessionTimeout from 980387317
parsing date.asp
undefing sub Apache::ASP::_usr_local_apache_htdocs_date_aspxDYN code
CODE(0x81e4af4)
compiling into package Apache::ASP subid
Apache::ASP::_usr_local_apache_htdocs_date_aspxDYN
executing _usr_local_apache_htdocs_date_aspxDYN
tieing response package for STDOUT
Undefined subroutine Apache::ASP::date called at (eval 9) line 1. ,
/usr/lib/perl5/site_perl/Apache/ASP.pm line 1471
ASP Done Processing - asp: Apache::ASP=HASH(0x8390318);

ASP to Perl Script

  1: package Apache::ASP; ;; sub
Apache::ASP::_usr_local_apache_htdocs_date_aspxDYN {  ;;  @_ = (); ;; no
strict;;use vars qw($Application $Session $Response $Server $Request);;use
lib qw(/usr/local/apache/htdocs//.);;;$main::Response-WriteRef(\('html
  2: head
  3: titleUntitled Document/title
  4: meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"
  5: /head
  6:
  7: body bgcolor="#FF"
  8: div align="center"VOICI LA DATE D\'AUJOURD\'HUI '.(date()).'/div
  9: /body
 10: /html'));;;no lib qw(/usr/local/apache/htdocs//.); ;; }





An error has occured with the Apache::ASP script just run. If you are the
developer working on this script, and cannot work through this problem,
please try researching the it at the Apache::ASP web site, specifically the
FAQ section. Failing that, check out your support options, and if necessary
include this debug output with any query.



Hope to hear from you,
Thanks.




Re: Apache::ASP help!

2001-01-24 Thread Joshua Chamas

Philippe Ratt wrote:
 
 Hello :)
 
 My Apache::ASP is working; i've copied the ./site/eg/ dir to my htdocs, and
 all that works..
 
 In my root dir, ( / ) i've made a simple ASP document. When I run it, it
 gives me the following errors:
 
 Errors Output
 Undefined subroutine Apache::ASP::date called at (eval 9) line 1. ,
 /usr/lib/perl5/site_perl/Apache/ASP.pm line 1471

Congrats on getting this far! ( not an easy task for some )

date() is probably a VBScript command, but Apache::ASP supports
perl scripting only.  You could likely use HTTP::Date::time2str()
for similar effect, do a "perldoc HTTP::Date" for more info.

Better yet, if you really were expecting VBScript, then you might
want to learn perl, or get a web app environment that supports 
VBScript like Chilisoft's ASP.

--Josh

_
Joshua Chamas   Chamas Enterprises Inc.
NodeWorks  free web link monitoring   Huntington Beach, CA  USA 
http://www.nodeworks.com1-714-625-4051