YouTube clone

I am trying to set up a YouTube clone with some PHP scripts. Has anyone successfully setup a YouTube clone on shared host?

The mandatory requirements are the following:
Linux Server, Apache Web Server, MySQL and PHP (version 4.3 or higher)

PHP Configuration:
safe_mode = off
register_globals = on (recommended)
open_basedir = (no value)
output_buffering = on
upload_max_filesize = 100M (recommended maximum video upload size in MB)
post_max_size = 100M (recommended maximum video upload size in MB)

GD Library 2 or higher
FFmpeg, FFmpeg-PHP
Mplayer + Mencoder
Libogg + Libvorbis and LAME MP3 Encoder

Linux server, Apache, MySQL and PHP 5 are no problem on a shared host, however I am not sure if the other free tools listed are available by default or if I can install these on my own? Will I be able to set the PHP configuration without having to do a custom PHP install?

I need some words of wisdom as I am a newbie to hosting stuff.


I believe you should be able to accomplish this on a DH shared server. You’re right that the other tools are not installed by default, but you should be able to install them on your own. I’m not sure just how new to this stuff you are - but there may be a bit of a learning curve till you get it all done.

The wiki is going to be your best friend in getting this done. The articles that will help you configure and install stuff will probably all require that you get command line access to your server - also called SSH. Start with this article to get going.

for FFmpeg there’s an article in the wiki here . That’s a bit of an advanced article, but feel free to post here and ask for more help on specifics. I’m not sure about the other tools but you can search the wiki (and google if that fails)

As far as the settings for php you can do a custom install of PHP in your own server space, but I suspect all you need is this article on how to set up your own PHP configuration file.

Out of curiosity, where’s this tutorial you’re referencing? I’d be curious to read it.

–Matttail - personal website

I got a hold of a youtube clone script from here:

And after trying to upload a videoclip, I got these errors:
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of runtime function name. If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/.lobo/user/pornooo_net_vids/upload.php on line 84

Fatal error: Class ‘ffmpeg_movie’ not found in /home/.lobo/user/pornooo_net_vids/upload.php on line 83

Anyone else using this script and has beaten these errors ?

yeah, i did experience the same problem and i never got it worked out. anyone can explain how to get out of this mess please.

I have successfully installed the youtube clone script…
i have compiled all needed modules and recompiled php

the only problem i am having is i cannot upload and successfully convert large videos. the videos upload with no problem and small video’s convert but it seems that maby the larger video’s take too much out of the server… if anyone has any ideas on this problem please e-mail me @
p.s. i have found a host dedicated to this clone script but im not advratising here.

Thank god for ProcWatch!
Otherwise I can only imagine how often you’d be killing whichever server you’re on, and the discontent of the other users who are sharing that server with you when their pages take ages to load.

If you’ve found a dedicated host for that, then great! Please use the script there instead :slight_smile:

If you’re looking for server setup services for the following on dreamhost:

  • autoconf
  • LAME
  • ffmpeg
  • GD2
  • mplayer+mencoder
  • flvtool2
  • libogg
  • libvorbis
  • PHP
  • ffmpeg-php
    Please get in touch with me I have setup close to 50 youtube clones (some clip-shares, a few social media, ostube, alstrasoft, vshare and a couple of custom made scripts as well) on Dreamhost shared hosts and they work great. I make sure that the shared server resources are not overshot so you do not face the dangers of getting shut down by the host.

You can read more about the requirements here: