Skip to main content

OpenSource image hosting script – Chevereto

chevereto logo

As written in a previous article about the OpenSource image hosting scripts for your own server, Chevereto is probably the most popular of image hosting script.

It allows you to create a fancy yet simple image hosting website on your own server. Although their new release, the V3 is a commercial version, their previous 2.x series are still available on github and work like a charm.

Written in PHP with JavaScript, Chevereto will also required a MySQL Database.

Chevereto includes some interesting features such as:

– User accounts

– Drag N Drop upload

– Multi upload

– Custom short URLs

– Themes

– Content manager to allow users to manage all the uploaded images

– Multi languages

and many more.


Chevereto screenshot


Definitely worth a try.!

And here is how to install Chevereto on your own server.



I assume you already have a Linux Apache MySQL PHP server. If this is not the case, please read my previous tutorial on how to install a LAMP server.

1) Clone the latest version using git, directly in your /var/www

If you don’t have git, simply run: (Still as root)

and change the owner of the folder to the apache user:

2) Install the dependancies

– You will need php curl and php gd, in root, simply run:

– You will need the mod_rewrite

then restart apache service to update the configuration:

3) Configure chevereto with your MySQL database

If you don’t have a MySQL database, you can simply use PHPMyAdmin to create one.

To configure chevereto, you will need modify the includes/config.php file

Inside this master config file, you can set your language (EN, FR, etc…) but also your site name, private mode, storage folders and many more…

But most important for the first use will be the database configuration:

You will need to modify the lines:

with the information of your MySQL.

When done, simply save (CTRL +X).

4) Change the default string changeme to anything you want in includes/definitions.php

and change the string changeme in:

5) Go to http://YourIP/Chevereto/chevereto

If no problem, you should be able to upload your files right-away.

Next steps will be to create a virtualhost to:

1) Use SSL to connect to the service,

2) Make the URL more userfriendly, like pic.domain.tld

3) Increase the Max upload value (Default from PHP is 2mb)


Virtualhost configuration

What you will need:

1) Create a A redirection in your DNS server/registrar with pic.domain.tld to your IP

2) Have SSL certificate ready. If not you can read this tutorial. (Optional)

3) Create your virtualhost as following:

In /etc/apache2/sites-enabled/, create a file called chevereto (In root):

and paste the following content:

Adapt the content (Servername, webmaster, SSL certificate and directory, and PHPvalue set at 20mb).

When done, save the file (CTRL+X then Yes) and reload apache: (In root)

You should now be all set and ready to use chevereto!


If you want to recommend some good image hosting script, please send me a mail or simply post a comment!

5 thoughts on “OpenSource image hosting script – Chevereto

  1. I have to thank you for this fine article. I used it a week ago with success.
    Unfortunately, I had to reinstall my server with a Centos 7 OS and obviously couldn’t use this.

    I found this tutorial and installed Chevereto successfully.

    I am so happy that there are people like you writing tutorials.

    1. Hi Sam,
      Pleasure it helped.

      Rosehosting is a popular blog as well indeed. I’m happy to see I focus on Debian / Ubuntu and they focus on CentOS.
      I got regular comments from them on my blog. I should probably do the same.

  2. hi, i have another one for your blog.

    Why would I want to host my own images?

    If you own a server (even an home server) you can host your own PictShare instance so you have full control over your content and can delete images hasslefree.

    If you’re an app developer or sysadmin you can use it for a centralized image hosting. With the simple upload API you can upload images to your PictShare instance and get a nice short URL

    If you’re a blogger like myself, you can use it as storage for your images so the images will still work even if you change blog providers or servers

  3. Thank you so so so much for this tutorial! I have been looking for Chevereto installation guide for Ubuntu server for ever. Finally found it here. Other tutorials only show how to do it on Centos, it was so frustrating. This article have been very helpful.

Leave a Reply

Your email address will not be published. Required fields are marked *