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.

Problem Apache+mod_perl

Discussion in 'EasyApache' started by vadikz, Oct 17, 2005.

  1. vadikz

    vadikz Registered

    Mar 5, 2004
    Likes Received:
    Trophy Points:

    I was trying to update the apache using the perl module support.
    I submitted the support ticket prior to this and received that I can achieve perl module installed by running /scripts/easyapache, choosing option #7 and select perl module support in it.
    I tried as mentioned by the support personnel, but my apache is failed after the recompilation process has finished.

    Here's the output. (where both of the x.x.x.x mentioned there are same ip addresses)
    [warn] VirtualHost x.x.x.x:80 overlaps with VirtualHost x.x.x.x:80, the first has precedence, perhaps you need a NameVirtualHost directive
    /etc/rc.d/init.d/httpd start: httpd started
    Waiting for httpd to restart..............finished.
    root 22453 2.2 0.3 13488 7224 ? S 15:03 0:00 /usr/local/apache/bin/httpd -DSSL
    httpd: [ != HTTP/1..]
    httpd has failed, please contact the sysadmin.

    Now, almost all of the sites on my server are returning "zero sized reply" error upon browsing.
    Some sites are showing text without any graphics and no css sometimes.
    Sometimes, I can be able to get into cpanel of the site but not to the actual site.
    However, strangely some of the sites are still working and most of them are not. (all of them are on shared IP)
    And there is no website configured on the ipaddress where the error stated.
    Very much appreciated for the helps and suggestions.

  2. anup123

    anup123 Well-Known Member

    Mar 29, 2004
    Likes Received:
    Trophy Points:
    This Planet
    Compile mod_perl by hand using apxs

    So recompile your apache without mod_perl support.

    Download mod_perl 1.29
    cd mod_perl 1.29 (or whatever it is)


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

    make install

    If you are planning to give mod_perl support to shared hosting clients, then from security point of view refrain from doing so. If you are planning to just run your own mod_perl stuff, then it's fine and it would be better if you have a proxied backen mod_perl leaving cPanel httpd untouched. proxying might fail due to a bug in mod_gzip in case you are also using mod_gzip with mod_proxy


Share This Page