While virtually nobody supports frontpage anymore, this still comes in hand on older servers where customers refuse to believe that frontpage is buggy, insecure software.
On a cPanel server, to reinstall frontpage extensions from the command line, do the following.
*** Note this is destructive
- SSH to the server the customer is on.
cd ~theirusername/public_html
find ./ -iname '_*' -print0 | xargs -0 rm -Rf
find ./ -iname '.htaccess' | xargs rm -f
find ./ -iname '*.lck' | xargs rm -f
rm /usr/local/frontpage/$domainname.com*
rm /usr/local/frontpage/www.$domainname.com*
These commands delete all folders starting with an underscore (_), all .htaccess files, and all files with an extension of .lck. It then deletes the server configuration files for frontpage itself for the domain. Once these have been deleted, frontpage has been fully removed from the server.
To re-install frontpage, run this command.
/scripts/setupfp5 $domainname.com
Depending on the size of this site, this can take a few seconds, or several hours. Once completed, the customer will need to re-publish the site and/or recalculate hyperlinks.