host supports shell scripts--> phpinfo()?

host supports shell scripts--> phpinfo()?

by Frans-Pieter Vonck -
Number of replies: 6

Running texfilter, I get the following error message

1>The shell command
2>"/home/httpd/vhosts/scienceclass.nl/httpdocs/moodle/filter/tex/mimetex.linux" -e 3>"/home/httpd/vhosts/scienceclass.nl/httpdocs/data/filter/tex/0cfae383362bc63d7ac429a5755fef05.gif" 4>'\Large 1+1=2'
5>returned status = 126
6>Image not found!
7>Please try the debugging script

I suspect from the returned status, 126 (see 5>), that my host doesn't support shellscripts at all.
Where in the phpinfo() output can I find information to be shure of that?
See also http://www.scienceclass.nl/phpinfo.php

Greetings,
Frans-Pieter

Average of ratings: -
In reply to Frans-Pieter Vonck

Re: host supports shell scripts--> phpinfo()?

by Zbigniew Fiedorowicz -
It looks like the web server doesn't have read/execute permissions for the file "mimetex.linux".  Try the following command:
chmod 775 mimetex.linux

In reply to Zbigniew Fiedorowicz

Re: host supports shell scripts--> phpinfo()?

by Frans-Pieter Vonck -

Thanks for the reply Zbigniew.
Unfortunately changing the properties of the file did not solve my problem.
Following is the output of te debugger.
Do you have some clues?

Thanks,
Frans-Pieter Vonck

>The shell command
>"/home/httpd/vhosts/scienceclass.nl/httpdocs/moodle/filter/tex/mimetex.linux" -e >"/home/httpd/vhosts/scienceclass.nl/httpdocs/data/filter/tex/74c2b66b2d2501b77fad711fd1febcf0.gif" >'\Large f(x)=\Bigint_{-\infty}^x~e^{-t^2}dt'
>returned status = 11
>Status corresponds to bus error
>File size of mimetex >executable /home/httpd/vhosts/scienceclass.nl/httpdocs/moodle/filter/tex/mimetex.linux is >757925
>The file permissions are: 100777
>The md5 checksum of the first 16384 bytes is 42c1bf8952358d3f86feb372a42fbec9
>Image not found!

In reply to Frans-Pieter Vonck

Re: host supports shell scripts--> phpinfo()?

by Zbigniew Fiedorowicz -

Bus error usually indicates that your mimetex.linux file got damaged. Try downloading a fresh binary from http://moodle.org/download/mimetex/linux/mimetex.  Again set the file permissions to 777.

In reply to Zbigniew Fiedorowicz

new mimetex -->no positive result

by Frans-Pieter Vonck -

Replacing the mimetex-file didn't work.
I did the following

  1. Uploaded fresh mimetex. file (winftp: tried binary mode and asci mode)
  2. changed name in mimetex.linux
  3. chmod  777 of mimetex .linux

which resulted in:

(http://www.scienceclass.nl/moodle/filter/tex/texdebug.php)

The shell command
"/home/httpd/vhosts/scienceclass.nl/httpdocs/moodle/filter/tex/mimetex.linux" -e "/home/httpd/vhosts/scienceclass.nl/httpdocs/data/filter/tex/74c2b66b2d2501b77fad711fd1febcf0.gif" '\Large f(x)=\Bigint_{-\infty}^x~e^{-t^2}dt'
returned status = 11
Status corresponds to bus error
File size of mimetex executable /home/httpd/vhosts/scienceclass.nl/httpdocs/moodle/filter/tex/mimetex.linux is 757925
The file permissions are: 100777
The md5 checksum of the first 16384 bytes is 42c1bf8952358d3f86feb372a42fbec9
Image not found

How can I be shure that my hostserver executes binaries at all?

Greetings,
Frans-Pieter

In reply to Frans-Pieter Vonck

Re: new mimetex -->no positive result

by Zbigniew Fiedorowicz -

Try the other binaries:

http://moodle.org/download/mimetex/linux/glib2.3/mimetex

and

http://moodle.org/download/mimetex/linux/glib2.2/mimetex

You should definitely use binary mode for ftp, not ascii.

Also what happens when you log into the server and type the command mimetex.linux?

In reply to Zbigniew Fiedorowicz

server-side first

by Frans-Pieter Vonck -

Hello Zbigniev,

Considering your answers, I will try to solve the serverside problems first. After that I will come back to the mimetex-forum with new .......

Thanks for the advise and moodle you soon,

Frans-Pieter