{"id":13618135,"url":"https://github.com/chevereto/vps","last_synced_at":"2025-04-14T10:31:07.360Z","repository":{"id":39686173,"uuid":"416956132","full_name":"chevereto/vps","owner":"chevereto","description":"Collection of universal bash scripts to install Chevereto in any VPS","archived":false,"fork":false,"pushed_at":"2024-12-05T16:13:18.000Z","size":120,"stargazers_count":24,"open_issues_count":2,"forks_count":4,"subscribers_count":4,"default_branch":"4.2","last_synced_at":"2024-12-05T17:20:55.747Z","etag":null,"topics":["chevereto","debian","shell-scripts","ubuntu","vps"],"latest_commit_sha":null,"homepage":"https://chevereto.com","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chevereto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-14T01:56:22.000Z","updated_at":"2024-12-05T16:13:21.000Z","dependencies_parsed_at":"2024-03-31T08:34:04.749Z","dependency_job_id":"4623cabc-346f-445d-9d54-b046956cf6ed","html_url":"https://github.com/chevereto/vps","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chevereto%2Fvps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chevereto%2Fvps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chevereto%2Fvps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chevereto%2Fvps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chevereto","download_url":"https://codeload.github.com/chevereto/vps/tar.gz/refs/heads/4.2","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248862593,"owners_count":21173837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chevereto","debian","shell-scripts","ubuntu","vps"],"created_at":"2024-08-01T20:01:55.111Z","updated_at":"2025-04-14T10:31:07.353Z","avatar_url":"https://github.com/chevereto.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# Chevereto VPS\n\n\u003e 🔔 [Subscribe](https://chevereto.com/go/newsletter) to don't miss any update regarding Chevereto.\n\n\u003cimg alt=\"Chevereto\" src=\"LOGO.svg\" width=\"100%\"\u003e\n\n[![Chevereto Docs](https://img.shields.io/badge/chevereto-docs-50C878?style=flat-square)](https://v4-docs.chevereto.com/)\n[![Chevereto Community](https://img.shields.io/badge/chevereto-community-blue?style=flat-square)](https://chevereto.com/community)\n[![Chevereto Discord](https://img.shields.io/badge/chevereto-discord-5865F2?style=flat-square)](https://chevereto.com/go/discord)\n[![Chevereto Demo](https://img.shields.io/badge/chevereto-demo-d4af37?style=flat-square)](https://demo.chevereto.com)\n\nCollection of universal bash scripts to install Chevereto in any VPS (Virtual Private Server). We strongly recommend [DigitalOcean](https://chevereto.com/go/digitalocean), [Vultr](https://chevereto.com/go/vultr) and [Linode](https://chevereto.com/go/linode).\n\n## Instructions\n\n* Root login to your VPS\n* Run the following script(s)\n\n## Ubuntu\n\n\u003e **Note**: Ubuntu LTS 24.04 is recommended. If you run other system you may need to alter the scripts. Feel free to contribute.\n\n### Prepare Ubuntu\n\nThe [prepare.sh](ubuntu/24.04/prepare.sh) script install the system stack (PHP, Apache HTTP Web server, MySQL Server, Composer, FFmpeg and Certbot) on Ubuntu.\n\nReboot the VPS to make sure to apply any pending kernel updates:\n\n```sh\nsystemctl reboot\n```\n\nMake sure to change `24.04` to match your Ubuntu LTS (available 20.04, 22.04 and 24.04).\n\n```sh\nbash \u003c(curl -s https://raw.githubusercontent.com/chevereto/vps/4.2/ubuntu/24.04/prepare.sh)\n```\n\nThis message will be shown on success:\n\n```plain\n[OK] Stack ready for Chevereto!\n```\n\n## Debian\n\n\u003e **Note**: Debian 12 is recommended.\n\n### Prepare Debian\n\nThe [prepare.sh](debian/12/prepare.sh) script install the system stack (PHP, nginx/Apache HTTP Web server, MySQL Server, Composer, FFmpeg and Certbot) on Debian.\n\nReboot the VPS to make sure to apply any pending kernel updates:\n\n```sh\nsystemctl reboot\n```\n\nMake sure to change `12` to match your Debian (available 12).\n\n```sh\nbash \u003c(curl -s https://raw.githubusercontent.com/chevereto/vps/4.2/debian/12/prepare.sh)\n```\n\nThis message will be shown on success:\n\n```plain\n[OK] Stack ready for Chevereto!\n```\n\n\n## Common\n\n* The scripts at `common/` will work under any unix-like system\n* Requires `curl` and `unzip`\n\n### New\n\nThe [new.sh](common/new.sh) script downloads Chevereto and configures Apache HTTP Web server, MySQL and CRON. Its purpose is to prepare for [Chevereto Installation](https://v4-docs.chevereto.com/application/installing/installation.html).\n\nThis is intended to brand new installations and it should run after [prepare](#prepare) as it assumes that the system stack is ready.\n\n```sh\nbash \u003c(curl -s https://raw.githubusercontent.com/chevereto/vps/4.2/common/new.sh)\n```\n\n#### Notes\n\nOn the server:\n\n* The web root is located at `/var/www/html`\n* The MySQL root password is saved at `/root/.mysql_password`\n* Logs are at `/var/log/apache2`\n\nIMPORTANT:\n\n* Secure your database by running `mysql_secure_installation`\n\n### Get\n\nThe [get.sh](common/get.sh) script download and extracts Chevereto in the **current working folder**.\n\n* `cd` into the website project folder (for example `/var/www/html`)\n* Run the following command\n\n```sh\nbash \u003c(curl -s https://raw.githubusercontent.com/chevereto/vps/4.2/common/get.sh)\n```\n\n### Cloudflare remote IP\n\nThe [cf-remoteip.sh](common/cf-remoteip.sh) script syncs the known IPs for CloudFlare remote IP. This **must** be used if you are using CloudFlare.\n\n\u003e **Warning**: If you use CloudFlare and not complete this setup your Chevereto installation won't be able to retrieve real visitors IP.\n\n```sh\nbash \u003c(curl -s https://raw.githubusercontent.com/chevereto/vps/4.2/common/cf-remoteip.sh)\n```\n\n* To save the above script in your VPS:\n\n```sh\ncurl -f -SOJL \\\n    --output-dir /etc/apache2 \\\n    https://raw.githubusercontent.com/chevereto/vps/4.2/common/cf-remoteip.sh\n```\n\n* To add the above script to CRON (cron.d) to keep these IP ranges auto updated:\n\n```sh\ncat \u003e/etc/cron.d/cf-remoteip \u003c\u003cEOM\n30 3 * * * /etc/apache2/cf-remoteip.sh \u003e/dev/null 2\u003e\u00261\nEOM\n```\n\n## HTTPS setup\n\nRun the following command to get automatic renewable HTTPS thanks to certbot. Mind to change `example.com` with the target domain(s).\n\n```sh\ncertbot --apache -d example.com\n```\n\nIf you are using `www.` subdomain you can add it like this:\n\n```sh\ncertbot --apache -d example.com -d www.example.com\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchevereto%2Fvps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchevereto%2Fvps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchevereto%2Fvps/lists"}