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.

freebsd + easyapache = no frontpage extensions

Discussion in 'EasyApache' started by tprice42, Oct 31, 2007.

  1. tprice42

    tprice42 Active Member

    Joined:
    Sep 10, 2004
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    After a recent recompile of apache on freebsd 6.2 i found that frontpage extensions didn't work, having spent 30+ hours on the problem i finally resolved the issue:

    It appears that the frontpage module runs some tests on the /usr/local/frontpage/version5.0/apache-fp/_vti_bin/fpexe file and if any of them fail then it doesn't include itself in the apache build. The test it was failing on was to see if it could write protect that file.

    Here's how to fix it.

    -----------------------------------------------------------------

    In the file /var/cpanel/perl/easy/Cpanel/Easy/Apache/Frontpage.pm replace

    return $self->run_system_cmd_returnable( [qw(chattr -i /usr/local/frontpage/version5.0/apache-fp/_vti_bin/fpexe)] );


    With

    return $self->run_system_cmd_returnable( [qw(chflags noschg /usr/local/frontpage/version5.0/apache-fp/_vti_bin/fpexe)] );

    and replace

    return $self->run_system_cmd_returnable( [qw(chattr +i /usr/local/frontpage/version5.0/apache-fp/_vti_bin/fpexe)] );


    With

    return $self->run_system_cmd_returnable( [qw(chflags schg /usr/local/frontpage/version5.0/apache-fp/_vti_bin/fpexe)] );

    Save and exit and write protect the file with "chflags schg /var/cpanel/perl/easy/Cpanel/Easy/Apache/Frontpage.pm"

    Re-run /scripts/easyapache

    ----------------------------------------------------------------------

    There doesn't appear to be a platform check in that script which would logically run the chflags command (freebsd) instead of the chattr command (linux).

    Hope this helps someone, and Cpanel staff... You owe me a beer.
     
Loading...

Share This Page