This is a very scuffed situation and I understand if you can't help me but i have a server setup that used to work where the process was
load template
fill template
compile template into .dvi with latex
use dvips to make .ps from dvi
compile .ps into .pdf