adam.nz aboutpostsprojectscontact
Frontpage Server Extensions

Frontpage Server Extensions by Adam Shand

The other day, I had a customer ask me to install version 2 of the Frontpage server extensions. I had previously been running version 1.1 of the extensions on our rather under powered SunSPARC, so I figured it would make much more sense to install version 2 of the server extensions on our Debian Linux box.

I quickly found that this was easier said than done. Ready-to-Run Software, who maintain the UNIX port of the Frontpage server extensions for Microsoft, only support Red Hat Linux, and an old version at that. Figuring that it should still be relatively straight forward, I proceeded to gather the bits and pieces that were needed.

To get the Frontpage server extensions working, these are the steps you should take.

[Note: I am assuming that you have a working Apache web server, all Linux kids should have this, which ideally supports virtual hosts. If you don't have this, I suggest you do some reading elsewhere first.]

  1. As usual, it's also a good idea to browse through all the documentation, so you have an idea what it's going to do and how it all works.
  2. Download all the bits and pieces you need, and save them to /usr/local/ on your web server. Make sure that you read the license agreements for the Extensions and the WPP Kit before you download them.
  3. Install the Frontpage extensions:
    1. cd /usr/local
    2. tar xzvf vt20.linux.tar.Z
    3. cd frontpage/version2.0
    4. mkdir extensions
    5. mv _vti_bin extensions
    6. tar xvzf /usr/local/wpp.linux.tar.Z
    7. mv executables _vti_bin
    8. mv fpsrvadm.suid.exe bin
  4. Install the old library files for use by the Frontpage extensions and Apache (note, skip this step if you are using SunOS):
    1. mkdir /usr/local/frontpage/libs/
    2. cd /usr/local/frontpage/libs/
    3. tar xzvf /usr/local/linuxlibs.tar.gz
    4. Add this line to your httpd.conf file (you can put it in the VirtualHost directive if you want so that all your websites don't get munged, only the Frontpage ones.):
      SetEnv LD_LIBRARY_PATH /usr/local/frontpage/libs:/lib:/usr/lib
  5. Edit the /usr/local/frontpage/version2.0/fp_install script to suit your environment. Make sure that you set the $FPDIR and the $HTTPDCONFDIR to where your files are kept, and that it's pointing to Perl in the correct spot.
  6. Install the patched version of Apache so that you don't have to reboot your web server every time a Frontpage customer installs a new web. This either involves hand patching and compiling from the Apache source (this apparently works with both the 1.1 and 1.2beta series of Apache servers) or installing the pre-patched, pre-compiled binary that comes with the WPP Kit (it supplies version 1.1.3 of Apache). Either of these can be found in /usr/local/frontpage/version2.0/apache. You need to replace your existing Apache daemon with the new patched one.

    There are some minor problems getting the pre-compiled binary to work with Debian Linux. The problems are due to the fact that Debian Apache has been compiled to assume that the configuration files are kept in /etc/apache while the Frontpage binary for Apache assumes that they are kept in /usr/local/etc/httpd/conf/.

    To kludge your way around this, you need to do three things.

    1. ln -s /etc/apache /etc/apache/logs
    2. ln -s /etc/apache /etc/apache/conf
    3. Change your /etc/init.d/apache script so that Apache is started with the -d /etc/apache parameter. If you are unfamiliar with how that start-stop daemon works, the line should now look like this:
      if start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- -d /etc/apache

      Note, the full release of Apache 1.2 is not supported. If you want to run the Frontpage Extensions with Apache 1.2 you will either have to install it as a manual-restart site (which means that every time a customer creates a new web you have to restart your Apache server), figure out the suEXEC hack or wait until RTR/Microsoft release the next version of the extensions.

  7. Now everything is set up, you are ready to install the extensions into a website. To do this run /usr/local/frontpage/version2.0/fp_install and answer the questions. (Note, you must remember to edit your fp_install script to reflect where your Apache config files are and where your copy of Perl is.)

    One trap that is easy to fall into is that in Apache's httpd.conf file, you must use the hostname of the site in the VirtualHost directive, not the IP number. Apache doesn't mind either way, but Frontpage does.

  8. Now remember to restart Apache, and you're done! You will need to restart Apache every time you add the Frontpage Extensions to a new virtual host.
  9. What can you do if it doesn't work? Well, you can email me if you want, I'll help if I can and have the time. Otherwise, I suggest you check out the discussion forum at RTR or Rick Franchuk's wonderful site.

Share your thoughts?

0 comments

Copyheart 1994–2024 Adam Shand. Sharing is an act of love.