Difference between revisions of "Installing mod perl"

From EPrints Documentation
Jump to: navigation, search
 
Line 1: Line 1:
 
 
Apache is the most commonly used webserver in the world, and it's free! EPrints requires Apache to be configured with mod_perl, as this allows Apache modules that are entirely written in perl, hence providing much improved efficiency.
 
Apache is the most commonly used webserver in the world, and it's free! EPrints requires Apache to be configured with mod_perl, as this allows Apache modules that are entirely written in perl, hence providing much improved efficiency.
  
Line 7: Line 6:
  
 
===Apache with mod_perl Installation - Step by Step===
 
===Apache with mod_perl Installation - Step by Step===
; Download mod_perl and apache sources : ; Make mod_perl, I use this command (in the modperl src dir): :
+
 
 +
* Download mod_perl and apache sources
 +
 
 +
* Make mod_perl, I use this command (in the modperl src dir):  
 +
 
 
<code>
 
<code>
 
  % perl Makefile.PL APACHE_PREFIX=/usr/local/apache \
 
  % perl Makefile.PL APACHE_PREFIX=/usr/local/apache \
Line 13: Line 16:
 
  EVERYTHING=1
 
  EVERYTHING=1
 
</code>
 
</code>
 +
 
Remeber to change <tt>../apache-1.3.14/src</tt> to wherever your apache source is relative to this directory. The back slashes at the end of the line allow a single command to be split over multiple lines.
 
Remeber to change <tt>../apache-1.3.14/src</tt> to wherever your apache source is relative to this directory. The back slashes at the end of the line allow a single command to be split over multiple lines.
; Make and install apache. From the mod_perl src dir, I use: :  
+
 
 +
* Make and install apache. From the mod_perl src dir, I use:  
 
<code>
 
<code>
 
  % make
 
  % make

Revision as of 12:30, 2 March 2006

Apache is the most commonly used webserver in the world, and it's free! EPrints requires Apache to be configured with mod_perl, as this allows Apache modules that are entirely written in perl, hence providing much improved efficiency.

Get Apache from http://httpd.apache.org/dist/httpd/

EPrints requires that the apache module mod_perl is enabled.

Apache with mod_perl Installation - Step by Step

  • Download mod_perl and apache sources
  • Make mod_perl, I use this command (in the modperl src dir):

% perl Makefile.PL APACHE_PREFIX=/usr/local/apache \
APACHE_SRC=../apache-1.3.14/src DO_HTTPD=1 USE_APACI=1 \
EVERYTHING=1

Remeber to change ../apache-1.3.14/src to wherever your apache source is relative to this directory. The back slashes at the end of the line allow a single command to be split over multiple lines.

  • Make and install apache. From the mod_perl src dir, I use:

% make
% make install

( mod perl should have already run the apache ./configure script for us. )

Compatability notes

EPrints 2.3 Tested with: apache 1.3.14 with mod_perl 1.25