Just had to setup a new farcry app here so I thought I'd write this up as I went.

I setup a new FC site as a named virtual host running with the OS X built-in apache and cfmx.

This assumes you've got the apache connector successfully installed.

Hope sombody finds it useful.


== Setting up a Farcry Virtual Host on Apache + JRun for OS X ==

1) Create a dir /vhosts/farcry_applications

2) Unzip farcry download (core, fourq and aura) into farcry_applications

3) Create a new DB and datasource for your farcry app

4) Create a JRun mapping for /farcry to /vhosts/farcry_applications (i.e. add the following to coldfusion's jrun-web.xml):

  <!-- Farcry mapping -->
  <virtual-mapping>
    <resource-path>/farcry</resource-path>
    <system-path>/vhosts/farcry_applications</system-path>
  </virtual-mapping>

(This file can usually be found in /Applications/JRun4/servers/<servername>/cfusion/WEB-INF/jrun-web.xml)

5) Enable named virtual hosting in Apache (/etc/httpd/httpd.conf)
  - Uncomment NameVirtualHost *:80

5a) Add index.cfm to your DirectoryIndex directive

6) Create a virtual host in /private/etc/httpd/users/YOURUSERNAME/httpd.conf which has a /farcry alias pointing to farcry_core/admin
- e.g.
<VirtualHost *>
Servername farcry-demo
DocumentRoot /vhosts/farcry_applications/farcrydemo
Alias /farcry /vhosts/farcry_applications/farcry_core/admin
</VirtualHost>


7) Add an /etc/hosts entry for the virtual host

8) Restart Apache (sys prefs -> sharing -> web sharing -> stop & stop)

8) Run http://farcry-demo/farcry/install  (site name: farcrydemo)

9) Select view-site

10) Login to farcry:
        http://farcry-demo/farcry
        Username: farcry
        Password: farcry

Post tasks
- Delete farcry user:
- Delete farcry_core/admin/install
- Customize site files found (in /vhosts/farcry_applications/farcrydemo/)



-- tim lucas

http://www.toolmantim.com


--- You are currently subscribed to farcry-dev as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to