Sep 15, 2011 9:50 AM
Apache in FMS 4 Developer vs XAMPP Environment for PHP
-
Like (0)
1. Have a Flash Webpage under development designed to permit preview and streaming of FLV video. Downloaded FMS Developer as a test server on my computer. Apache 2.2 loads with it with a checkbox option to install it or not. I'm able to stream my video OK in this setup using RTMP://localhost and the FLVPlayback component in Flash Pro. I like some of the OSMF players better like the one in the FMS Start Screen, but I haven't been able to integrate/embed it into my Flash webpage using the HTML provided. They say just paste it to the webpage, but in ActionScript how do you do that? None of the online help really explains how to embed Strobe Media Player into an FLA webpage using their HTML.
2. I plan to use PayPal Express Checkout for Digital Goods (EC/DG) as my pay facility on the Flash webpage. My videos will play to a cuepoint and then jump to a PayPal button which executes (EC/DG) . I'm having trouble integrating PayPal with my Flash webpage. There's a lot of online help, but most solutions involve PHP. To help me understand PHP I bought the e-book, "Adobe Dreamweaver CS5 for PHP" which recommends downloading the XAMPP platform which contains Apache, PHP, MySQL etc. I have several questions concerning this: (a) If I use the XAMPP software, as recommended in the Dreamweaver book, do I have to first uninstall the Apache that comes with FMS? I assume you can't have two Apache's running at the same time. (b) Is FMS the Server or is Apache the server in the FMS installation? (c) Does the Apache software installed with FMS include PHP and MySQL, which seems to be required for any server-side coding?
You can see by some of these questions that I'm new to all this Server stuff. I'm doing it myself because I can't afford to pay the $400 to $500 a month for a Video Streaming Host. I want to use FMS with Amazon Web Services to implement my Streaming Video Project, but I'm not sure I can do it with all the problems I'm encountering. Anybody know any "reasonable" developers? ;-)
Two final questions:
3. Why would I need Flash Builder if I have Dreamweaver? Don't they do essentially the same thing?
4. Can I do everything I'm trying to do in 1 and 2 above just using ActionScript and JavaScript, which I understand is just Server-side ActionScript?
I appreciate any help you can give me on any one or all of these issues. Thanks
Joel Cotten
VideoArts
I'm going to help you because i really like the fact that you have put alot of effort and time into this you aren't just saying How do I do / or do it for me. However right now I'm eating lunch just wanted to make contact... Be Back In A Bit if nobody else answers first.
1. backup your applications folder, fms.ini and any other config files that you have changed in the FMS install directory.
2. uninstall FMS
3. reinstall FMS and uncheck the option to install the bundled apache webserver . FMS should be installed on a seperate server as apache. Flashplayer uses port 80 and it Will conflict adobe apparently bundles apache to be used as demo. I have never gotten PHP and all its modules such as gd to work on their version of apache. reinstall you applications folder and fms.ini(any thing else you backed up)
4. install apache 2.2,PHP,PHP PEAR(if you ever want to send mail) install mysql and mysql workbench on the server machine.
5. create a text document and change hide known file extensions in the windows folder options so you can change the text files extension to .html(myEmbedFile.html) paste the html provided into this file put it on the webserver and browse to it.
Resources to keep in mind.
1. You can use any desktop machine running windows that is has at least 512 mb of ram as development machine. I have installed all the above mentioned servers on desktop machines. I currently use a single quad core destop for all my delvelopment needs and because its a devlopment machine i took port 80 out of fms.ini and installed IIS,Mysql and FMS on it. Keep in mind if you are using windows 7 that you can install apache and PHP on it but I could not get GD (php graphics module) to install on it an currently use IIS. If you do all of this on Linux its not a problem but you may have to find a patch for FMS to get it to install.
2. if you want to attach your ip adderess to a domain name use dyn.dns their client will autochange your IP address if your ISP gives you a new one or you change a nic card or for any other reason.
You should do everything I've described above to be able to learn and create apps as effiecently and with as little hassle as possible.
You can use a package such as XAMPP to which will install all the above servers but i prefer to do it one by one and use config files without a config manager and I think its easier to install any sever modules I might want to use in the future to expand my development websites. Your choice though.
Thanks for your info calmchessplayer. Appreciate any help I can get. Have re-installed FMS w/o the bundled Apache. All the streaming functionality still works fine. I did have to load it as an administrator though, which I only learned after a lot of reading and trial and error.
In 3. you say " FMS should be installed on a seperate server as apache", but in 4. you say " install apache 2.2,PHP .... on the server machine". I don't understand. Do you mean I need to install Apache on a different computer than the one I installed FMS on?
I'll be using XAMPP to install Apache 2.2, PHP, mySQL, and all the other tools that come with that package. Isn't the machine on which I installed FMS my Server Machine? Doesn't my test environment for streaming video and for communicating with the test website have to reside on a single machine? I have several computers, but all my Adobe Production Suite CS5 tools and my Flash webpage are on a single machine, the one on which I've installed FMS (Developer Version).
A related question: If I finally commit to the FMS on AmazonWebServices (AWS) environment, where does my Flash Webpage reside? Doesn't FMS on AWS become my domain and the URL for my webpage?
You can see I'm full of questions, so maybe I should let you answer one at a time. More later.
What i meant is FMS and Apache should be on seperate servers in a production environment. but in my devlopment environment where i can garuntee port 1935 is open then port 80 becomes less important because flash player always tries port 1935 first. In a production environment flash player will try port 1935 and if it fails then it will try port 80. See why there could be a conflict between port 80 FMS and port 80 apache? In overview I load all servers on a single desktop machine and build on it then i transfer the .swf and main.asc onto a production machine for load testing. If you don't have a good FMS server to test you apps on then when ready I suggest you use Influxis FMS hosting. At this point there are so many possible possible configurations for you to use that you are going to have to make some decisions on your own. This post is just a guide I have wrote because I spent countless hours learning this stuff with nothing but minimal help from forums. However I must put a great big thankyou and shoutout to fmsguru.com. That site has been invalueable.
I have done it, xampp is working allong fine with fms 4, all you have to is install fms, copy it to a back up folder, do not delete..
Uninstall fms, install it again with out the apache server files, now go back to your back up copy and open httpd.conf in apache2.2 conf.
do the same thing with the xampp apache that is located xampp/apache/conf, look and change the modules to be exacly the same as the apache2.2/conf file.
Dont bother copy and paste the httpd.conf in to apache xampp directory, it doen not work.
Now next step is go to the back up folder of fms apache2.2 again and go to modules folder.
CTRL A select all files inside the folder, open xampp/apache/modules folder and paste it in there, do not over write!
This is what i have done, and it works fine..
Good luck all, i could not find good information about it on the internet, so i tought id share it with you..
It recomended to reinstall it in the xampp directory...i dont know if any other directory works...
Also do not change any ports, they will work fine afther modules are correctly changed in httpd.conf.
North America
Europe, Middle East and Africa
Asia Pacific
Copyright © 2011 Adobe Systems Incorporated. All rights reserved.
Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy (updated 07-14-2009).