How To install YouTube Video Backend


Minimal Server Requirements:

Apache or Nginx

rewrite enabled

PHP 7.2.5+* with IonCube Loader and CURL extension


Squid Proxy installed on your Server

Recommended Server Requirements:

Apache 2.4

rewrite enabled

PHP 7.3 with IonCube Loader and CURL extension


Squid Proxy installed on your Server

* PHP 8.x not supported.

How to install Backend Script?

1) Create a Subdomain, e.g.,

2) Install "unzip" package via SSH:


apt-get install unzip


yum install unzip

3) Upload the Zip file in your Subdomain Webroot directory and extract it via SSH:

unzip "YouTube Backend API"

4) Delete the Zip file for Security Reasons

5) Create a Database

6) Open .env file and edit the following:

APP_LICENSE_KEY=License key in your Client Area
APP_PROXY_PASS=Proxy Password

7) Open SSH to your Server and Navigate to Webroot directory, e.g.:

cd /www/wwwroot/

8) On a Plesk Server only, type the following command to determine the correct location of the PHP "CLI" (Command Line Interface) for your PHP version:

find /opt/plesk/php/*/bin/php

You should see output like this:

Use the correct, corresponding, full PHP path name instead of "php" for the commands executed in the next step!

9) Type these 2 Commands to Create the Database Table

php artisan migrate
php artisan db:seed

You should see this output:

If you get this error, please read this Article: Enable putenv

10) Change CHMOD to 777 for these Directories: /storage/YouTube/storage/YouTube/cookies, and /storage/YouTube/tmp

11) Install this Chrome Extension in your Browser: Get Cookies.txt

  • To avoid invalidating the resulting cookie file by inadvertently logging out of YouTube (which will "break" your website), consider installing this extension in a little-used browser like Opera instead of Chrome.
  • In Opera, you must install this extension (to enable the installation of Chrome Extensions in Opera) before installing the Chrome "Get Cookies.txt" extension.

12) Navigate to in your Browser and log out if you are currently logged in.

13) Login in to your YouTube Account. Important!!: Never sign out of YouTube, in this Browser, because this will invalidate the "login" cookie file (and subsequently "break" your website)!

14) Click on the Get Cookies.txt Chrome Extension, Click EXPORT, and Save the Cookie file on your PC.

15) Navigate in Browser to, open your Cookie file from the previous step, Copy all Content inside, Paste it into the postCookie Form, and click Save

16) Ensure /inc/Cronjob.php is CHMOD to 755, then Create a Cron job (via SSH or aaPanel) and run it Every Minute


Cron job via SSH command

crontab -e

Add this to the Cron job tasks

*/1 * * * * php -q /FULL/PATH/TO/inc/Cronjob.php >> /FULL/PATH/TO/storage/YouTube/cookies/cron.log


Cron job via aaPanel:

17) Open app/Libraries/ApiControl.php and add Server IPs that are allowed to use the MP3 Converter Pro. (Only edit the red marked values, and do NOT use the default API Key value!)

public static $_apiAllowedIps = array(
    // df3908b67e1ad1c6f2a4b35f2af0c12e is a random String what serve as API Key.
    // You can Create your own API keys for example with a md5 Generator like
    // Type any few words or numbers in the md5 Generator and click generate.
    'df3908b67e1ad1c6f2a4b35f2af0c12e' => array(
       '', // Add here your Server IPs what you will give Access to Consume the Video API.
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Features & Benefits

Does not require FFmpeg, because the "Backend" software only performs download URL extraction...

Promotions / Discounts!

For New Customers Only! I do recommend starting with a Lifetime License, after reviewing the...

Powered by WHMCompleteSolution