chevereto / vps

Collection of universal bash scripts to install Chevereto in any VPS

Home Page:https://chevereto.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chevereto VPS

đź”” Subscribe to don't miss any update regarding Chevereto.

Chevereto

Community Discord

Collection of universal bash scripts to install Chevereto in any VPS. We strongly recommend Vultr and Linode.

Instructions

  • Root login to your VPS
  • Run the following script(s)

Ubuntu

Note: Ubuntu LTS 22.04 is recommended. If you run other system you may need to alter the scripts. Feel free to contribute.

Prepare

The prepare.sh script install the system stack (PHP, Apache HTTP Web server, MySQL Server, Composer and Certbot) on Ubuntu.

Before running this script:

  • Reboot your VPS (to apply kernel updates)
  • Make sure to change 22.04 to your match your Ubuntu LTS
bash <(curl -s https://raw.githubusercontent.com/chevereto/vps/4.0/ubuntu/22.04/prepare.sh)

This message will be shown on success:

[OK] Stack ready for Chevereto!

Common

  • The scripts at common/ will work under any unix-like system
  • Requires curl and unzip

New

The new.sh script downloads Chevereto and configures Apache HTTP Web server, MySQL, cron. Its purpose is to prepare Chevereto for HTTP setup.

This is intended to brand new installations and it should run after prepare as it assumes that the system stack is ready.

bash <(curl -s https://raw.githubusercontent.com/chevereto/vps/4.0/common/new.sh)

Notes

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

Get

The get.sh script download and extracts Chevereto in the current working folder.

  • cd into the website project folder
  • Run the following command
bash <(curl -s https://raw.githubusercontent.com/chevereto/vps/4.0/common/get.sh)

Cloudflare remote IP

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 the real visitor IP.

bash <(curl -s https://raw.githubusercontent.com/chevereto/vps/4.0/common/cf-remoteip.sh)

Save the above script in your VPS and run it on cron to keep these ranges auto updated.

curl -f -SOJL \
    --output-dir /etc/apache2 \
    https://raw.githubusercontent.com/chevereto/vps/4.0/common/cf-remoteip.sh
cat >/etc/cron.d/cf-remoteip <<EOM
30 3 * * * /etc/apache2/cf-remoteip.sh >/dev/null 2>&1
EOM

HTTPS setup

Run the following command to get https with certbot. Mind to change example.com with the target domain(s).

certbot --apache -d example.com -d www.example.com

About

Collection of universal bash scripts to install Chevereto in any VPS

https://chevereto.com

License:MIT License


Languages

Language:Shell 100.0%