You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Tom Kane <t....@mindspring.com> on 2011/05/17 16:05:46 UTC

Ubuntu and mod_perl

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

Re: Ubuntu and mod_perl

Posted by Cosimo Streppone <co...@streppone.it>.
On Wed, 18 May 2011 00:05:46 +1000, Tom Kane <t....@mindspring.com> 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