The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

mod_perl I think and apache1

Discussion in 'EasyApache' started by mtl, Nov 2, 2005.

  1. mtl

    mtl Registered

    Joined:
    May 4, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Anyone know how to get this to work? i'm trying to install request tracker but when i enter

    PerlModule Apache::DBI
    PerlRequire /opt/rt3/bin/webmux.pl
    SetHandler perl-script
    PerlHandler RT::Mason

    Apache will not start and complains that it does not know what perlmodule or perlrequire is.

    Can you guys help please :D

    Thanks,
    Mat
     
    #1 mtl, Nov 2, 2005
    Last edited: Nov 2, 2005
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    IIRC you cannot compile mod_perl into the apache build that cPanel uses - it doesn't like it. The way round it is to proxy another version of apache on the server with it in. Have a search on the forums for mod_perl and you should find the details that have been posted before about it.
     
  3. mtl

    mtl Registered

    Joined:
    May 4, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I did have a look for something like that but could not really find anything that i could understand. i'm really new to this :(
     
  4. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    To really test your mod_perl stuff before moving off to a proxied mod_perl httpd, do the following:

    (do not compile mod_perl while using easyapache ... it never really worked for me)

    (1) Download mod_perl-1.29.tar.gz
    (2) tar -zxvf mod_perl-1.29.tar.gz
    (3) cd mod_perl-1.29

    perl Makefile.PL USE_APXS=1 WITH_APXS=/usr/local/apache/bin/apxs EVERYTHING=1
    make
    make install

    Test your mod_perl stuff.

    If all works well then use proxied mod_perl httpd otherwise a single mod_perl httpd is an overkill, you have a fat httpd serving even non mod_perl stuff. For using proxied mod_perl you would either have to patch mod_gzip or disable it in cPanel httpd as it would not work because of bug in mod_gzip (with mod_proxy).

    Cheers
    Anup
     

Share This Page