How to install Chevereto image hosting for Debian 9

12th Mar 2018 Karibu

Before Instagram, image hosting scripts were quite popular to create our own image hosting website. The most popular opensource apps were Chevereto. I'm happy to see that the dev is still maintaining it!

Written in PHP, Chevereto is an opensource image hosting script that allows you to get a beautiful and features-rich website to install on your own server. They have 2 versions, a paid one and a free one. The free one is having slightly less features (Updated every 6 months instead of monthly, no social integration, no external storage support,...)

As you can see on their features page, the list is long. You will probably appreciate:

  • Mobile responsive
  • Multi homepage covers
  • Multi image upload
  • Categories and context
  • Bulk photo management
  • Multi-language Support (29 languages)
  • Privacy settings and many more.

They also have 19 ad spaces to monetize your website if you wish.

The best is to give it a try with their demo.

Now let's see how to install Chevereto on Debian 9


The installation is pretty simple and require few dependencies. First, ensure you have a LAMP server (Apache2, PHP, MySQL). If you don't have, here is how to install LAMP server on Debian 9.

1) Enable mod rewrite

Very little requirements, it usually all come with LAMP. But you will need to enable the mod rewrite. To do so, simply run:

sudo a2enmod rewrite
systemctl restart apache2

2) Download the Chevereto Installer

Inside a public folder like /var/www

cd /var/www
mkdir chevereto
cd chevereto
wget -O index.php
sudo chown -R www-data:www-data /var/www/chevereto

3) Create a dedicated Virtualhost

You probably want to use a subdomain (pic.mydomain.tld) or a dedicated domain name. The best is to go with a dedicated virtualhost to handle apache2 configurations.

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

And add

<VirtualHost *:80>

        ServerAdmin webmaster@localhost
        ServerName pic.domain.tld
        DocumentRoot /var/www/chevereto

        <Directory /var/www/chevereto>
           Options FollowSymLinks
           AllowOverride All
           Require all granted

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


Enable the configuration

sudo a2ensite chevereto

and reload your configuration

systemctl reload apache2

4) Access the web installer panel

Now simply go to the configured domain name to access the web installer. It will check your system conf and ask you if you want to go for the free or paid version. Select Free version

It will then download the latest version. Next step will be to configure your database (I use PHPMyAdmin to create a dedicated user/pass/database). And finally to create your admin account.

Once done, you will be able to go directly to your admin panel.

That's it.

Next step could be to add a SSL certificate using Let's Encrypt.


Loves to discover web-based apps to install on his own server@home and write articles about it


Add a comment