Version 7 (modified by trac, 13 years ago) (diff)


To get the FME running:



  • create the fms user and password
  • grant access to the FME database for fms
  • import the FMA into the FME database
    up2date mysql-server
    chkconfig mysql-server on
    # set up root pass and .my.cnf
    mysql -u root mysql -e 'CREATE DATABASE FME;'
    mysql -u root mysql -e "GRANT ALL PRIVILEGES ON FME.* TO fms@localhost;"
    mysql -u root mysql -e "GRANT ALL PRIVILEGES ON FME.* TO fms@'%';"
    mysql -u root mysql -e "UPDATE user SET Password = '4968f18e66de36db' WHERE User = 'fms';"
    mysql FME -u root < /usr/local/data/data13/Protege-backups/fma_p2.dump
    # also install java, etc.


The FME requires a specific configuration of Tomcat4 with a custom catalina.policy and server.xml. The easiest way to achieve this is with a catalina_base directory, which is in SubVersion:

adduser fmeuser
su - fmeuser
svn co svn+ssh://
mv fme fmesrc
cd fmesrc
cp -r catalina_base /home/fmeuser/
cp /home/fmeuser/
cp tomcat4.conf /home/fmeuser/
ant war
cp FME.war /home/fmeuser/catalina_base/webapps

# install tomcat4, check for latest
cd /home/fmeuser/
tar zxvf jakarta-tomcat-4.1.31.tar.gz
rm -f jakarta-tomcat-4.1.31.tar.gz
ln -s jakarta-tomcat-4.1.31 tomcat4
# OK, ready to build the FME

Startup script, cron, and Apache

  • The fme-tomcat4 script uses /home/fmeuser/tomcat4.conf to start the FME on boot
cp /home/fmeuser/fmesrc/fme-tomcat4 /etc/init.d
chkconfig --add fme-tomcat4
chkconfig fme-tomcat4 on

cat >> /etc/cron.d/fme-rebuild <<EOF
# rebuild the FME
00 00 * * Sun   fmeuser /home/fmeuser/

I also added this to /etc/httpd/conf.d/sig-local.conf so apache will redirect requests: RedirectMatch ^/(FME/?)?(.*)$$2