title: "Chevereto v4 Professional Edition Personal Image Hosting Tutorial and Troubleshooting"
date: "2023-03-20"
categories:
- "docker"
Download the Happy Edition: Link#
1. Installation of Baota Panel#
System Requirements#
PHP version 8.0 and above, MySQL version 5.x and 8.0, fileinfo, imagemagick, and exif PHP extensions.
Upload and Extract the Authorized Installation Package#
Configure Nginx Rewrite Rules#
location ~* /(importing|app|content|lib)/.*\.(po|php|lock|sql)$ {
deny all;
}
location ~ \.(jpe?g|png|gif|webp)$ {
log_not_found off;
error_page 404 /content/images/system/default/404.gif;
}
location ~* /.*\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$ {
add_header Access-Control-Allow-Origin "*";
}
location / {
index index.php;
try_files $uri $uri/ /index.php$is_args$query_string;
}
Start the Installation#
Access the domain name or IP address to start the installation.
Possible Issues#
Solution#
Disable cross-site attack protection in the Baota website directory.
2. Docker Installation (Recommended)#
Advantages#
- 🤹 Multiple website instances
- 📱 Portability
- 🌈 Easy maintenance
- 🔐 Automatic HTTPS setup
- 🎨 Customization
- 👮♂️ Enhanced security
- 🌎 CloudFlare integration
Requirements#
-
Chevereto license (paid version)
- Purchase (opens new window) New license
- License usage (opens new window) Already purchased
-
VPS
make
,unzip
,curl
, andgit
- SSH access
-
Domain name pointing to the VPS
Docker One-Click Installation#
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
Clone chevereto/docker#
git clone https://github.com/chevereto/docker.git
cd docker
Set up Cron#
This process creates a Cron file, /etc/cron.d/chevereto
, which runs background jobs for all Chevereto instances on the server.
make cron
Create Proxy#
This process creates a proxy service to handle incoming network traffic to the server. It also provides automatic security certificates for HTTPS.
Pass your email in the EMAIL_HTTPS
option.
make proxy EMAIL_HTTPS=mail@yourdomain.tld
Build Chevereto#
This process builds the container for the Chevereto application.
make image
Set up Namespace#
Create a namespace (opens new window) for each Chevereto instance you want to deploy.
Create the example
namespace for the VPS with the domain name img.chevereto.dev
(replace with your desired domain name):
make namespace NAMESPACE=example HOSTNAME=img.chevereto.dev
Start Chevereto#
Use the make spawn
command to create an instance by passing the NAMESPACE
option.
make spawn NAMESPACE=example
🎉 Congratulations, Chevereto is now running.
To create additional instances, repeat the steps in setting up the namespace for each additional website you want to generate.