Question

What's the easiest way to use my server as an image host?

Posted January 12, 2015 12.1k views

Right now I use imgur.com to host all my images, but I’d rather host them myself. While it might be nice to have some things like description fields, all I really need is the direct image link to be accessible in a web browser. What’s the easiest way to use my DigitalOcean VPS as an image host? Keeping in mind it’s running CentOS, and is one of the cheaper plans.

1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

4 answers

There is 2 ways you can do this.

1 - Create a regular site using apache or nginx. Set up a domain, set up apache or nginx with that new domain, upload images to the account folder.

2 - Second option would be to utilize a image hosting script, it will create an image hosting site just like imgur.com or flicker. There is a couple of really nice free/opensource scripts out there one of them is Chevereto chevereto newest version 3.X.X is not longer free but any 2.X.X version is and still being used by a lot of people. Here is also a link to a tutorial of how to install it. Another script that you can check out is CF Image Hosting. Both of this scripts provide you with descriptions, and other nice features.

Hope this helps. If you need further assistance let us know

Good Luck!

Can I upload images by api? how can we create api for image hosting.

Submit an Answer