php on cims web site

Alec Jacobson

March 30, 2010

weblog/

Cims has super funny permission settings on its public_html folders. I have a LaTeX in browser running there which is a very simple script. The real trouble was setting up the permissions. Here's the permissions of the containing folder, latex-in-browser/:
drwx---rwx   2 jacobson asj237        21 Mar 30 10:33 latex-in-browser
And of the relevant php files, latex-in-browser/index.php and latex-in-browser/typeset.php:
-rwx---r-x   1 jacobson asj237      4203 Feb  6 00:47 latex-in-browser/index.php
-rwx---r-x   1 jacobson asj237       795 Mar 30 10:33 latex-in-browser/typeset.php
Another thing that I found was the command in my typeset.php script:
  $output=`pdflatex -interaction nonstopmode -halt-on-error $texFile`;
was not being executed. But when I did
which pdflatex
and found the full path to pdflatex. Then
  $output=`[insert/full/path/to]pdflatex -interaction nonstopmode -halt-on-error $texFile`;
worked fine.