Wednesday, October 31, 2007

frontpage extensions didn't work on freebsd 6.2

freebsd + easyapache = no frontpage extensions:

Issue:After recompiling Apache on freebsd 6.2, the frontpage extensions didn't work

ReSolution:
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 is the possible Fix :

# vi /var/cpanel/perl/easy/Cpanel/Easy/Apache/Frontpage.pm

and replace the following line

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

with this one

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

And replace this

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

with this one

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

save and exit the file.

Also write protect the file with

# chflags schg /var/cpanel/perl/easy/Cpanel/Easy/Apache/Frontpage.pm

# /scripts/easyapache --force


Note: chflags command runs on freebsd environment instead of the chattr command in Linux environment.