-
Notifications
You must be signed in to change notification settings - Fork 972
How to install LAMP, FFMPEG and Git on a fresh Ubuntu 16.x For AVideo Platform version 3.x or older
Important: This tutorial is intended for versions 3.x or older, for version 4.x or newer go here.
LAMP is short for Linux, Apache, MySQL, PHP. This tutorial shows how you can install an Apache web server on an Ubuntu 16.x server with PHP 7 (mod_php) and MySQL. A LAMP setup is a perfect basis for your AVideo Platform.
FFmpeg is a free software project that produces libraries and programs for handling multimedia data. FFmpeg includes libavcodec, an audio/video codec library used by several other projects, libavformat (Lavf), an audio/video container mux and demux library, and the ffmpeg command line program for transcoding multimedia files.
Git is a version control system (VCS) for tracking changes in computer files and coordinating work on those files among multiple people.
If you dont have any web server yet, take a look on this tutorial for a free one: https://github.com/WWBN/AVideo/wiki/Create-a-Web-Server-Video-Sharing-for-Free-in-10-minutes
To install LAMP, FFMPEG and Git just open a terminal and type the following line:
Update since version 2.1 libimage-exiftool-perl was added to deal with portrail videos
sudo apt-get install apache2 php7.0 libapache2-mod-php7.0 php7.0-mysql php7.0-curl php7.0-gd php7.0-intl mysql-server mysql-client ffmpeg git libimage-exiftool-perl
after all installations are complete type this command line:
cd /var/www/html && sudo git clone https://github.com/WWBN/AVideo.git
Here you are ready to install YouPHPTube upload and play videos, but if you want to be able to download videos from other sites like Youtube, Vimeo, YouPHPTube sites and more, directly to your site. You will need to install youtube-dl
Youtube-dl depends on Python, so first you will need Python
sudo apt-get install python
Now to install youtube-dl right away for all UNIX users (Linux, OS X, etc.), type:
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl && sudo chmod a+rx /usr/local/bin/youtube-dl
If you do not have curl, you can alternatively use a recent wget:
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl && sudo chmod a+rx /usr/local/bin/youtube-dl
We have a video that can explain more details with this step by step. Video Tutorial
We hope you have fun! If you need help, have any question or Issue please open an Issue on https://github.com/WWBN/AVideo/issues