Installing improved mod_frontpage and FrontPage extensions.

Currently, the method for installing improved mod_frontpage involves patching the source tree for Apache and enabling some configure flags while running the configure script for Apache. Basically it's done in these steps:

  1. Untar the Improved mod_frontpage source into /usr/local/src
  2. Untar the Apache source into /usr/local/src
  3. cd into the Apache source tree and run: patch -p1 < ../improved_mod_frontpage-tree/patchfilename
  4. Run configure on the Apache source tree, setting the following options: --enable-module=frontpage This will enable the module to be built.

    You will probably need to change these options below to a setting that reflects how your server is setup. The default values are in brackets, I've put the values that I usually use on the right in parenthesis:

    	
    --fpexec-caller=[www]				   	(nobody)
    --fpexec-docroot=[/usr/local/apache/htdocs]        	(/home)
    --fpexec-logfile=[/usr/local/apache/logs/cgi.log]  	(/var/log/httpd/fpexec.log)
    --fpexec-userdir=[public_html]			 	(www)
    --fpexec-uidmin=[100]					(99)
    --fpexec-gidmin=[100]				   	(99)
    --fpexec-safepath=[/usr/local/bin:/usr/bin:/bin]   	(same)
    --fpexec-fpdir=[/usr/local/frontpage/version4.0/exes]	(same)
    --fpexec-fpuser=[bin]					(same)
    --fpexec-fpgroup=[bin]				     	(same)
    --fpexec-htaccess=[.htaccess]			   	(same)
    --fpexec-umask=[022]				   	(same)
    
    * The settings that are shown in parenthesis are what RedHat Linux users should probably use.

  5. Run 'make' [1]
  6. Run 'make install' [2]
  7. Add these lines to your httpd.conf file if necessary:
    LoadModule frontpage_module  <modulepath>/mod_frontpage.so
    AddModule mod_frontpage.c
    
Next

[1] - I haven't investigated why, but whenever I run make, it never compiles the fpexec executable. So you may need to go into the src/modules/frontpage directory and check to make sure that it's compiled. If it hasn't, then you should just be able to run make fpexec. The make install command will install it properly.

[2] - If you already have Apache installed and are just making the mod_frontpage and fpexec binaries, then you can just cd into src/modules/frontpage and copy the newly compiled binaries into place. The fpexec binary should go in the /usr/sbin directory. You will also need to set the suid bit on the fpexec program so that it runs as the root user. The mod_frontpage.so module should be put where ever your current Apache modules are kept. This is usually in a directory called lib under Apache's installed server root. Under Red Hat Linux, it's in /usr/lib/apache. Next


Apache and Frontpage Copyright 2001 Suso Banderas (suso@suso.org)