Just copy and paste this:

if you want to install both (encoder and streamer) use this compiled code:

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 && cd /var/www/html && sudo git clone https://github.com/DanielnetoDotCom/YouPHPTube.git && cd /var/www/html && sudo git clone https://github.com/DanielnetoDotCom/YouPHPTube-Encoder.git && sudo apt-get install python && 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 && sudo a2enmod rewrite

or if you want just the encoder use this:

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 git && cd /var/www/html && sudo git clone https://github.com/DanielnetoDotCom/YouPHPTube.git

 

after all installations are complete type this command line:

cd /var/www/html && sudo git clone https://github.com/DanielnetoDotCom/YouPHPTube.git

Rewrite-modules

This is a important step.

We need to allow Apache to read .htaccess files located under the directory. You can do this by editing the Apache configuration file:

Find the section <directory /var/www/html> and change AllowOverride None to AllowOverride All

sudo nano /etc/apache2/apache2.conf

After editing the above file your code should be like this:

<Directory /var/www/>
          Options Indexes FollowSymLinks
          AllowOverride All
          Require all granted
  </Directory>

In order to use mod_rewrite you can type the following command in the terminal:

sudo a2enmod rewrite

Restart apache2 after

sudo /etc/init.d/apache2 restart

or

sudo service apache2 restart

The Encoder

The private YouPHPTube Encoder is highly recommended, it is also available for free and open source and you can download it here and also some installation instructions. But if you are limited in hardware or software resources, a public encoder is available https://encoder.youphptube.com/

These procedures were followed and successful from  https://github.com/DanielnetoDotCom/YouPHPTube

Leave a Reply

Your email address will not be published. Required fields are marked *