Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-16997

putenv has been disabled for security reasons

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.0.0-a1
    • ACP, Extensions
    • None

      PHP function putenv is disabled on some Servers by Default.

      The CUSTOMIZE section in ACP cannot be opened completely.
      I made a quick change in the file "root/phpbb/composer/installer.php" on line 120 as follows:  

      if (function_exists('putenv'))
      {
          putenv('COMPOSER_HOME=' . filesystem_helper::realpath($root_path) . '/store/composer');
      } else
      {
          // TODO info: putenv has been disabled for security reasons
      }
       
        

            Unassigned Unassigned
            sutrus sutrus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: