# Installation 1. Copy entire "messenger7" folder into Flash Media Server application directory. Windows default location:
c:\Program Files\Macromedia\Flash Media Server 2\applications\
For Wowza and Red5 users media server requires reboot after upload. 2. Copy everything from "WWW" directory to any pre-created folder on your website. For our sample installation we are copying files into "messenger_7". 3. Open "im.js" file which can be found in "js" folder with any text editor like notepad and find the following string:
var root = 'http://yourdomain/messenger_7/';
Specify full HTTP path to the pre-created folder we used to upload files. 4. Try to reach messenger.htm page in the browsers to make sure files locate in the correct folder:
http://yourdomain/messenger_7/messenger.htm
You should see a page with embedded messenger. It won't load this time as we need to pass on several parameters (explained further) 5. Add the following string to header section of the html page. The most common practice is to have this reference added to global website template.
<script language="JavaScript" src="http://yourdomain/messenger_7/js/im.js"> </script>
6. Now we need to add presence code responsible for user's authentication and online status update. Online presence code should be set globally throughout entire website. The most common practice is to have presence code embedded into global template:
<div style="width:1px;height:1px"> <script type="text/javascript"> try { z5messenger.uid = '2010'; z5messenger.StartPresence(); } catch(err) {} </script> </div>
The main parameter we will be using throughout entire integration process is "UID". This a global user identifier used to retrieve profile and authentication data. At this phase of installation we set it to random value of "2010" to verify that all the steps were performed successfully.