🔔 Subscribe to don't miss any update regarding Chevereto.
Collection of bash scripts to install Chevereto in any VPS (Virtual Private Server).
- PHP
- Apache HTTP Web server
- MySQL Server
- Composer
- FFmpeg
- Certbot
- ExifTool
- exiftran
- Root login to your VPS
- Run the following script(s)
Note: Ubuntu LTS 24.04 is recommended. If you run other system you may need to alter the scripts. Feel free to contribute.
The prepare.sh script install the system stack on Ubuntu.
Reboot the VPS to make sure to apply any pending kernel updates:
systemctl rebootMake sure to change 24.04 to match your Ubuntu LTS:
bash <(curl -s https://raw.githubusercontent.com/chevereto/vps/4.3/ubuntu/24.04/prepare.sh)Available 20.04, 22.04 and 24.04
This message will be shown on success:
[OK] Stack ready for Chevereto!
Note: Debian 12 is recommended. Note: Debian uses MariaDB.
The prepare.sh script install the system stack on Debian.
Reboot the VPS to make sure to apply any pending kernel updates:
systemctl rebootMake sure to change 12 to match your Debian (available 12).
bash <(curl -s https://raw.githubusercontent.com/chevereto/vps/4.3/debian/12/prepare.sh)This message will be shown on success:
[OK] Stack ready for Chevereto!
- The scripts at
common/will work under any unix-like system - Requires
curlandunzip
The new.sh script downloads Chevereto and configures Apache HTTP Web server, MySQL and CRON. Its purpose is to prepare for Chevereto Installation.
This is intended to brand new installations and it should run after prepare step as it assumes that the system stack is ready.
bash <(curl -s https://raw.githubusercontent.com/chevereto/vps/4.3/common/new.sh)On the server:
- The web root is located at
/var/www/html - The MySQL root password is saved at
/root/.mysql_password - Logs are at
/var/log/apache2
IMPORTANT:
- Secure your database by running
mysql_secure_installation
The get.sh script download and extracts Chevereto in the current working folder.
cdinto the website project folder (for example/var/www/html)- Run the following command
bash <(curl -s https://raw.githubusercontent.com/chevereto/vps/4.3/common/get.sh)The cf-remoteip.sh script syncs the known IPs for CloudFlare remote IP. This must be used if you are using CloudFlare.
Warning: If you use CloudFlare and not complete this setup your Chevereto installation won't be able to retrieve real visitors IP.
bash <(curl -s https://raw.githubusercontent.com/chevereto/vps/4.3/common/cf-remoteip.sh)- To save the above script in your VPS:
curl -f -SOJL \
--output-dir /etc/apache2 \
https://raw.githubusercontent.com/chevereto/vps/4.3/common/cf-remoteip.sh- To add the above script to CRON (cron.d) to keep these IP ranges auto updated:
cat >/etc/cron.d/cf-remoteip <<EOM
30 3 * * * /etc/apache2/cf-remoteip.sh >/dev/null 2>&1
EOMRun the following command to get automatic renewable HTTPS thanks to certbot. Mind to change example.com with the target domain(s).
certbot --apache -d example.comIf you are using www. subdomain you can add it like this:
certbot --apache -d example.com -d www.example.comThe wipe-v3-leftovers.sh script removes any previous Chevereto V3 installation leftovers from the current working folder.
bash <(curl -s https://raw.githubusercontent.com/chevereto/vps/4.3/common/wipe-v3-leftovers.sh)