sudo su
apt update && apt upgrade
apt install apache2
systemctl status apache2
http://ip-address
apt install mariadb-server mariadb-client
mysql_secure_installation
apt install php php-mysql
nano /var/www/html/info.php
add this text in to the file:
<?php
phpinfo();
?>
http://ip-address/info.php
mysql -u root -p
CREATE DATABASE wordpress_db;
CREATE USER 'wp_user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL ON wordpress_db.* TO 'wp_user'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
Exit;
cd /tmp && wget https://wordpress.org/latest.tar.gz
tar -xvf latest.tar.gz
cp -R wordpress /var/www/html/
chown -R www-data:www-data /var/www/html/wordpress/
chmod -R 755 /var/www/html/wordpress/
mkdir /var/www/html/wordpress/wp-content/uploads
chown -R www-data:www-data /var/www/html/wordpress/wp-content/uploads/
http://server-ip/wordpress
apt install phpmyadmin php-mbstring php-gettext
Once the installation is completed, a phpMyAdmin configuration file will be added here:
/etc/apache2/conf-enabled/phpmyadmin.conf
phpenmod mbstring
systemctl restart apache2
for nextcloud:
reach download package step then:
cd /tmp && wget https://download.nextcloud.com/server/releases/nextcloud-28.0.1.zip
unzip nextcloud-28.0.1.zip
cp -R nextcloud /var/www/html/
chown -R www-data:www-data /var/www/html/nextcloud
chmod -R 755 /var/www/html/nextcloud
mkdir /jellyfin/16tb/cloud
chown -R www-data:www-data /jellyfin/16tb/cloud
chmod -R 755 /jellyfin/16tb/cloud
http://server-ip/nextcloud
nb: in /etc/exports the parameters need to be (rw,sync,root_squash,subtree_check)
sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-stable
sudo apt update && sudo apt upgrade -y
sudo apt install qbittorrent-nox
sudo adduser qbtuser
sudo usermod -s /usr/sbin/nologin qbtuser
sudo systemctl start qbittorrent-nox@qbtuser
sudo systemctl enable qbittorrent-nox@qbtuser
sudo systemctl status qbittorrent-nox@qbtuser
sudo adduser qbtuser slavy
sudo mkdir /torrents
sudo chown -R qbtuser:slavy /torrents
sudo chmod -R 775 /torrents