Tutorial: Installing Chevereto on MXLinux Latest

Introduction

Chevereto is a powerful and flexible image hosting script that allows you to create your own image hosting website, similar to popular services like Imgur and Flickr. In this tutorial, we will show you how to install Chevereto on MXLinux, a popular Linux distribution.

Prerequisites

Step 1: Install Dependencies

Chevereto requires some dependencies to be installed before it can be run. To install them, run the following commands:

sudo apt-get update
sudo apt-get install -y php7.4-zip php7.4-gd php7.4-mbstring php7.4-xml mariadb-server mariadb-client

Step 2: Download Chevereto

You can download Chevereto directly from their official GitHub repository. To do so, run the following command:

git clone https://github.com/chevereto/chevereto.git /var/www/html/chevereto

This command will clone the Chevereto repository into the /var/www/html/chevereto directory. You can change this directory to any directory you prefer.

Step 3: Configure Database

Chevereto requires a database to store data. You need to create a new database and user with privileges to access it. To do this, run the following commands:

sudo mysql -u root -p

This will bring up the MySQL prompt. Run the following commands to create a new database and user:

CREATE DATABASE chevereto_db;
CREATE USER 'chevereto_user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON chevereto_db.* TO 'chevereto_user'@'localhost';
FLUSH PRIVILEGES;

Make sure to replace chevereto_db, chevereto_user, and password with your desired values.

Step 4: Configure Apache or Nginx

To configure Apache or Nginx, you need to create a new virtual host file. For Apache, create a new file in the /etc/apache2/sites-available/ directory. For example:

sudo nano /etc/apache2/sites-available/chevereto.conf

Add the following content to the file:

<VirtualHost *:80>
    ServerName your-domain.com
    DocumentRoot /var/www/html/chevereto

    <Directory /var/www/html/chevereto>
        AllowOverride All
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/chevereto_error.log
    CustomLog ${APACHE_LOG_DIR}/chevereto_access.log combined
</VirtualHost>

For Nginx, create a new file in the /etc/nginx/sites-available/ directory. For example:

sudo nano /etc/nginx/sites-available/chevereto.conf

Add the following content to the file:

server {
    listen 80;
    server_name your-domain.com;
    root /var/www/html/chevereto;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.4-fpm.sock;
    }

    access_log /var/log/nginx/chevereto_access.log;
    error_log /var/log/nginx/chevereto_error.log;
}

Make sure to replace your-domain.com with your actual domain name. After creating the virtual host file, enable it by creating a symbolic link:

sudo a2ensite chevereto.conf # For Apache
sudo ln -s /etc/nginx/sites-available/chevereto.conf /etc/nginx/sites-enabled/ # For Nginx

Then, restart Apache or Nginx to apply the changes:

sudo systemctl restart apache2 # For Apache
sudo systemctl restart nginx # For Nginx

Step 5: Install Chevereto

Open your web browser and go to your domain name. You will be redirected to the Chevereto installation page. Follow the on-screen instructions to complete the installation.

Conclusion

In this tutorial, we have shown you how to install Chevereto on MXLinux Latest. Now you can create your own image hosting website and start sharing your images with the world.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!