【问题标题】:In scrutinizer PHP7.1 + apache2 environment crashes在scrutinizer PHP7.1 + apache2 环境崩溃
【发布时间】:2017-01-27 09:45:07
【问题描述】:

我有这个审查员环境

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 上工作?

【问题讨论】:

    标签: apache php-7.1 scrutinizer


    【解决方案1】:

    好的。所以解决方案是在 php ini 文件中禁用加速器。检查下面 yaml 中的 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]'
    

    【讨论】:

      猜你喜欢
      • 2017-02-22
      • 2015-03-18
      • 2018-11-03
      • 1970-01-01
      • 2018-05-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-26
      相关资源
      最近更新 更多