server CentOS 6 PHP 5.3 - APC(Alternative PHP Cache) 3.1.9
2012.04.15 10:08
설치
# tar xvfz APC-3.1.9.tgz # cd APC-3.1.9 # /usr/local/php/bin/phpize # ./configure --enable-apc --enable-apc-mmap --with-apxs --with-php-config=/usr/local/php/bin/php-config # make && make install Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-zts-20100525/ Installing header files: /usr/local/php/include/php/ # vi /usr/local/php/lib/php.ini extension="apc.so" apc.enabled=1 apc.shm_segments=1 apc.shm_size=128M ; 튜토리얼에는 128값을 권장하는데, M을 빠뜨리면 제 경우 쉬지않고 error_log 찍어냈습니다. apc.ttl=7200 apc.user_ttl=7200 apc.num_files_hint=1024 apc.mmap_file_mask="/tmp/apc.XXXXXX" apc.enable_cli=1 # /usr/local/apache/bin/apachectl restart
XE 1.5에서 APC만을 위한 설정이 있지만 아직은 간혹 문제가 있습니다. (현재 Core 최신버전 1.5.2.2)
files/config/db.config.inc $db_info->use_object_cache = "apc"; $db_info->use_template_cache = "apc";
관련문서
댓글 0
번호 | 제목 | 날짜 | 조회 수 |
---|---|---|---|
31 | vmware with centos 7 | 2019.08.23 | 0 |
30 | php-fpm tcp to socket | 2020.01.25 | 0 |
29 | net::ERR_CONNECTION_REFUSED | 2021.10.11 | 0 |
28 | my.cnf | 2019.04.11 | 1 |
27 | To download large files with rsync command. | 2023.05.04 | 21 |
26 | The best configuration of php7.4-fpm / 8GB | 2023.05.04 | 26 |
25 | The best configuration of php7.4-fpm / 1.5GB | 2023.05.04 | 29 |
24 | gearman 은 무엇인가? | 2023.06.21 | 383 |
23 | mysqldump from remote db to my local server. | 2023.05.04 | 421 |
22 | apache2 AllowOverride config | 2023.05.23 | 434 |
21 | yum install php 7.1 [6] | 2018.10.10 | 689 |
20 | yum install mariadb [2] | 2018.10.10 | 1145 |
19 | certbot apache multiple domain | 2019.04.10 | 1416 |
18 | yum install latest redis | 2019.03.27 | 1682 |
17 | 간단하고 강력한 xe 보안 향상 | 2014.11.08 | 1875 |
16 | netdata 이용한 centos 모니터링 | 2020.01.25 | 2435 |
15 | 스패머 알려주는 사이트 | 2014.09.11 | 2447 |
» | CentOS 6 PHP 5.3 - APC(Alternative PHP Cache) 3.1.9 | 2012.04.15 | 11369 |
13 | 자동 백업 / 삭제 (data + mysql) [1] | 2012.04.15 | 13586 |
12 | Apache Module mod_ratelimit (아파치 트래픽 제한) | 2012.05.11 | 13686 |