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
번호 | 제목 | 날짜 | 조회 수 |
---|---|---|---|
81 | vmware with centos 7 | 2019.08.23 | 0 |
80 | php-fpm tcp to socket | 2020.01.25 | 0 |
79 | net::ERR_CONNECTION_REFUSED | 2021.10.11 | 0 |
78 | my.cnf | 2019.04.11 | 1 |
77 | To download large files with rsync command. | 2023.05.04 | 21 |
76 | The best configuration of php7.4-fpm / 1.5GB | 2023.05.04 | 23 |
75 | The best configuration of php7.4-fpm / 8GB | 2023.05.04 | 23 |
74 | windows hardware encrypt ssd | 2024.01.23 | 227 |
73 | apache2 AllowOverride config | 2023.05.23 | 299 |
72 | php 에서 비동기 처리하는 방법 | 2023.06.22 | 309 |
71 | gearman 은 무엇인가? | 2023.06.21 | 314 |
70 | mysqldump from remote db to my local server. | 2023.05.04 | 421 |
69 | yum install php 7.1 [6] | 2018.10.10 | 687 |
68 | mysql 백업 (shell script) | 2018.10.14 | 697 |
67 | munin 설치 | 2018.10.13 | 787 |
66 | yum install mariadb [2] | 2018.10.10 | 1143 |
65 | 웹 백업 (쉘 스크립트) | 2018.10.14 | 1194 |
64 | certbot apache multiple domain | 2019.04.10 | 1416 |
63 | yum install php-apcu | 2019.03.12 | 1542 |
62 | yum install latest redis | 2019.03.27 | 1682 |