Skip to content

How To Install a new Plugin

Daniel Neto edited this page Oct 4, 2024 · 13 revisions

Plugins are powerful tools that extend the capabilities of AVideo. They're simple to install - you just need to upload the zip file of the plugin. Once installed, you can easily manage your plugins, including activation and deactivation, from the Plugin Manager in your AVideo interface.

You can explore and purchase a variety of commercial plugins directly from our marketplace at https://youphp.tube/marketplace/.

How to Download the Plugin

Upon successful purchase, a download button will appear in the interface of the plugin itself. Click this button to download a zip file containing the encrypted plugin. Rest assured, even though the plugin is encrypted for security reasons and to protect intellectual property, it will work seamlessly with AVideo upon installation.

How to Install the Plugin

There are two methods to install a plugin:

Method 1: Using the Plugin Upload Button

Before using this method, ensure that the unzip application is installed on your server. You can install it using the following command:

sudo apt-get install unzip

Next, ensure the plugin directory is writable before the upload. You can do this using the following command:

chown www-data:www-data /var/www/html/AVideo/plugin/ && chmod 755 /var/www/html/AVideo/plugin/

If you need further guidance, you can watch our tutorial video here: https://tutorials.avideo.com/video/110/donwloading-and-installing-a-plugin

Method 2: Uploading the Unzipped Folder

Unzip the downloaded file and upload the resulting folder to the plugin directory on your AVideo server. Usually, this directory is /var/www/html/AVideo/plugin/.

Make sure the uploaded directory name matches the name of the file inside it. For instance, if you're uploading the 'Video Resolution Switcher' plugin, the directory structure should look like this:

VideoResolutionSwitcher 
   |_ VideoResolutionSwitcher.php
   |_ Other files ...

Addressing Permission Issues for Plugin Uploads

If you're encountering issues where nothing changes after uploading a new plugin version, this could be due to permission problems. To resolve this, you can follow these steps:

  1. Delete the existing plugin folder to ensure no conflicts with old files. For example, to remove the Notifications plugin folder, you can use the following command:

    rm -R /var/www/html/AVideo/plugin/Notifications/
  2. Ensure Apache has write permissions on the /var/www/html/AVideo/plugin/ directory. This allows the AVideo interface to upload and manage plugins properly. You can set the correct permissions by running:

    chown -R www-data:www-data /var/www/html/AVideo/plugin/
    chmod -R 755 /var/www/html/AVideo/plugin/
  3. Re-upload the plugin using the AVideo interface. Once permissions are set correctly, you should be able to download, install, and use your new plugins without any issues.

By following these steps, you can prevent permission-related issues and ensure that your plugins function as expected.

Clone this wiki locally