Uploaded image for project: 'Islandora'
  1. Islandora
  2. ISLANDORA-1403

PHP and Apache2 Recommended Settings

    Details

    • Type: Documentation
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 7.x-1.4, 7.x-1.5
    • Fix Version/s: 7.x-1.6
    • Component/s: BagIt
    • Labels:
      None
    • Sprint:
      Islandora 7.x-1.6 Sprint 01

      Description

      I had already set PHP CLI's php.ini to 'max_input_time = -1', which takes care of command-line originating BagIt operations, ex: command-line batch ingest with "Create Bag on object ingest".

      Today our Metadata Librarian was replacing some MODS via the web-interface, which activates our chosen option "Create Bag on object modification".

      I took notice of some bags apparently not finishing properly:

      700421650 Aug 25 12:28 bag-uncc-uncc_82.zip.uC5C3m
      136452098 Aug 25 12:28 bag-uncc-uncc_97.zip.goy3OR
      680425772 Aug 25 12:37 bag-uncc-uncc_89.zip.vyZA0X
      355497930 Aug 25 13:18 bag-uncc-uncc_83.zip.FUZFbr
      123869903 Aug 25 13:29 bag-uncc-uncc_81.zip.wZvxE2
      

      ...so I went looking in my PHP error log and found:

      [19-Aug-2015 12:26:33 America/New_York] PHP Fatal error:  Maximum execution time of 0 seconds exceeded in /.../sites/all/libraries/BagItPHP/lib/bagit_utils.php on line 444
      [19-Aug-2015 13:37:38 America/New_York] PHP Fatal error:  Maximum execution time of 0 seconds exceeded in /.../sites/all/libraries/BagItPHP/lib/bagit_utils.php on line 444
      [19-Aug-2015 15:41:23 America/New_York] PHP Fatal error:  Maximum execution time of 0 seconds exceeded in /.../sites/all/libraries/BagItPHP/lib/bagit_manifest.php on line 192
      [19-Aug-2015 15:48:48 America/New_York] PHP Fatal error:  Maximum execution time of 0 seconds exceeded in /.../sites/all/libraries/BagItPHP/lib/bagit.php on line 438
      [25-Aug-2015 12:28:23 America/New_York] PHP Fatal error:  Maximum execution time of 0 seconds exceeded in /.../sites/all/libraries/BagItPHP/lib/bagit_utils.php on line 444
      [25-Aug-2015 12:28:43 America/New_York] PHP Fatal error:  Maximum execution time of 0 seconds exceeded in /.../sites/all/libraries/BagItPHP/lib/bagit_utils.php on line 444
      [25-Aug-2015 12:37:28 America/New_York] PHP Fatal error:  Maximum execution time of 0 seconds exceeded in /.../sites/all/libraries/BagItPHP/lib/bagit_utils.php on line 444
      [25-Aug-2015 13:18:55 America/New_York] PHP Fatal error:  Maximum execution time of 0 seconds exceeded in /.../sites/all/libraries/BagItPHP/lib/bagit_utils.php on line 444
      [25-Aug-2015 13:29:01 America/New_York] PHP Fatal error:  Maximum execution time of 0 seconds exceeded in /.../sites/all/libraries/BagItPHP/lib/bagit_utils.php on line 444
      

      The web-interface utilizes the Apache2 specific php.ini. So I've now set the Apache2 specific php.ini to:
      'max_input_time = -1'

      I'm also setting Apache's apache2.conf TimeOut value to Timeout 86400; even the largest bag should be finished after a day (I would hope).

      In summary, in an effort to eliminate the errors and ensure success, in both Apache2's and CLI's php.ini's:

      max_execution_time = 0
      max_input_time = -1
      

      ...and in Apache2's apache2.conf:

      Timeout 86400
      

        Attachments

          Activity

            People

            • Assignee:
              mmiguez Matthew Miguez
              Reporter:
              bradspry Brad Spry
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: