Moodle
  1. Moodle
  2. MDL-32320

Moodledata on samba share, tex filter and php chdir function

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.1.5
    • Fix Version/s: None
    • Component/s: Filters
    • Labels:
      None
    • Affected Branches:
      MOODLE_21_STABLE
    • Rank:
      39129

      Description

      In a windows based clustered environment, if moodledata is defined as a samba share /server/share1, in the Tex filter, the PHP chdir function fails. We've made the following changes in latex.php:
      // run latex on document
      //$command = "{$CFG->filter_tex_pathlatex} --interaction=nonstopmode $tex";
      $command = "{$CFG->filter_tex_pathlatex} -interaction=nonstopmode --aux-directory={$this>temp_dir} -output-directory={$this>temp_dir} $tex";
      //chdir( $this->temp_dir );
      And in texdebug.php,
      //chdir($latex->temp_dir);
      // step 1: latex command
      //$cmd = "$CFG->filter_tex_pathlatex --interaction=nonstopmode $tex";
      $cmd = "$CFG->filter_tex_pathlatex -interaction=nonstopmode --aux-directory=$latex>temp_dir -output-directory=$latex>temp_dir $tex";

      Using therefore the options aux-directory and output-directory.

        Activity

        Hide
        Eloy Lafuente (stronk7) added a comment -

        This issue was assigned to me automatically, however I will not be able to work on this issue in the immediate future. In order to create a truer sense of the state of this issue and to allow other developers to have chance to become involved, I am removing myself as the assignee of this issue.

        For more information, see http://docs.moodle.org/dev/Changes_to_issue_assignment

        Show
        Eloy Lafuente (stronk7) added a comment - This issue was assigned to me automatically, however I will not be able to work on this issue in the immediate future. In order to create a truer sense of the state of this issue and to allow other developers to have chance to become involved, I am removing myself as the assignee of this issue. For more information, see http://docs.moodle.org/dev/Changes_to_issue_assignment

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: