Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Latex on apache server

  1. Sep 18, 2005 #1
    I am trying to install mimetex on my webhosts server so that I can generate latex images similar to on this website. i have to simply get the cgi (which i have to compile). The thing is the webhost's server is running apache on linux and i run windows. I downloaded a precompiled cgi package for linux and place the appropriate file in the cgi bin; it did not work. What i wanted to know is whether or not the cgi file would be valid if i compiled the cgi file in windows?
     
  2. jcsd
  3. Sep 18, 2005 #2

    dduardo

    User Avatar
    Staff Emeritus

    Works for me just fine. This is what I did:

    1) Downloaded this:

    http://www.forkosh.com/mimetex.exe/linux/mimetex.zip

    2) unzip file

    3) moved mimetex.cgi into my cgi-bin file

    4) Uncommented the following lines in httpd.conf

    <Directory /home/*/public_html/cgi-bin>
    Options ExecCGI
    SetHandler cgi-script
    </Directory>

    Step 4 will differ based on the type of configuration you have.

    I can now go to this page: http://localhost/~dduardo/cgi-bin/mimetex.cgi?x^2+y^2
    and it will display the latex picture.

    The problem I suspect you have is that they that your host doesn't allow ExecCGI. Are you getting a prompt asking you what to do with the cgi file?
     
  4. Sep 18, 2005 #3
    This the error that I am getting:

     
  5. Sep 18, 2005 #4

    dduardo

    User Avatar
    Staff Emeritus

  6. Sep 18, 2005 #5
    Finally I got it to work. The thing is, I use ws_ftp for uploading my files and the transfer mode was on "auto", something just told me to manually select binary and when i did that it got it to work. Thanks alot for the help dduardo.
     
  7. Sep 18, 2005 #6

    dduardo

    User Avatar
    Staff Emeritus

    Just a note: it doesn't look like mimetex does bound checking, so potentially someone could generate a huge random string, putting the server in a loop. This is something were modifying the source and compiling it would be helpful.
     
  8. Sep 18, 2005 #7
    I am planning on using php to control the input strings. And I only plan on short strings because I'm just using this for a transition table builder that I am writing in php.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Latex on apache server
  1. Apache and latex (Replies: 2)

  2. LaTeX in PowerPoint (Replies: 2)

  3. Latex Help (Replies: 9)

  4. LaTeX help (Replies: 2)

Loading...