Wednesday , 3 January 2018

How to create a video sharing website like YouTube?

I few months ago started a video sharing website now may be accessed at “”, which has been of course one of the hedaches for me to do :). However, I managed all the things and kicked it up within few days since I thought the idea of creating such website. Since, I started T2L, many people requested me to share the steps I took while creating that website or I should make a video tutorial on it. But to be really honest, I didn’t get time to make video tutorials on it, but I just thought I should share the steps with you which are must in order to create a video sharing website same like YouTube, where users will be able to create an account and upload media files such as Videos, images and etc. While, all video sharing sites have social networking features as well, because users need to send messages to one another and can make discussions with the video producers, so this is actually called Social media network as well as video sharing platform.

creating a video sharing site

I must remind you one thing that, if you want to create such website by yourself then you must be a higher level web developer who knows how to code in PHP with its advance level programming and OOP. And a single developer can not  do it alone, there must be a team of developers to create such websites/scripts, because there are many parts in a script to be coded in PHP. However, average developers always try to find already existing scripts to create such websites. There are some well-known scripts which are used to create video sharing websites which look like YouTube, dailymotion and metacafe etc. Here we’ll discuss everything you need to know in order to create a VS website.

What are the requirements to create a Video sharing website?

Now lets have a look at the steps and requirements you need to create a video sharing website having social media networking features and a lot more. Please keep in mind that, video sharing sites are not normal sites, they are created by using some advanced technologies, and unlike other sites, they need more bandwidth, more desk space, more plugins and utilities to be installed before a video is rendered or uploaded. So make sure your concept is cleared before starting this kind of thing.

Requirement # 1: 

The first and initial thing for video sharing website is “Web Hosting“, you can’t start your VS site with normal shared web hosting, you’ll have to buy a VPS (Virtual Private Server) hosting for your video sharing site. This is necessary, because the shared hosting can’t handle all the tasks at once such as uploading videos, encoding those videos in the background, Multiple uploads at once, playing the videos in the player to many users at once and there are many more tasks the server does at the same time. So the normal shared web hosting will get down automatically when it fails to manage the operations going on at different sides of the whole content management system. So finally, this is very necessary to buy a VPS or dedicated server for your video site which can handle of all the operations easily without going the server down for every single day.

Requirement # 2: 

The second thing to start a VS site is to have the appropriate script for it, there are many built-in scripts for video sharing websites which you can install over your server to create a YouTube clone website or you can create even a unique one with your own IDEA. In all cases, you must have a video sharing script to start the website with. There are PAID scripts 🙂 as well as free scripts, but I’ll recommend you to use Paid Scripts, because they can provide you support and help if you need it later. The list of the free and paid scripts will be shared in this post later.

Requirement # 3: 

The third requirement for creating a VS site is; Your hosting server must have some additional features which are must for video sharing script, because the video sharing script actually doesn’t work if some of the plugins are not installed and some of the PHP configurations are not set up. The list of the plugins (Must be installed to run your VS site properly) are these but not limited to i.e ( I used these one actually):

  • FFMPEG – Used to convert videos from different format to FLV when they are uploaded
  • PHP CLI – Used to convert the videos in background which doesn’t affect the site
  • FLVTool2 – Used to repair FLV videos for better streaming in the media player
  • MP4Box – Used to convert MP4 videos for better streaming in the media Player

These are some PHP configurations in the server you must make in order for the video script to work properly:

  • safe_mode = off
  • max_execution_time = 1000 (recommended to prevent timeouts during video upload/conversion)
  • session.gc_maxlifetime = 14000 (recommended to prevent session expires during video upload)
  • open_basedir = (no value)
  • output_buffering = on
  • upload_max_filesize = 500M (recommended maximum video upload size in MB)
  • post_max_size = 500M (recommended maximum video upload size in MB)

So after you make the above configurations in your server (usually Cpanel) then the video script will properly work and the videos will be uploaded by the users and will be played by others.

