On AIX
The following are instructions for building mod_perl as a Dynamic Shared Object (DSO) on AIX and
installing and running mod_perl as a DSO under Apache/IBM HTTP Server on AIX.
These instructions are based on work with IBM HTTP Server,
mod_perl 1.22 and AIX 4.3.2.
IBM HTTP Server Setup
- Complete the normal install steps for the IBM HTTP Server.
- Edit the HTTPServer/bin/apxs file to correct the first line, if necessary. Add the path to your
perl interpreter
after the #! (ie. #!/usr/bin/perl). You can try running "which perl" if you do not know the location
of yours.
- Run your desired set of tests to ensure the IBM HTTP Server runs correctly (i.e. without
mod_perl).
Mod_perl build/setup
- cd /path/to/modperl
- run "perl Makefile.PL USE_APXS=1 WITH_APXS=/usr/HTTPServer/bin/apxs EVERYTHING=1"
- run "make"
- run "make install"
Final configuration of Apache/IBM HTTP Server
- Ensure that /path/to/apache/conf/httpd.conf contains the "LoadModule perl_module
libexec/libperl.so"
and "AddModule mod_perl.c" (if required) statements and any other directives that you want.
For instance:
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Location>
<Location /perl-status>
SetHandler per-script
PerlHandler Apache::Status
order deny,allow
deny from all
allow from X.X.X.X #replace X.X.X.X with a useful IP address.
</Location>
- Start httpd and run your desired tests to verify that modperl is loaded and running. Remember
to specify the port if you installed as non-root.