Installing Red5 on FreeBSD is very straight forward. The port pretty much takes care of everything. Log on to your FreeBSD console, browse to the port's directory and install it.
When the port has finished installing, you'll need to edit your rc.conf file to allow the Red5 server to start. Open up /etc/rc.conf in your favorite text editor and add the following line to the end. (If you have Webmin, you can do this from the "Bootup and Shutdown" section under "System".)
Next, we must allow network connections to our server. Edit the file /usr/local/red5/conf/red5.properties and change all the instances of 127.0.0.1 to 0.0.0.0. For example:
We must enable the RTMPTLoader, otherwise our sever won't work properly. Do this by un-commenting the RTMPT section in the /usr/local/red5/conf/red5-core.xml file. This is located in and around line 117 through 153, just remove the XML comment tags at the beginning and end.
Finally, we can start our Red5 server. Simply issue the following command (or if your using Webmin, do it from the Bootup and Shutdown section.)
service red5 start
Verify that the server is working by connecting to it on port 5080 from your web browser. For example: http://freebsd.domain.tld:5080. You should see the Red5 logo with links to demos. Click on Launch a demo and click on the Shared Ball demo to verify it loads. The demo won't do anything, we just want to make sure that the page loads with no errors.
At this point, we have a fully functional RTMP server. Make sure (if necessary) to open or forward tcp port 1935 to your FreeBSD server so it is accessible from the Internet.