I am new to web hosting. Seriously, my knowlegde base is zero. This is going to be my first project going live on Internet.
Kind of confused which hosting should I go for? What approach to follow?
About my website:
1] Enables user to record video from webcam. I am using Red5 as RTMP server.
2] And play back these recorded flvs back to users. There would be no limit for users to record number of videos.
3] Will be using ffmpeg for extracting images from the video.
4] Users can upload profile pics.
Issues / Need suggestions:
1] What red5 hosting do you guys recommended?
2] Where should Red5 server be installed on? On the same server where my website folder is stored? or on a different server?
3] Also, where should I store the recorded flvs? Images? I was thinking of using a separate file server. Just don't want to put processing load on the website's server.
4] If flvs need to be stored on a different file server, then folder permissions needs to set up. Any idea what kind of permission needs to be configured or hosting experts will take care of it? I am familiar with 775 folder permissions but won't that enable users to download files directly if they are able to hack the url. Do any hosting firm provides web hosting + file server service?
5] I am not sure how much bandwidth / file storage will be required. As of now, its tough to give an estimation as I don't know about the usage by the users.
6] Should I go for VPS / Dedicated / Cloud? What is a reseller plan? I have seen about this on couple of websites.
7] Initial Recommended hardware for VPS / Dedicated servers, Linux / Windows.
8] This might be a stupid question: Is it safe to upload your code on a web hosting server? I know end user can do a view source and grab the code. But, about my php files, db, etc, is it part of any agreement that the code won't be sold / uploaded on any other website without author's knowledge. What happens when I stop the service, hosting firm will still have the entire source code in some back up?
based on your 1st 7 questions....
I'd get a dedicated box or vps with linux and cpanel or webmin (depending on budget) and put it all on that...red5, ffmpeg, hosting account with php program and have it all tie together on the same machine. I think a VPS with webmin/cpanel would be a good place to start because it's cheaper and you can upgrade fairly easily as you go. Some of those addons like ffmpeg+red5 are not usually standard installations, so assuming you have a php program that's been tested and works with these items, you still "might" have to pay a little more to get those items installed and working correctly with your php program as some hosting environments and platforms are different than others.
as for question #8
It's your code, and you can do what you'd like with it. The hosting company can't claim it theirs or steal it or resell it etc...
That really helped. Do you have any red5 hosting company in mind? I found Red5Host. They seem to be cheap and have everything I need and have hybrid servers.
I was thinking of starting with shared service initially and later move to hybrid servers. What are your thoughts on this?
The thing about Red5 and Video streaming in general is that its very resource intense (eats up lots of memory) and also eats up a large amount of Diskspace/Bandwidth. Ive seen some hosts who speacialize in offering Red5/Cpanel shared hosting, but im really not sure how dependable they are?
Before we get into all of that though, how many and how often will you be running live streams?
well my website is all about recording video via rtmp and playing them back to users when requested. So, as you said, I am will be needing large amount of diskspace and bandwidth.
If that is the case, then I wouldn't even bother messing with shared or VPS services. I'd go right for the dedicated box, with a scalable back-up solution. Also, if you are not experienced in managing a server, I would make sure you go with a managed dedicated server (red5 can be a little tricky to install and configure if you do not know what you are doing).