Skip to content

How to install LAMP, FFMPEG and Git on a fresh Debian 10.x for AVideo Platform version 10.8 or newer

akhilleusuggo edited this page May 2, 2021 · 5 revisions

Tutorial on How to Install AVideo On Debian 10.x


Installation In One line Copy/Past

Installing requirements for AVideo + AVideo-Encoder ( LAMP, FFMPEG , Git )

sudo apt-get install -y apache2 php libapache2-mod-php php-mysql php-curl php-gd php-intl php-mbstring php-gettext php-xml php-zip default-mysql-server default-mysql-client ffmpeg git libimage-exiftool-perl nano iputils-ping && cd /var/www/html && sudo git clone https://github.com/WWBN/AVideo.git && cd /var/www/html && sudo git clone https://github.com/WWBN/AVideo-Encoder.git && sudo echo "ServerName localhost" >> /etc/apache2/apache2.conf && sudo service apache2 restart && sudo apt-get install -y python curl && 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 && sudo a2enmod headers && sudo service apache2 restart && sudo service mysql start

Note: If you're running this copy/past again on the same installation for any reason, remember to remove sudo echo "ServerName localhost" >> /etc/apache2/apache2.conf . Don't duplicate this line to avoid errors.


Set your MySQL root password.

sudo mysql_secure_installation

  • Output and procedure :
  1. Enter current password for root (enter for none): Press Enter

  2. Set root password? [Y/n] Y

  3. New password: Enter your new password

  4. Re-enter new password: Same as above

  5. Remove anonymous users? [Y/n] Y

  6. Disallow root login remotely? [Y/n] Y

  7. Remove test database and access to it? [Y/n] Y

  8. Reload privilege tables now? [Y/n] Y

All done! If you've completed all of the above steps, your MariaDB installation should now be secure.

IF the above method doesn't work for some reason, check a guide for mysql debian installation. Quick walk

sudo service mysql stop

sudo mysqld_safe --skip-grant-tables --skip-networking &

Press Ctrl+C to keep using terminal

mysql -u root

FLUSH PRIVILEGES;

ALTER USER 'root'@'localhost' IDENTIFIED BY 'NEWPASSWORD';

exit

sudo killall -9 mysqld

sudo service mysql restart

Done


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/> OR create a new block for <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>

Restart apache2 after

sudo /etc/init.d/apache2 restart

Done

Clone this wiki locally