This shell script allows you to:
[!IMPORTANT] The architecture and bit depth of x86_64 are required.
Minimum supported versions: Debian 12 and Ubuntu 22.04
Starting the auto installer:
Update indexes and packages
apt -y update && apt -y full-upgrade
Install GIT
apt -y install git
Clone the repository
git clone https://github.com/torrentpier/autoinstall.git
Make the installation file executable
chmod +x ./autoinstall/install.sh
Run automatic installation ```bash
Default installation (NGINX, v2.8, SSL auto)
./autoinstall/install.sh
./autoinstall/install.sh –webserver nginx –version v2.4 ./autoinstall/install.sh –webserver apache –version v2.8 ./autoinstall/install.sh –webserver caddy –version v2.4
./autoinstall/install.sh –webserver nginx –version v2.4 –email admin@example.com
./autoinstall/install.sh –webserver nginx –ssl no
./autoinstall/install.sh –php-version 8.3
./autoinstall/install.sh –dry-run
./autoinstall/install.sh –version v2.8 –manticore yes
./autoinstall/install.sh –version v2.8 –manticore no
**Available options:**
- `--webserver <nginx|apache|caddy>` - Choose web server (default: nginx)
- `--version <v2.4|v2.8>` - Choose TorrentPier version (default: v2.8)
- `--php-version <8.2|8.3|8.4>` - Choose PHP version (default: 8.4)
- `--ssl <auto|yes|no>` - Enable SSL/TLS (default: auto - enabled for domains only)
- `--email <email@example.com>` - Email for SSL certificate (required if domain is used)
- `--manticore <auto|yes|no>` - Enable Manticore Search for v2.8 (default: auto - enabled if RAM >= 4GB)
- `--dry-run` - Test mode - check requirements without installing
- `--help` - Show help message
> [!NOTE]
> install.sh always downloads the latest release.\
> If you want to run it directly, use deb.install.sh for Debian and Ubuntu.
**Running the installation script directly for debian and ubuntu**
```bash
chmod +x ./autoinstall/deb.install.sh && ./autoinstall/deb.install.sh --webserver nginx --version v2.4
If you encounter any issues during installation:
tail -100 /var/log/torrentpier_install.log
sudo systemctl status php8.4-fpm
sudo ss -tulpn | grep ':80\|:443\|:9090'
NGINX:
/etc/nginx/sites-available/00-phpmyadmin.conf
/etc/nginx/sites-available/01-torrentpier.conf
Apache:
/etc/apache2/sites-available/00-phpmyadmin.conf
/etc/apache2/sites-available/01-torrentpier.conf
Caddy:
/etc/caddy/Caddyfile
rm /etc/nginx/sites-enabled/00-phpmyadmin.conf
nginx -t
systemctl restart nginx
a2dissite 00-phpmyadmin
apache2ctl configtest
systemctl restart apache2
Edit /etc/caddy/Caddyfile
and remove the phpMyAdmin section, then:
systemctl reload caddy