在scrutinizer PHP7.1 + apache2环境崩溃

时间:2017-01-27 09:45:07

标签: apache php-7.1 scrutinizer

我有这个审查环境

build:
    environment:
        php: '7.1'
        node: '4.2.2'
        selenium:
            version: '2.53'
        hosts:
            domainselenium: '127.0.0.1'
            domainweb.docker: '127.0.0.1'
        apache2:
            modules: ['rewrite', 'ssl', 'macro', 'headers']
            sites:
                domain:
                    web_root: 'web/'
                    host: 'domain.docker'
                    rules:
                        - 'RewriteCond %{REQUEST_FILENAME} !-f'
                        - 'RewriteRule ^(.*)$ app_test.php/$1 [QSA,L]'

但是,审核程序会给我Configuring Apache2错误。如果我使用PHP'7.0'一切正常。对我来说设置似乎没问题,但也许你有任何想法如何让它在php7.1上运行?

1 个答案:

答案 0 :(得分:1)

确定。因此解决方案是在php ini文件中禁用加速器。查看yaml bellow中的php环境部分。

build:
    environment:
        php:
            version: '7.1'
            ini:
                'apc.enable_cli': '1'
                'apc.enabled': '0'
        node: '4.2.2'
        selenium:
            version: '2.53'
        hosts:
            domainselenium: '127.0.0.1'
            domainweb.docker: '127.0.0.1'
        apache2:
            modules: ['rewrite', 'ssl', 'macro', 'headers']
            sites:
                domain:
                    web_root: 'web/'
                    host: 'domain.docker'
                    rules:
                        - 'RewriteCond %{REQUEST_FILENAME} !-f'
                        - 'RewriteRule ^(.*)$ app_test.php/$1 [QSA,L]'