Archive

Archive for June, 2008

Installing ColdFusion8 on Tomcat6

June 7th, 2008 rupert Comments off

Tomcat Install:
http://neilang.com/entries/how-to-install-tomcat-on-mac-os-x/

1. download tomcat http://tomcat.apache.org/

2. By default, MacOSX already has java in /Library/Java/Home

3. extract apache-tomcat-6.0.16.tar.gz

4. mv apache-tomcat-6.0.16 /usr/local/tomcat

5. cd /Library/StartupItems

6. sudo mkdir Tomcat

7. sudo vim tomcat

Deploying coldfusion as a war
http://www.adobe.com/support/coldfusion/j2ee/cfmx7j2ee_tomcat_deploy.html

8. When prompeted: Select J2EE configuration/WAR file

9. Copy cfusion.war to /usr/local/tomcat/webapps/

It should be automatically deployed, if not, then stop start tomcat

10. move tools.jar tools.old

11. Download the jce security and replace the files from your jdk directory

Categories: tomcat Tags: ,

Postgres PostGis PostInstall

June 7th, 2008 rupert Comments off

1. Edit pg_hba.conf

# "local" is for Unix domain socket connections only
local   all         all                               trust
# IPv4 local connections:
host    all         all         127.0.0.1/32          md5
host    all         all         192.168.1.0 255.255.255.0       md5
# IPv6 local connections:
#host    all         all         ::1/128               trust

2. Edit postgres.conf

55
56 listen_addresses = '*' # what IP address(es) to listen on;
57 # comma-separated list of addresses;
58 # defaults to 'localhost', '*' = all
59 # (change requires restart)

4. For CentOS5.1, create symbolic links:
ln -s /usr/local/lib/libproj.so.0 /usr/lib/libproj.so.0
ln -s /usr/local/lib/libgeos_c.so.1 /usr/lib/libgeos_c.so.1
ldconfig
/etc/init.d/postgresql stop
/etc/init.d/postgresql start

3. Postgis Post Install

createdb -E utf8 template_routing
createlang plpgsql template_routing
psql -d template_routing -f /usr/share/postgresql-8.3-postgis/lwpostgis.sql 
psql -d template_routing -f /usr/share/postgresql-8.3-postgis/spatial_ref_sys.sql 
psql -d template_routing -f /usr/share/postlbs/routing_core.sql 
psql -d template_routing -f /usr/share/postlbs/routing_core_wrappers.sql
Categories: postgis, postgres Tags: ,