# How to setup a (La)TeX-enabled server to allow visitors to submit input file and download the rendered output?

I am very interested to setup my own server like dev.baywifi.com or live.contextgarden.net.

I am using IIS web server under Windows Server 2008 R2.

Could you give me a rough idea how to setup the server and make sure it can serve multi users in parallel?

Objectives:

To create a mathematics forum that allows users to submit PSTricks codes. For LaTeX codes I will use MathJax.

• You know that I can write in the source write18{rm -fr *} or same without write18 in a \DeclareGraphicsRule. TeX isn't really secure ... – user2478 Dec 29 '10 at 18:52
• @Herbert, I can sanitize the input if I know the list of "dangerous" commands. – xport Dec 29 '10 at 18:55
• @xport: Lots of other previewer services tried that too. Most of them failed. – TH. Dec 29 '10 at 20:20
• @TH, but if I can sanitize the input I believe that it will be safe. – xport Dec 29 '10 at 20:25
• @xport: Yeah, if. Did you read the paper to see what other people tried to do? At the very least, you should try not to make their mistakes again. – TH. Dec 29 '10 at 20:30

• @xport: This is really the wrong place to ask about this. It's a simple matter of using your OS to give you a unique file name, for example the mkstemp(3) function. I really don't think this is a good idea though. – TH. Dec 25 '10 at 17:03
• @Charles: Consider \loop\iftrue\shipout\hbox{}\repeat as input. – TH. Dec 29 '10 at 20:20