Installing LaTeX on a personal (externally hosted) web server to render images

I have seen some similar questions but I admit I'm a newbie when it comes to cgi and general server setup and need some direction. I have a personal domain hosted on yahoo.com that I would like to install LaTeX on. I would like it so that it works in the following (or similar) way. Typing

<img src="www.mysite.com/latex.cgi?{my formula}">

will create a rendered gif that I may post on other websites, mainly forums without LaTeX support where I like to help others. Only basic packages are required for my uses (at least for now), things such as Tikz are not needed.

So is this very difficult to do?

• Welcome to TeX.SX! This sounds more like a web server configuration issue that a TeX/LaTeX problem, so may be another forum is more appropriate. – Andrew Swann Oct 23 '14 at 8:45
• @AndrewSwann Do you have a suggestion where I might post this? My thought is that setting up LaTeX in this way might be too specific a question for a general server type forum – David Peterson Oct 23 '14 at 8:50
• using images for math on the web is so horrible:-) have you considered mathjax? – David Carlisle Oct 23 '14 at 8:56
• @DavidCarlisle I looked at it, but it looks like that is best for a personal blog or something else where math is rendered on a local page. I need to be able to post the images on other websites – David Peterson Oct 23 '14 at 9:00
• Does tex.stackexchange.com/q/129/15925 help? – Andrew Swann Oct 23 '14 at 9:00