-
Notifications
You must be signed in to change notification settings - Fork 972
How to install LAMP, FFMPEG and Git on a fresh Debian 10.x for AVideo Platform version 10.8 or newer
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.
sudo mysql_secure_installation
- Output and procedure :
-
Enter current password for root (enter for none):
Press Enter
-
Set root password? [Y/n]
Y
-
New password:
Enter your new password
-
Re-enter new password:
Same as above
-
Remove anonymous users? [Y/n]
Y
-
Disallow root login remotely? [Y/n]
Y
-
Remove test database and access to it? [Y/n]
Y
-
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
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