Do you wish you had a Youtube like media site? There are a handful of PHP scripts that do just that. Some or commercial some or Free. However these scripts all depend on older version software and Linux to operate properly. I was unable to find a good 2015 guide that showed me how to do this.So with many days of trail and error I found the server combination to meet these specific requirements:
-PHP 4.3 or higher
-GD Graphics library 2
-.htaccess and URL rewrites must be enabled
Latest IonCube loadersYour server must support FFmpeg
-MEncoder and Mplayer (http://www.mplayerhq.hu)LAME (http://lame.sourceforge.net)
What ever media sharing script you want to run is most likely going to need this as a base. This can be very tricky to install on a new Linux version today! And in most cases fail to work. However if you have lots of money these scripts offer paid installation service if you can afford it. If not then here is how to configure a new server in 2015.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Download Linux
We need to download and install:
Ubuntu desktop 12.04 i386 ISO
*This is not the recent Ubuntu version*
You can find it on google. Better for you to find a local mirror. Google does a good job at finding that.
Step 2: Install the Software
Once the desktop loads open up terminal. If you do not find it in the menu you can simply type terminal in the menu search and it will show up.
In the terminal.
sudo apt-get install ssh php5-ffmpeg
sudo apt-get install ffmpeg
sudo apt-get install apache2
sudo apt-get install libapache2-mod-php5
sudo apt-get install mysql-server
sudo apt-get install lame
sudo apt-get install dpkg
sudo apt-get install php5-curl
sudo wget http://prdownloads.sourceforge.net/webadmin/webmi...
sudo dpkg --install webmin_1.740_all.deb
Some errors show up then,
sudo apt-get -f install
Webmin installs fine. I use webmin because my disability make it hard for me to type and
work the shell. Webmin is simply a nice webgui to control the Linux system.
Step 3: Working With Webmin
Next log into webmin with a web browser from a system within the local network:
https://10.0.0.254:10000 this is the webmin address for me since this is my Ubuntu box.
From within webmin find -Configure Apache Modules -check box rewrite -then hit enable button
Restart apache from webmin apache panel Stop apache then start apache.
- Downloading Support Files:
Download via any prefered method this file link. At this point I just use the webmin GUI front end. http://downloads3.ioncube.com/loader_downloads/io... And extract it into Directory /var/www/temploader create directory if needed.
Please not for commercial scripts mostly, Some needed loaders might be different but the install method is very similar. Copy the loader into your php modules directory and load it as the first line in your PHP.ini file The script you are trying to install will list what loaders are needed if any. I am using ioncube as an example required by http://vidiscript.co.uk Media sharing script.
Step 4: Configure Ioncube
-Open a web browser from the local network to point to Ubuntu server such as
Then the page will say
The correct loader for your system has been found at
/var/www/temploader/ioncube_loader_lin_5.3.so. You may wish to copy the loader from
/var/www/temploader/ioncube_loader_lin_5.3.so to /usr/lib/php5/20090626+lfs.
*notice that the folder 20090626+lfs depending on install might be a different. Take note of it*
-And we do just that. Copy the proper loaders with the help of webmin or by terminal if you know what your doing....
-Then reload http://10.0.0.254/temploader/loader-wizard.php
But now now get this error:
Please note that the following problem currently exists with the ionCube Loader installation:
The necessary zend_extension line could not be found in the configuration.
-So we do just that. I am still using Webmin at this point if your wondering why I don't show any more terminal commands. I am using my workstation to download the files and upload them with Webmin back into the Ubuntu server.
-Now with the help of Webmin or terminal of you know what your doing. In php configuration for /etc/php5/apache2/php.ini And /etc/php5/cli/php.ini
Simply add as the first line at the very top
zend_extension = /usr/lib/php5/20090626+lfs/ioncube_loader_lin_5.3.so
-Then restart Apache.
Step 5: Last Part
Last part we must install Mplayer/Mencoder compatible version. We need last stable none cvn version.
MPlayer 1.1.1 release.
Back to terminal now
sudo tar xvzf MPlayer-1.1.tar.gz
sudo apt-get install yasm
sudo make install
This last part will take some time to compile but if all goes well you will be back to terminal with no errors. Now your server is ready for the install of what ever media sharing script you wish to use. Of course you may need to fine to some settings later and perhaps add some extra codecs if you need it / know what your doing.
Upload the code and go live your media sharing server is ready!