Re: Ubuntu and mod_perl

Re: Ubuntu and mod_perl

am 17.05.2011 16:16:50 von Cosimo Streppone

On Wed, 18 May 2011 00:05:46 +1000, Tom Kane wrote:

> I now want to add mod_perl (in the .so form) to apache2.
> [...]
> I am still new in the Unix/Linux environment -- at least from the
> standpoint of installing systems software -- so I am sure I am missing
> something.

Hi Tom,

if you don't need to compile the software yourself,
and you're just starting, I would suggest an easy path:

# Install the relevant packages
sudo apt-get install apache2 apache2-mpm-prefork
sudo apt-get install libapache2-mod-perl2 libapache2-mod-apreq2

# Enable the apreq and mod perl modules
a2enmod apreq
a2enmod perl

# Restart apache
/etc/init.d/apache2 restart

--
Cosimo

Ubuntu and mod_perl

am 18.05.2011 00:05:54 von Tom Kane

I have just created a new system with Ubuntu LTS 10.04. Everything there is working smoothly. I have apache2 loading and running automatically when I boot.

I now want to add mod_perl (in the .so form) to apache2. I have faithfully followed the mod_perl 2 installation directions in the documentation from perl.apache.org. The builds were with httpd-2.2.18.tar.gz and mod_perl-2.0-current.tar.gz. All tests ran cleanly. 'make install' worked for both mod_perl and apache2.

[Aside: I am aware that some confusion exists in nomenclature due to Debian/Ubuntu using different names for things, e.g., they refer to httpd.conf as apache2.conf. Note that the mod_perl build did create a file named 'httpd.conf' in one of my subdirectories.]

The build of the apache2 and mod_perl modules went into the directory:

/home/tomkane/httpd

in their respective subdirectories as the build directions suggested. However, when I restart my server I still see apache2 version 2.2.14 running (it came with the Ubuntu installation).

I am still new in the Unix/Linux environment -- at least from the standpoint of installing systems software -- so I am sure I am missing something. I took the installation directions literally as I didn't really know how to read between the lines as more experienced folks would have done.

I think I need to copy the apache2 executable for version 2.2.18 (at the very least) to the directory:

/usr/lib/apache2/mpm-prefork/apache2

but I am not sure. I may need to copy a lot more files as well but don't feel secure enough to try that.

Can anyone point me toward the missing piece(s)? (Note: The Ubuntu server forum seems devoid of mod_perl knowledge.)

Thanks.

Tom Kane