The specifics of these instructions assume that you have Apache setup and layed out as per these instructions.
su root
/usr/local/download
Create that directory now if it doesn't already exist:
mkdir /usr/local/download
fp40.linux.tar.gz
The scary thing is that the combined download for MySQL, Apache and PHP is less than the size of this Frontpage Extension download. Save this as:
/usr/local/download/fp40.linux.tar.gz
/usr/local/download/fp_install.sh
cd /usr/local/download
ftp ftp.vr.net
cd pub/apache/mod_frontpage
bin
get mod_frontpage-VR4.tar.gz
bye
#ResourceConfig conf/srm.conf
#AccessConfig conf/access.conf
to look like this:
ResourceConfig /www/conf/srm.conf
AccessConfig /www/conf/access.conf
Make sure to put the full path!
cd /usr/local/download
chmod +x fp_install.sh
./fp_install.sh
I had a problem doing this once where the fp_install.sh had been saved with MS-DOS style end of lines. I kept getting an error saying "File not Found" I think because the /bin/sh line at the start of this script looked like /bin/sh^M. To correct this problem you may need to remove the DOS end of line characters from the file. I did this in VIM with the following command:
:%s/^M//g
You can make the ^M appear by pressing ctrl-V and then ctrl-M.
cd /www
tar czf www.tgz conf servers
This creates an archive called www.tgz which contains all of your web pages and configuration files for Apache and PHP.
/usr/local/etc/frontpage
so it sits nicely with our httpd and php installations. The script will automatically create a link to this location from /usr/local/frontpage.
/bin/zcat
/www/conf/httpd.conf
adduser mysite
passwd mysite mypass
This creates a new user called:
mysite
with the password:
mypass
/usr/sbin/groupadd web
Now we need to make sure that all the users are part of this group and that it is their default group. This helps since whenever they create a new file it will be owned by the group so others can edit it. Do this for each user:
/usr/sbin/usermod -g web -G web mysite
mysite
web
fpadmin
1. LATIN1 (ISO 8859-1)
tar xzf mod_frontpage-VR4.tar.gz -C ../etc/httpd
cd /usr/local/etc/httpd
patch -p0 < src/modules/frontpage/apache_1.3.9-VR.patch
/usr/local/etc/httpd/src/modules/frontpage/fpexec.h
need to be configured for our installation. Our cgi log file needs to be specified by changing line 98 from:
#define LOGEXEC "/usr/local/apache/logs/cgi.log"
to:
#define LOGEXEC "/usr/local/etc/httpd/logs/cgi.log"
We also need to tell Apache where it can find the FrontPage server executables. To do this, change line 114 from:
#define FPDIR "/usr/local/frontpage/currentversion/exes"
to:
#define FPDIR "/usr/local/etc/frontpage/version4.0/exes"
cd /usr/local/etc/httpd
./config.status --activate-module=src/modules/frontpage/mod_frontpage.o
target file clean has both : and :: entries
You can try running make to see if you get the error, it does no harm. If you get the error then we can fix it by editing the mod_frontpage Makefile located at:
/usr/local/etc/httpd/src/modules/frontpage/Makefile
You need to comment out these two lines (at about line 97):
clean::
rm -f fpexec.o fpexec
to be:
#clean::
# rm -f fpexec.o fpexec
make
bin/apachectl stop
make install
bin/apachectl start
install -o root -g root -m 4711 src/modules/frontpage/fpexec /usr/local/etc/httpd/bin
NameVirtualHost 192.168.6.1
<VirtualHost 192.168.6.1>
ServerAdmin webmaster@mysite.com
DocumentRoot /www/servers/mysite.com
ServerName mysite.com
ServerAlias www.mysite.com
ErrorLog /www/logs/mysite.com/error-log
CustomLog /www/logs/mysite.com/access-log combined
FrontpageEnable
ScriptAlias /_vti_bin/_vti_adm/ /www/servers/mysite.com/_vti_bin/_vti_adm/
ScriptAlias /_vti_bin/_vti_aut/ /www/servers/mysite.com/_vti_bin/_vti_aut/
ScriptAlias /_vti_bin/ /www/servers/mysite.com/_vti_bin/
</VirtualHost>
<VirtualHost 192.168.6.1>
ServerAdmin webmaster@mysite.org
DocumentRoot /www/servers/mysite.org
ServerName mysite.org
ServerAlias www.mysite.org
ErrorLog /www/logs/mysite.org/error-log
CustomLog /www/logs/mysite.org/access-log combined
FrontpageDisable
</VirtualHost>
/usr/local/etc/httpd/bin/apachectl restart
fpadmin