【问题标题】:Is it possible to run APC with PHP-CGI?是否可以使用 PHP-CGI 运行 APC?
【发布时间】:2013-01-23 21:03:36
【问题描述】:

是否可以使用 PHP-CGI 运行 APC?我无法获取上传文件的 apc 上传值,我使用的配置是:

apc.rfc1867 On
apc.rfc1867_freq    0
apc.rfc1867_name    APC_UPLOAD_PROGRESS
apc.rfc1867_prefix  upload_
apc.rfc1867_ttl 3600

php代码:

$status = apc_fetch('upload_'.$uid); // $uid = id for the file

【问题讨论】:

标签: php fastcgi apc


【解决方案1】:

没有。 APC 在作为 CGI 运行时不起作用——它依赖于与其他进程共享数据,这仅在所有 PHP 进程一起启动时才起作用。 (仅当 PHP 作为 Apache 模块或在 FastCGI / FPM 下运行时才适用。)

【讨论】:

    猜你喜欢
    • 2011-09-25
    • 1970-01-01
    • 2010-09-15
    • 2017-02-16
    • 1970-01-01
    • 2020-05-25
    • 1970-01-01
    • 2013-01-17
    • 2011-04-10
    相关资源
    最近更新 更多