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.
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.