-
Bug
-
Resolution: Fixed
-
Minor
-
4.0.0-a1
-
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->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->run()
|
#3 /var/www/html/phpbb/install/installer.php(220): phpbb\install\module\requirements\abstract_requirements_module->run()
|
#4 /var/www/html/phpbb/install/controller/install.php(135): phpbb\install\installer->run()
|
#5 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(101): phpbb\install\controller\install->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->sendContent()
|
#8 /var/www/html/install/app.php(62): Symfony\Component\HttpFoundation\Response->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.