Apache-ASP

 view release on metacpan or  search on metacpan

site/install.html  view on Meta::CPAN

	
	<p>
	<a name=Modern%20Linuxee8c6645></a>
	<font face=verdana><font class=title size=+0 color=#555555><b>Modern Linux Distributions</b></font>
<font face="courier new" size=3><pre>
</pre></font>If you have a modern Linux distribution like CentOS or Ubuntu,
you will likely have the easiest path by using the repository tools to
automatically install <a href=http://perl.apache.org><font size=-1 face=verdana><b>mod_perl</b></font></a> and Apache before installing Apache::ASP via CPAN.
<font face="courier new" size=3><pre>
</pre></font>For example for CentOS, this will install mod_perl into your apache httpd, the latter
likely being installed already by default on your server:
<font face="courier new" size=3><pre>
  bash&gt; sudo yum install mod_perl-devel.x86_64
</pre></font>For Ubuntu this would be done like this:
<font face="courier new" size=3><pre>
  bash&gt; sudo apt-get install libapache2-mod-perl2
</pre></font>
	
	<p>
	<a name=Quick%20Start></a>
	<font face=verdana><font class=title size=+0 color=#555555><b>Quick Start</b></font>
<font face="courier new" size=3><pre>
</pre></font>Once you have successfully built the Apache Web Server with <a href=http://perl.apache.org><font size=-1 face=verdana><b>mod_perl</b></font></a>,
copy the ./site/eg/ directory from the Apache::ASP installation 
to your Apache document tree and try it out!  You must put &quot;AllowOverride All&quot;
in your httpd.conf &lt;Directory&gt; config section to let the .htaccess file in the 
./site/eg installation directory do its work.  If you want a starter
config file for Apache::ASP, just look at the .htaccess file in the 
./site/eg/ directory.
<font face="courier new" size=3><pre>
</pre></font>So, you might add this to your Apache httpd.conf file just to get 
the scripts in ./site/eg working, where $DOCUMENT_ROOT represents
the DocumentRoot config for your apache server:
<font face="courier new" size=3><pre>
  &lt;Directory $DOCUMENT_ROOT/asp/eg &gt;
    Options FollowSymLinks
    AllowOverride All
  &lt;/Directory&gt;
</pre></font>To copy the entire site, including the examples, you might
do a raw directory copy as in:
<font face="courier new" size=3><pre>
  shell&gt; cp -rpd ./site $DOCUMENT_ROOT/asp
</pre></font>So you could then reference the Apache::ASP docs at /asp/ at your site,
and the examples at /asp/eg/ .
<font face="courier new" size=3><pre>
</pre></font>This is not a good production configuration, because it is insecure
with the FollowSymLinks, and tells Apache to look for .htaccess 
which is bad for performance but it should be handy for getting 
started with development.
<font face="courier new" size=3><pre>
</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 
complex builds of Apache 1.3.x with great success.</font>
	
	<p>
	<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>
	
	<p>
	<a name=WinME%20%2F%2098%20%2Fce25d199></a>
	<font face=verdana><font class=title size=+0 color=#555555><b>WinME / 98 / 95 flock() workaround</b></font>
<font face="courier new" size=3><pre>
</pre></font>For those on desktop Windows operation systems, Apache::ASP v2.25 and
later needs a special work around for the lack of flock() support
on these systems.  Please add this to your Apache httpd.conf to
fix this problem after <a href=http://perl.apache.org><font size=-1 face=verdana><b>mod_perl</b></font></a> is installed:
<font face="courier new" size=3><pre>
  &lt;Perl&gt;
   *CORE::GLOBAL::flock = sub { 1 };
  &lt;/Perl&gt;
  PerlModule  Apache::ASP
</pre></font>Please be sure to add this configuration before Apache::ASP is loaded
via PerlModule, or a PerlRequire statement.</font>
	

</font>
</td>

<td bgcolor=white valign=top>
&nbsp;
</td>

</tr>
</table>

</td></tr>
</table>
</center>

</body>
</html>



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