eAccelerator 설치 방법은 무엇인가요?
💡 요약 정리
- eAccelerator는 PHP 가속기 & 최적화 도구로 서버 부하를 줄이고 실행 속도를 1-10배 향상시킵니다
- ZendOptimizer와 함께 사용하거나 단독으로 사용할 수 있습니다
- 소스 다운로드 → phpize로 모듈 생성 → php.ini 설정 → 웹서버 재시작 순으로 설치합니다
- phpinfo()로 설치 완료를 확인할 수 있습니다
참조 사이트
http://eaccelerator.net다운로드 주소
http://bart.eaccelerator.net/source/설명
eAccelerator is a free open-source PHP accelerator & optimizer. It increases the performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated. It also optimizes scripts to speed up their execution. eAccelerator typically reduces server load and increases the speed of your PHP code by 1-10 times.
호환성
ZendOptimizer 와 함께 설치해서 사용해도 상관없으며, 단독으로 사용할 수도 있습니다.
설치 방법
1. 소스 다운로드 후 압축 해제
wget http://acelnmp.googlecode.com/files/eaccelerator-0.9.6.1.tar.bz2
bzip2 -d eaccelerator-0.9.6.1.tar.bz2
tar xvf eaccelerator-0.9.6.1.tar
2. 모듈 생성
cd eaccelerator-0.9.6.1
phpize
./configure
make
make install
phpize 실행 시 PATH 가 안잡혀있으면 에러가 발생할 수 있으며, 아래와 같이 실행합니다.
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make & make install
설치가 완료되면 eaccelerator.so 파일의 위치가 출력되며, extension 위치로 파일을 옮김니다
3. 캐시 디렉토리 설정
mkdir /tmp/eaccelerator
chmod 0777 /tmp/eaccelerator
4. php.ini 설정
[eAccelerator]
extension="/usr/local/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
5. phpinfo 로 확인
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with eAccelerator v0.9.6.1, Copyright (c) 2004-2013 eAccelerator, by eAccelerator
6. 아파치(웹서버) 재시작
/home/apache/bin/apachectl restart
문제가 해결되지 않았나요?
궁금하신 사항은 언제든지 1:1 문의게시판으로 문의해 주세요.
문의 시 포함 정보:
- 카페24 아이디
- 서비스 ID: 서버호스팅 서비스 ID
- PHP 버전: php -v 명령 실행 결과
- 설치 경로: Apache 및 PHP 설치 경로
- 에러 메시지: 설치 중 발생한 에러 메시지
- 문의 내용: eAccelerator 설치 관련 문의 사항