After the above explanation, now we can make a summary for what we actually need to start a video sharing website very easily and quickly if we want, here is everything together you need to have before starting the website:

  • Web Hosting (Must be VPS = Virtual Private Server) 
  • Video Sharing script (Must be installed after you purchase VPS) 
  • Install Necessary Plugins (FFMPEG, PHP CLI, FLVTool2, MP4Box etc) 
  • PHP Configuration in the Server (As Mentioned above) 

Some web hosting companies provide you built-in setting for starting a video sharing website, after getting the web hosting you’ll just have to install the video sharing script and the website will be working instantly. But these companies are rare.

The List of Web Hosting Providers for Video sharing sites:

Here are some websites which I think are the best for you if you ever wanted to start your first video sharing website, these are actually considered the best for VPS hosting, so you can check their packages and plans:

  • (Best for VPS hosting)
  • (Best for Dedacted & VPS)
  • (For both)
  • (Particular for Video sharing hosting)

You can choose any of the above web hosting providers for starting up your own YouTube clone website within few days. The first two companies are recommended by me for Video sharing websites.

The List of the Free & Paid Video sharing scripts:

Now after you bought a web hosting, you’ll need to have a Video Sharing script ready to start your website, There are many scripts available online on the web for starting a VS site, but some of them are paid, while few others are free to use. Here is the list of some:

  • & .net (The most used free VS Script)
  • (The second most used free VS Script)
  • (A paid script but great script)

There are many other free scripts out there in the market, but I’d only recommend you to use the above three ones, because the rest scripts have a lot of bugs and errors which can not be resolved by an average developer easily.

How I created

First of all I thought to create a video sharing website for Pakistani users, due to YouTube was blocked in Pakistan by the Government (Which is still blocked), and after seven days of the idea, I implemented it in the shape of ( I just searched on the internet to find the script, but finally I came to know about a website called ( which is actually owned by ( and CB is owned by (Tune.PK), so I just purchased the web hosting (VPS) from them and they installed everything for me. That’s how, I easily created this website. However, later on, I changed some of the files according to my requirements and I got a Dashboard for managing the website after the installation had been completed. I’m using (Tune.PK) script on this website which is freely available at (

Over to You: 

I’ve tried to give you each and everything for creating a video sharing website, this is now up to you, how and when you want to start your own video sharing website. However, if you got any question or have some suggestions then you are always welcomed to start a discussion below the post in the comment section. Thank you for reading this long post! 

About Abdul Wali

Abdul Wali is a Web Developer, SEO Consultant and Online Instructor working online for last 6 years on the internet and managing several successful websites. You can contact him via Email or follow him on Facebook. Also add him on .

Check Also


How to Find Free Images For Blog Posts in Urdu/Hindi

When we have so many sources to get copyrights free images then why bother using …

  • Great Brother! its a nice tutorial and its really helpful for those peoples who want to make a one Video Sharing Website, keep it up….

  • Wali Bahi. I want to know about the difference between, purchasing hosting from an abroad company vs purchasing from domestic company. Either it effects your traffic.

  • Salam,

    Sir esay tutorials k sath ap aik adad video tutorial bana dia karen ya phir banaya hi video karen or us me koi kami rah gai ho to wo phir yahan par likh dia karen is say zyada achi tara
    samaj aye ga.
    Esay bhi theek hai bhai par ye aik tajweez hai ap amal karna chahen to ap ki marzi 🙂

  • great wali bro nice tip thanks

    • Hello brother, thanks for commenting here, but there is a great suggestion for you from my side, i’ve checked your blog and there are many articles copied from as well as other sources, so kindly remove them all to stay safe from any penalities given by the respective organizations in case you are reported to them. Thank you in Advance!

      • Dear Wali Bhai Mujeh aap se ya kehna he ke aap ki working Masha Allah bohat zabardast he bohat hard working ki he aap ne. ki alexa ranking to good he lekin PR ku nahi he sir?

  • ammar

    bro agr aap es ki video bana daty to achi thara smj aa jata

    • I may make video on this but not at the moment, I think its enough for now. And Inshallah when I get time, I’ll surely create video tutorials on it.

  • Nice Post Bro, keep it up.. (Y)

  • thanks wali bhai . really helpfull post ………

  • gr8 post, thanks for this long post dear, video sharing sites ki seo to nahi hote-? to iss ki marketing k leya mobile-marketing + sms marketing and other ways use hotay han.. ???

    • you are welcome, video sharing website Google automatically index kar leta ha, and ap ic ko Google webmaster ma bhi submit kar sakte hai, and log jab videos embed karte hai apne sites par tu bhi apke backlinks create hote rehte hai.

  • thankqqqqqqqqqqqqqqqq wali bhai may buhat dayr say is post ka intezar ker raha tha thanqq :(y)

  • very nice info thanks admin sir i want to make facebook type web site plz help me
    Mujay konsa script use karna chahia aur konsi hosting pay chalay ga aur scrip free konsa bahtar hay
    Regard sana

    • you can use “PHPfox” to create a website same like Facebook.

  • I just want to say Happy New Year to all of you.
    May this year brings you more happiness.
    The post was great.

    • Happy new year to you too and thanks you like the post.

  • I like you all update, Most on SEO, I wanna YouTube seo article, Means How to Optimise YouTube video

    • I think youtube videos need to be optimized by adding proper descriptions, titles and tags.

  • Hi Wali brother. These are really very very helpful tips.
    I was searching fro many times but did not succeed to find that tutorial.
    But after reading this post now I have an idea how to make video sharing website.
    at last I will be say. Hard working include money is required for this purpose.
    Thanks dear for sharing this great and long detail about video sharing website and your website.

    • you are welcome bro, and I’m just glad that you have got what you actually needed from this post. Stay tuned.

  • Wali , Really great information. Hats off to you…

  • Really Nice Guide To Making Own video sharing site. i also check your post about creating forum site easily. Thanks 🙂

  • how to install these plugins FFMPEG PHP CLI

    • Ask your host provider, they will install it for you.

      • abubakar

        i subscribe a mail but not recieve you msg yet!

  • muhammad abubakar

    slaaam Brother

    main ny subscribe kia hai aur email conform b ki hai laykn ab tk koi mail recieve ni hui.

  • Good Job

  • Ohh bro thanks you very much par aap ne ye ni bataya paisy kitny lagain gy is VS site bnany mn ?

  • good work bro
    1:aap mujy ye bataye k is par kitna kharcha ayega per year
    2:aur mera blog bhi chek kare plez

    • video sharing site create karne par apko starting ma $200 tak ka kharcha asakta ha and then apko monthly basis par at least 3000PKR dene parhte ha VPS hosting k lye.

      • thank you sir, mai ny aap sy mery blog ko check karny ko kaha tha
        aur kuch suggestions bhi dein ,plez sir

        • brother your blog looks just fine, there is no extra suggestions from my side, but only suggestion which is to only create original content.

  • Wali bhai plz mujhe bta dain la live streams mai ads kese insert krte hain

  • Yes you’re right i have copied few article from your side thanks for inform me and i have removed copied article from your site. i am happy to telling you why i have copied article from your side because those are my first article, i not no any idea about article writing. i hope you understand my problem and never mind again thanks

    • hmm, that’s great you understood how important it is to not copy others content and create your own, because if someone reported you to Google or any other organization then your blog might be exposed to danger in just no time.

  • thanks for suggest me and inshallah i will follow your suggestion.

  • very informative for me thanks for posting this.

  • Hi bro,

    Actually, I had been hunting for this topic for a friend of mine. She is all set to start a blog, belonging to education niche, focusing on sharing videos. Since I’m into blogging, she asked me about setting up a video sharing site. Now, to be honest, video sharing site is something I’m not much familiar about.

    I guess this post of yours will be of immense help to make her understand the requirements and all. Now, my task would be to show her this post.


    • Hi,
      You are right, video sharing website is different than the normal websites, so you can now tell her to take every step mentioned in the post above.

  • how to install ffmpeg on cpanel

  • muddasir

    How to design YouTube Website

    To design a website like YouTube, there are 3 main tools that you have to use. They are Web design software like Dreamweaver or FrontPage and tools for active page development; sever-based video to flash video converter like Adobe® Flash® Media Interactive Server 3; flash video player maker like Moyea Web Player Pro. Then I would like to show you how to design a YouTube website step-by-step.

    Firstly, to design a website, we have to use some web design tools. Currently, Dreamweaver andFrontPage are commonly used by most web designers. You can streamline your development workflow by creating and editing images in Fireworks and flash works in Adobe Flash CS3, and then import them directly into Dreamweaver. Then you must develop a login, logout and register system, upload system, database system to store the videos uploaded by customers, which require active page technique, like ASP.NET, PHP, Java…You can use PHP code to handle the active page, Linux Apache server as your server and ORACLE Database as your database system. You have to install all these tools in the machine and set up the development environment correctly to make sure they work right together.

    Secondly, after the web page completed, because it’s sure that the videos uploaded by people would be much unorderly, then YouTube must contain a video to flash video (.flv) converter that can convert all kinds of video files which are uploaded by all customers to flash video (.flv) format file; YouTube needs software which can make these video files standardization including format standardization, size standardization, WxH standardization, etc. More important, this software must have the ability of contain any numbers of video files that are uploaded by the people all over the world to flash video (.flv) file. Meanwhile, this software must have the ability of crop and trim video files.

    As far as I know, Adobe® Flash® Media Interactive Server 3 can complete these tasks. Adobe® Flash® Media Interactive Server 3 software has the unique combination of powerful streaming media capabilities and a flexible environment for creating and delivering interactive social media applications to the broadest possible audience. So Adobe® Flash® Media Interactive Server 3 is great if you can afford it. However I think there are plenty of other solutions to accomplish the same end goal.

    Last but not the least, there must have a flash video (.flv) player that can play the videos uploaded by all people. Therefore, YouTube needs a flash video player maker to make a flash video player to play these flash video files. However, there are some basic requirements to the flash video player maker. The generated flash video player has to play any number of flash videos with a single flash video player, as it’s impossible that one player plays only one flash video file. It has to be with scrollable thumbnail play list…

    To this point, Moyea Web Player Pro can do that, I also use it on my own website. It is a multifunctional flash video player maker. With it, you can design your own player user interface and create a scrollable thumbnail play list, you can add advertisements to the flash videos. It is a pretty interesting program. The generated flash video player can add single or multiple videos in many formats to website. The flash video player supports playback of video formats that the Adobe Flash Player can handle, such as FLV, MOV, MP4, 3GP, 3G2 and H264.

    • I have a script you can use for such website within minutes

  • muddasir

    is k bary mai koe batao yai theek hai ghalat

  • Salman

    Salam Bhai kia video sharing website se paisay kamaye ja saktay hai ya nahi.yeh 1 site hai “” jo video sharing website sell kar rahay hai aur is mai leka hai k hum video sharing website se paisay kama saktay hai.Kia ye such hai? Kia mai in se video sharing webiste kharid lu.? Plz reply.

    • Bulkup. Aap aisi website se achi khasi earning kar saktay hain.

  • Ghani khan

    Salam wali khan brother you did a good a job of creating tutorial in urdu but some of our pashtoon friend they do not understand well urdu i hope you will also create Pashto tutorials to make our Pashtoon Brothers happy and can easy understand and get some knowledge from your tutorials. Hope you will soon created Pashto tutorial we will keep you in your prayers.

    • w/salam,
      Thank you brother for your feedback, I always do a lot of care of our Pashtun brothers, and I’ll try my best to transfer my knowledge to them, I have a website which is only about Pashto tutorials, there are some courses I’ve uploaded already and I’m working on some, so please visit that. Thanks

  • Assalam-O-Alaikum Nhai .
    ☺ Bhai Mai Ne Tut2learn per kaafi daffa signup kia hai but verification email ni aa raha . Please Help Me . ☻

  • Muhammad Aqib

    Wali bhai pleas es ke video bana kr bhe upload karo….

  • I have a script that automatically embeds and play youtube videos anywhere in the world without proxy. If someone want to start such website which has huge potential in pakistan, i may be contacted at

  • mene script to download kr li he is men database ni he wo kha mile ga kindly tell me at

  • Hafiz M Hatib

    Aslam-o-alaikum …abdul wali bhai kea hum online web server bna skty hai ????