'PHP'에 해당되는 글 7건

  1. 2011.10.11 Zend Optimizer

Zend Optimizer

|

우선 Zend Optimizer 가 얼마나 속도를 개선해줄지 테스트하기 위해

예전 IS 홈피를 대상으로 실험해보았다.

 

파이어폭스로 웹 로딩 속도를 제보니

 

6.7s (onload: 6.69s)

6.56s (onload: 6.56s)

6.69s (onload: 6.71s)

6.34s (onload: 6.35s)

6.53s (onload: 6.54s)

6.63s (onload: 6.65s)

6.66s (onload: 6.67s)

6.49s (onload: 6.49s)

5.88s (onload: 5.95s)

7.05s (onload: 7.06s)

 

평균 : 6.567s

 

서버의 사양이 매우 좋지 않고... 홈페이지 자체가 매우 무거운것을 감안하자..

 

1. Zend Optimizer 설치(for php 5.2.x)

 

1. Zend 홈페이지로 가자

http://www.zend.com/en/

 

 

   

2. Download 메뉴

 

 

 

 

3. 리눅스용 Zend Optimizer 를 다운받자

(로그인을 해야한다)

 

 

 

 

4. 서버에 업로드 후

 

 

 

 

5. tar 압축을 풀어주도록한다

# tar -zxvf ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz

 

ZendOptimizer-3.3.9-linux-glibc23-i386/
ZendOptimizer-3.3.9-linux-glibc23-i386/md5
ZendOptimizer-3.3.9-linux-glibc23-i386/Inventory.xml
ZendOptimizer-3.3.9-linux-glibc23-i386/EULA-ZendOptimizer
ZendOptimizer-3.3.9-linux-glibc23-i386/README-ZendOptimizer
ZendOptimizer-3.3.9-linux-glibc23-i386/LICENSE
ZendOptimizer-3.3.9-linux-glibc23-i386/data/
ZendOptimizer-3.3.9-linux-glibc23-i386/data/4_3_x_comp/
ZendOptimizer-3.3.9-linux-glibc23-i386/data/4_3_x_comp/ZendOptimizer.so
ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_1_x_comp/
ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_1_x_comp/ZendOptimizer.so
ZendOptimizer-3.3.9-linux-glibc23-i386/data/4_2_x_comp/
ZendOptimizer-3.3.9-linux-glibc23-i386/data/4_2_x_comp/ZendOptimizer.so
ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_0_x_comp/
ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_0_x_comp/ZendOptimizer.so
ZendOptimizer-3.3.9-linux-glibc23-i386/data/4_4_x_comp/
ZendOptimizer-3.3.9-linux-glibc23-i386/data/4_4_x_comp/ZendOptimizer.so
ZendOptimizer-3.3.9-linux-glibc23-i386/data/poweredbyoptimizer.gif
ZendOptimizer-3.3.9-linux-glibc23-i386/data/4_2_0_comp/
ZendOptimizer-3.3.9-linux-glibc23-i386/data/4_2_0_comp/ZendOptimizer.so
ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_2_x_comp/
ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_2_x_comp/ZendOptimizer.so

 

 

 

6. 설정

 

 

 

버젼에 맞는 ZendOptimizer.so 를 php 확장 모듈 폴더에 이동시키거나

아니면 아래의 README 처럼 php.ini 설정을 하도록 하자.

(나는 php 5.3 버전이라서 여기까지..)

 

Zend Optimizer installation instructions
----------------------------------------
Important: if you are installing this product because you received a message from a web site telling you to install Zend Optimizer and you are *not* the administrator of that web site STOP!.  You do not need to install this software. Instead, contact the website's system administrator and tell them that their website is displaying an error relating to Zend Optimizer and that they need to install Zend Optimizer in order to resolve this problem.

Release Information: This update is only relevant for PHP 5.2.X although this is a complete packagethat supports all other PHP versions.

1. Extract the Zend Optimizer package.

2. Locate the ZendOptimizer.so (Unix) or ZendOptimizer.dll (Windows) file in the directory which
   corresponds to your version of PHP (4.3.x, 4.4.x, 5.0.x, 5.1.x, 5.2.x).

2. Add the following line to your php.ini file:
   Linux and Mac OS X:     zend_extension=<full_path_to_ZendOptimizer.so>
   Windows:                zend_extension_ts=<full_path_to_ZendOptimizer.dll>
   Windows non-thread safe: zend_extension=<full_path_to_ZendOptimizer.dll>
   (*) The Windows non-thread safe binary is only used with Zend Core 2.0.
 
3. Restart your Web server.

 

 

 

 

 

2. Zend Guard Loader 설치(for php 5.3.x)

 

1. Zend Guard Loader 를 다운받자

 

 

 

2. 서버에 업로드 후 압축을 풀자

# tar -zxvf ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz

 

 

3. 압축을 푼 후 해당 디렉토리로 가보면 ZendGuardLoader.so 파일이 있다.

 

 

4. 해당 파일을 php 확장 모듈 디렉토리 복사하자

(자유롭게 아무데나 복사도 된다. 어파치 php.ini 에서 절대경로로 잡아줄꺼기 때문)

 

 

5. php.ini 설정을 하자

 

 

6. 설정을 reload 하자

#service httpd reload

 

7. 설치확인

이렇게

with Zend Guard Loader v3.3 이 나오면 성공

 

 

 

 

 다시 파이어폭스로 로딩속도를 제보자!

 

6.16s (onload: 6.19s)

6.69s (onload: 6.71s)

6.95s (onload: 6.98s)

6.2s (onload: 6.23s)

6.73s (onload: 6.75s)

5.09s (onload: 5.12s)

6.58s (onload: 6.6s)

6.91s (onload: 6.93s)

7.13s (onload: 7.15s)

6.61s (onload: 6.66s)

 

평균 : 6.532s

 

'PHP' 카테고리의 다른 글

MySQL4.0とMySQL5.0の大きな違い  (0) 2010.07.08
소켓프로그램  (0) 2010.07.06
ajax(jquery) 무한 스크롤 스크롤 끝에 가면 다음 데이터 로드  (0) 2010.07.06
썸네일  (0) 2010.07.06
워터마크  (0) 2010.07.06
And
prev | 1 | 2 | 3 | 4 | ··· | 7 | next