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

Installer timeout if config.php doesn't exist

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.0.0-a1
    • 4.0.0-a1
    • Installation system
    • None
    • PHP 8.3

      I did a fresh clone and tried to do a new install. No file permissions have been set at this point, so none of the files or folders are writable and config.php doesn't exist. I clicked the Install tab, clicked "Install" and immediately got a "Installer detected a timeout" error.

      This is is the server response:

      {"nav":{"finished":["introduction"]}}                                                                                                                               
      {"nav":{"active":"requirements"}}
       
      <br/>
      <b>Fatal error</b>
      :  Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, false given in /var/www/html/phpbb/install/module/requirements/task/check_filesystem.php:149
      Stack trace:
      #0 /var/www/html/phpbb/install/module/requirements/task/check_filesystem.php(149): fclose(false)
      #1 /var/www/html/phpbb/install/module/requirements/task/check_filesystem.php(112): phpbb\install\module\requirements\task\check_filesystem-&gt;check_file('config.php', false)
      #2 /var/www/html/phpbb/install/module/requirements/abstract_requirements_module.php(40): phpbb\install\module\requirements\task\check_filesystem-&gt;run()
      #3 /var/www/html/phpbb/install/installer.php(220): phpbb\install\module\requirements\abstract_requirements_module-&gt;run()
      #4 /var/www/html/phpbb/install/controller/install.php(135): phpbb\install\installer-&gt;run()
      #5 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(101): phpbb\install\controller\install-&gt;phpbb\install\controller\{closure}()
      #6 /var/www/html/vendor/symfony/http-foundation/StreamedResponse.php(106): Symfony\Component\HttpKernel\HttpKernel::Symfony\Component\HttpKernel\{closure}()
      #7 /var/www/html/vendor/symfony/http-foundation/Response.php(423): Symfony\Component\HttpFoundation\StreamedResponse-&gt;sendContent()
      #8 /var/www/html/install/app.php(62): Symfony\Component\HttpFoundation\Response-&gt;send()
      #9 {main}
        thrown in <b>/var/www/html/phpbb/install/module/requirements/task/check_filesystem.php</b>
      on line <b>149</b>
      <br/>
       

      Dockerfile:

      FROM php:8.3-apache
      RUN apt-get update && apt-get install -y \
              zlib1g-dev \
              bzip2 \
              zip \
              libzip-dev \
              libsodium-dev
      RUN docker-php-ext-install mysqli
      RUN docker-php-ext-enable mysqli
      RUN docker-php-ext-install zip
      RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini"
      RUN echo "memory_limit = 1024M" >> /usr/local/etc/php/conf.d/memory.ini
      

      Creating config.php lets it proceed and then successfully shows the error messages about incorrect permissions.

            Marc Marc
            Noxwizard Patrick Webster
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: