Apache-ASP

 view release on metacpan or  search on metacpan

ASP.pm  view on Meta::CPAN

started with development.

You will know that Apache::ASP is working normally if you 
can run the scripts in ./site/eg/ without any errors.  Common
problems can be found in the FAQ section.

=head2 Build static Apache and mod_perl for Apache 1.3.x

For a quick build of apache, there is a script in the distribution at
./make_httpd/build_httpds.sh that can compile a statically linked
Apache with mod_ssl and mod_perl.  Just drop the sources into the 
make_httpd directory, configure the environments as appropriate,
and execute the script like this: 

 make_httpd> ./build_httpds.sh

You might also find helpful a couple items:

  Stas's mod_perl guide install section
  http://perl.apache.org/guide/install.html

ASP.pm  view on Meta::CPAN

=head2 Win32 / Windows Install

If you are on a Win32 platform, like WinNT or Windows 2000, 
you can download the win32 binaries linked to from:

  http://perl.apache.org/download/binaries.html#Win32

and install the latest perl-win32-bin-*.exe file.

Randy Kobes has graciously provided these, which include
compiled versions perl, mod_perl, apache, mod_ssl,
as well as all the modules required by Apache::ASP
and Apache::ASP itself.

After installing this distribution, in Apache2\conf\perl.conf
(pulled in via Apache2\conf\httpd.conf) there's directives that
have Apache::ASP handle files placed under the Apache2\asp\
directory. There should be a sample Apache::ASP script there,
printenv.html, accessed as http://127.0.0.1/asp/printenv.html
which, if working, will print out your environment variables.

ASP.pm  view on Meta::CPAN


Make sure to compile apache with expat disabled.  The
./make_httpd/build_httpds.sh in the distribution will do 
this for you, with the --disable-rule=EXPAT in particular:

 cd ../$APACHE
 echo "Building apache =============================="
 ./configure \
    --prefix=/usr/local/apache \
    --activate-module=src/modules/perl/libperl.a \
    --enable-module=ssl \
    --enable-module=proxy \
    --enable-module=so \
    --disable-rule=EXPAT

                   ^^^^^

keywords: segmentation fault, segfault seg fault

=item Why do variables retain their values between requests?

ASP.pm  view on Meta::CPAN


 +fixed where POST data was read from under MOD_PERL,
  harmless bug this was that just generated the wrong
  system debugging message.

=item $VERSION = 2.19; $DATE="7/10/2001";

 +update docs in various parts

 +added ./make_httpd/build_httpds.sh scripts for quick builds
  of apache + mod_perl + mod_ssl

 ++plain CGI mode available for ASP execution.  
  cgi/asp script can now be used to execute ASP 
  scripts in CGI mode.  See CGI perldoc section for more info.
  The examples in ./site/eg have been set up to run
  in cgi mode if desired.  Configuration in CGI section
  only tested for Apache on Linux.

 -Fixed some faulty or out of date docs in XML/XSLT section.

ASP.pm  view on Meta::CPAN



=item $VERSION = 0.07; $DATE="01/20/1999";

 -removed SIG{__WARN__} handler, it was a bad idea.

 -fixes file locking on QNX, work around poor flock porting

 +removed message about Win32::OLE on UNIX platforms from Makefile.PL

 -Better lock garbage collection.  Works with StatINC seamlessly.

 -Multiple select forms now work in array context with $Response->Form()
	@values = $Response->Form('multi');

 -Better CGI.pm compatibility with $r->header_out('Content-type'),
  improved garbage collection under modperl, esp. w/ file uploads


=item $VERSION = 0.06; $DATE="12/21/1998";

README  view on Meta::CPAN

    FollowSymLinks, and tells Apache to look for .htaccess which is bad for
    performance but it should be handy for getting started with development.

    You will know that Apache::ASP is working normally if you can run the
    scripts in ./site/eg/ without any errors. Common problems can be found in
    the FAQ section.

  Build static Apache and mod_perl for Apache 1.3.x
    For a quick build of apache, there is a script in the distribution at
    ./make_httpd/build_httpds.sh that can compile a statically linked Apache
    with mod_ssl and mod_perl. Just drop the sources into the make_httpd
    directory, configure the environments as appropriate, and execute the script
    like this:

     make_httpd> ./build_httpds.sh

    You might also find helpful a couple items:

      Stas's mod_perl guide install section
      http://perl.apache.org/guide/install.html

README  view on Meta::CPAN


  Win32 / Windows Install
    If you are on a Win32 platform, like WinNT or Windows 2000, you can download
    the win32 binaries linked to from:

      http://perl.apache.org/download/binaries.html#Win32

    and install the latest perl-win32-bin-*.exe file.

    Randy Kobes has graciously provided these, which include compiled versions
    perl, mod_perl, apache, mod_ssl, as well as all the modules required by
    Apache::ASP and Apache::ASP itself.

    After installing this distribution, in Apache2\conf\perl.conf (pulled in via
    Apache2\conf\httpd.conf) there's directives that have Apache::ASP handle
    files placed under the Apache2\asp\ directory. There should be a sample
    Apache::ASP script there, printenv.html, accessed as
    http://127.0.0.1/asp/printenv.html which, if working, will print out your
    environment variables.

  WinME / 98 / 95 flock() workaround

README  view on Meta::CPAN

    Apache Expat vs. XML perl parsing causing segfaults, what do I do?
        Make sure to compile apache with expat disabled. The
        ./make_httpd/build_httpds.sh in the distribution will do this for you,
        with the --disable-rule=EXPAT in particular:

         cd ../$APACHE
         echo "Building apache =============================="
         ./configure \
            --prefix=/usr/local/apache \
            --activate-module=src/modules/perl/libperl.a \
            --enable-module=ssl \
            --enable-module=proxy \
            --enable-module=so \
            --disable-rule=EXPAT

                           ^^^^^

        keywords: segmentation fault, segfault seg fault

    Why do variables retain their values between requests?
        Unless scoped by my() or local(), perl variables in mod_perl are treated

README  view on Meta::CPAN

          runtime validation purposes it should be OK.

         +fixed where POST data was read from under MOD_PERL,
          harmless bug this was that just generated the wrong
          system debugging message.

    $VERSION = 2.19; $DATE="7/10/2001";
         +update docs in various parts

         +added ./make_httpd/build_httpds.sh scripts for quick builds
          of apache + mod_perl + mod_ssl

         ++plain CGI mode available for ASP execution.  
          cgi/asp script can now be used to execute ASP 
          scripts in CGI mode.  See CGI perldoc section for more info.
          The examples in ./site/eg have been set up to run
          in cgi mode if desired.  Configuration in CGI section
          only tested for Apache on Linux.

         -Fixed some faulty or out of date docs in XML/XSLT section.

README  view on Meta::CPAN


         -Fixed up some config doc errors.

    $VERSION = 0.07; $DATE="01/20/1999";
         -removed SIG{__WARN__} handler, it was a bad idea.

         -fixes file locking on QNX, work around poor flock porting

         +removed message about Win32::OLE on UNIX platforms from Makefile.PL

         -Better lock garbage collection.  Works with StatINC seamlessly.

         -Multiple select forms now work in array context with $Response->Form()
                @values = $Response->Form('multi');

         -Better CGI.pm compatibility with $r->header_out('Content-type'),
          improved garbage collection under modperl, esp. w/ file uploads

    $VERSION = 0.06; $DATE="12/21/1998";
         +Application_OnStart & Application_OnEnd event handlers support.

lib/Apache/ASP/Server.pm  view on Meta::CPAN

    } else {
	$file_found = $self->{asp}->SearchDirs($file);
    }
    my $file_final = defined($file_found) ? $file_found : $0;
    
    local *0 = \$file_final;
    $self->{asp}{Response}->Include($file, @_);
    $self->{asp}{Response}->End;
}

# shamelessly ripped off from CGI.pm, by Lincoln D. Stein.
sub URLEncode {
    my $toencode = $_[1];
    $toencode =~ s/([^a-zA-Z0-9_\-.])/uc sprintf("%%%02x",ord($1))/esg;
    $toencode;
}

sub HTMLDecode {
    my($self, $decode) = @_;
    
    $decode=~s/>/>/sg;

make_httpd/build_httpds.sh  view on Meta::CPAN

    fi
  done
  echo "exit build, no directory found for $1* at:" `pwd`
  exit
}

# FIND SOURCE IN LOCAL DIR
echo "======================================================"
getdir apache_
APACHE=$GETDIR
getdir mod_ssl-
MODSSL=$GETDIR
getdir mod_perl-
MODPERL=$GETDIR
echo "======================================================"
echo
sleep 1

# SSL
SSL_BASE=/usr/local/ssl
export SSL_BASE
cd $MODSSL
echo
echo "Configuring mod_ssl with OpenSSL at $SSL_BASE =========================="
echo
sleep 1
./configure \
    --with-apache=../$APACHE

# PERL
cd ../$MODPERL
echo
echo "Building mod_perl ============================"
echo

make_httpd/build_httpds.sh  view on Meta::CPAN


# APACHE
cd ../$APACHE
echo
echo "Building apache =============================="
echo
sleep 1;
./configure \
    --prefix=/usr/local/apache \
    --activate-module=src/modules/perl/libperl.a \
    --enable-module=ssl \
    --enable-module=proxy \
    --enable-module=so \
    --enable-module=rewrite \
    --disable-rule=EXPAT

#    --activate-module=src/modules/php4/libphp4.a \
#make certificate
#make clean
make
make install

site/changes.html  view on Meta::CPAN

  system debugging message.
</pre></font>
	
	<p>
	<a name=%24VERSION%20%3D%2029e6581ab></a>
	<font face=verdana><font class=title size=+0 color=#555555><b>$VERSION = 2.19; $DATE="7/10/2001";</b></font>
<font face="courier new" size=3><pre>
 +update docs in various parts

 +added ./make_httpd/build_httpds.sh scripts for quick builds
  of apache + mod_perl + mod_ssl

 ++plain CGI mode available for ASP execution.  
  cgi/asp script can now be used to execute ASP 
  scripts in CGI mode.  See CGI perldoc section for more info.
  The examples in ./site/eg have been set up to run
  in cgi mode if desired.  Configuration in CGI section
  only tested for Apache on Linux.

 -Fixed some faulty or out of date docs in XML/XSLT section.

site/changes.html  view on Meta::CPAN

	<p>
	<a name=%24VERSION%20%3D%2003960e08a></a>
	<font face=verdana><font class=title size=+0 color=#555555><b>$VERSION = 0.07; $DATE="01/20/1999";</b></font>
<font face="courier new" size=3><pre>
 -removed SIG{__WARN__} handler, it was a bad idea.

 -fixes file locking on QNX, work around poor flock porting

 +removed message about Win32::OLE on UNIX platforms from Makefile.PL

 -Better lock garbage collection.  Works with StatINC seamlessly.

 -Multiple select forms now work in array context with $Response-&gt;Form()
	@values = $Response-&gt;Form(&#39;multi&#39;);

 -Better CGI.pm compatibility with $r-&gt;header_out(&#39;Content-type&#39;),
  improved garbage collection under modperl, esp. w/ file uploads
</pre></font>
	
	<p>
	<a name=%24VERSION%20%3D%200394bbc7f></a>

site/eg/cgi.htm  view on Meta::CPAN

This script is a demonstration of using the CGI.pm library
in an ASP script.  Please remember that using CGI.pm will 
probably NOT be portable with PScript and PerlScript.
<p>
As of version 0.09, you may use CGI for reading form input
without any change to regular use of CGI.  Before, you couldn't
do a <pre> use CGI; </pre> by itself, as it would try to read
form input that had already been loaded into $Request->Form().
Form input is now cached, and may be loaded into CGI as well.
In short, use of CGI.pm is now transparent in Apache::ASP,
as both output and input have been merged seemlessly.
<p>    
<a href="source.asp?file=<%=$Request->ServerVariables("SCRIPT_NAME")%>">
view this file's source

<%
	print end_html;
%>

site/faq.html  view on Meta::CPAN

<font face="courier new" size=3><pre>
</pre></font>Make sure to compile apache with expat disabled.  The
./make_httpd/build_httpds.sh in the distribution will do 
this for you, with the --disable-rule=EXPAT in particular:
<font face="courier new" size=3><pre>
 cd ../$APACHE
 echo &quot;Building apache ==============================&quot;
 ./configure \
    --prefix=/usr/local/apache \
    --activate-module=src/modules/perl/libperl.a \
    --enable-module=ssl \
    --enable-module=proxy \
    --enable-module=so \
    --disable-rule=EXPAT

                   ^^^^^
</pre></font>keywords: segmentation fault, segfault seg fault</font>
	
	<p>
	<a name=Why%20do%20varia68e97184></a>
	<font face=verdana><font class=title size=-1 color=#555555><b>Why do variables retain their values between requests?</b></font>

site/install.html  view on Meta::CPAN

</pre></font>You will know that Apache::ASP is working normally if you 
can run the scripts in ./site/eg/ without any errors.  Common
problems can be found in the <a href=faq.html><font size=-1 face=verdana><b>FAQ</b></font></a> section.</font>
	
	<p>
	<a name=Build%20static4ba3b0e9></a>
	<font face=verdana><font class=title size=+0 color=#555555><b>Build static Apache and mod_perl for Apache 1.3.x</b></font>
<font face="courier new" size=3><pre>
</pre></font>For a quick build of apache, there is a script in the distribution at
./make_httpd/build_httpds.sh that can compile a statically linked
Apache with mod_ssl and <a href=http://perl.apache.org><font size=-1 face=verdana><b>mod_perl</b></font></a>.  Just drop the sources into the 
make_httpd directory, configure the environments as appropriate,
and execute the script like this: 
<font face="courier new" size=3><pre>
 make_httpd&gt; ./build_httpds.sh
</pre></font>You might also find helpful a couple items:
<font face="courier new" size=3><pre>
  <a href="http://perl.apache.org/guide/install.html">Stas&#39;s mod_perl guide install section</a>

  <a href="http://www.apachetoolbox.com/">Apache Toolbox</a>
</pre></font>People have been using Apache Toolbox to automate their 

site/install.html  view on Meta::CPAN

	<a name=Win32%20%2F%20Wind0f21256e></a>
	<font face=verdana><font class=title size=+0 color=#555555><b>Win32 / Windows Install</b></font>
<font face="courier new" size=3><pre>
</pre></font>If you are on a Win32 platform, like WinNT or Windows 2000, 
you can download the win32 binaries linked to from:
<font face="courier new" size=3><pre>
  <a href=http://perl.apache.org/download/binaries.html#Win32>http://perl.apache.org/download/binaries.html#Win32</a>
</pre></font>and install the latest perl-win32-bin-*.exe file.
<font face="courier new" size=3><pre>
</pre></font>Randy Kobes has graciously provided these, which include
compiled versions perl, <a href=http://perl.apache.org><font size=-1 face=verdana><b>mod_perl</b></font></a>, apache, mod_ssl,
as well as all the modules required by Apache::ASP
and Apache::ASP itself.
<font face="courier new" size=3><pre>
</pre></font>After installing this distribution, in Apache2\conf\perl.conf
(pulled in via Apache2\conf\httpd.conf) there&#39;s directives that
have Apache::ASP handle files placed under the Apache2\asp\
directory. There should be a sample Apache::ASP script there,
printenv.html, accessed as <a href=http://127.0.0.1/asp/printenv.html>http://127.0.0.1/asp/printenv.html</a>
which, if working, will print out your environment variables.</font>
	



( run in 0.797 second using v1.01-cache-2.11-cpan-acf6aa7dc9e )