簡體   English   中英

無法為PHP配置APC

[英]Can't configure APC for PHP

我的新專用服務器出現了一個非常奇怪的問題。 它已經安裝了Plesk 11,我正在嘗試在其中安裝APC。 一切正常,我可以在phpinfo()上看到APC配置,但是我無法對其進行配置! 我正在嘗試各種可能的方法,但phpinfo中顯示的配置不會更改。 它沒有顯示apc.ini配置文件已加載到其他ini文件中,但是如果我在文件中注釋extension=apc.so行,則APC會關閉。

這是我的apc.ini文件:

[APC]
extension=apc.so

apc.enabled = 1    # Turn APC cache on
apc.optimization  = 0    # Experimental keep off
apc.shm_segments = 1    # Shared memory segments
apc.shm_size = 256M  # Max shared memory dependent on OS
apc.ttl = 7200
apc.user_ttl  = 7200
apc.num_files_hint = 1024
apc.mmap_file_mask = /tmp/apc.XXXXXX
apc.enable_cli = 1 # Allow command line php to function
apc.cache_by_default  = 1 # Enabled, 0 for filters
apc.max_file_size = 10M # Maximum cached file size
apc.stat = 1 # 1 for dev, 0 for production, whether the source file is checke$
#apc.include_once_override = 1 # Use PHP5.3+ for include_once optimization

在此先感謝您,我的英語不好,

維尼修斯

哦,我的壞。 ini文件中的注釋不應與#一起使用,而應與;一起使用; 真的對不起。 現在,它就像一種魅力。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM