How to Install Chevereto on Kali Linux Latest

Chevereto is a free, open-source image hosting script that allows users to create their own image, video, and file hosting websites. In this tutorial, we will walk you through the steps required to install Chevereto on Kali Linux.

Prerequisites

Before we begin, make sure you have the following software installed on your system:

Step 1: Downloading the Source Code

First, we need to download the latest version of Chevereto from the official GitHub repository. To do that, open a terminal and execute the following command:

git clone https://github.com/Chevereto/Chevereto-Free.git /var/www/chevereto

This command will clone the Chevereto repository to your local system in the directory /var/www/chevereto.

Step 2: Installing Dependencies

Chevereto has several dependencies that need to be installed before we can start using the script. To install the required dependencies, execute the following commands in your terminal:

apt-get update
apt-get install php-bcmath php7.4-gd php7.4-curl php7.4-mbstring php7.4-zip php7.4-xml -y
cd /var/www/chevereto

These commands will update the package list and install the required PHP extensions.

Step 3: Configuring Apache

Now we need to configure Apache to serve our Chevereto installation. To do that, we will create a new Apache configuration file for our site. Execute the following command to create the file:

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

Add the following content to the configuration file:

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/chevereto
    ServerName your_domain.com
    <Directory /var/www/chevereto>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Replace your_domain.com with your actual domain name. Save and close the file by pressing Ctrl+O and Ctrl+X.

Enable the new site by running the following command:

a2ensite chevereto.conf

Finally, restart Apache by executing the following command:

systemctl restart apache2

Step 4: Creating the Database

Chevereto requires a MySQL database to store its data. To create a new database for Chevereto, log in to MySQL by executing the following command:

mysql -u root -p

Enter your MySQL root password when prompted. Now, create a new database and user for Chevereto by running the following commands:

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

Replace password with a strong and secure password.

Step 5: Configuring Chevereto

Chevereto comes with a sample configuration file that needs to be customized before we can start using it. Copy the sample configuration file to the actual configuration file by executing the following command:

cp config.php.dist config.php

Now, edit the configuration file by running the following command:

nano config.php

Find the following lines in the file:

define('DB_HOST', 'localhost'); // Database host
define('DB_NAME', ''); // Database name
define('DB_USER', ''); // Database username
define('DB_PASS', ''); // Database password

Replace the empty values with your actual database credentials:

define('DB_HOST', 'localhost'); // Database host
define('DB_NAME', 'chevereto'); // Database name
define('DB_USER', 'chevereto'); // Database username
define('DB_PASS', 'password'); // Database password

Save and close the file.

Step 6: Installing Chevereto

Now that we have everything configured, we can finally install Chevereto. To install Chevereto, execute the following command:

php cli.php install

This command will start the installation process. Follow the on-screen instructions to complete the installation. At the end of the installation, Chevereto will provide you with a link to access the admin dashboard of your site.

Congratulations! You have successfully installed Chevereto on Kali Linux. You can now start using Chevereto to create your own image hosting website.

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!