21. zendOptimizer 설치
tar xzvf ZendOptimizer-2.5.3-linux-glibc21-i386.tar.gz &&
cd ZendOptimizer-2.5.3-linux-glibc21-i386 &&
./install.sh
설치 스크립트 실행~
설치화면에서 php.ini 의 위치를 물어볼 경우 /usr/local/apache/conf 를 쓴다.
22. pdflib 설치
http://www.pdflib.com/products/pdflib/download/index.html
tar xvzf PDFlib-5.0.3-Linux.tar.gz
cd PDFlib-5.0.3-Linux
cd bind
cd php
cd php-4.2.1cd php-4.2.1 // php 4.2.0 이하 버전 사용자는 php-4.1.0을 사용한다.
mkdir /usr/local/apache/php_module // php 동적 모듈이 들어갈 디렉토리 생성
cp libpdf_php.so /usr/local/apache/php_module
여기서부터가 중요하다. 필자의 경우 php_module 이라는 곳에 동적 모듈이 들어가게 세팅해놨는데, 이는
php.ini 파일 안에서 설정하면 된다.
shell>vi /usr/local/apache/conf/php.ini
extension_dir="/usr/local/apache/php_module" // 자신이 원하는 디렉토리로 설정하면 된다.
extension=libpdf_php.so // 복사했던 모듈을 추가 시키는 부분
이상의 설정이 잘못되면 pdf 라이브러리를 사용할 수 없게 된다. 확인은 압축푼 디렉토리의 bind/php 안
의 hello.php등으로 하면 된다. 아니면 아래 소스를 복사하여 /usr/local/apache/htdocs/hello.php 를 생
성한후 웹에서 확인해보기 바란다. 이때 Adobe Acrobat Reader 등 pdf 뷰어가 있어야 된다. 이상없이
pdf 파일이 화면에 출력되면 제대로 설치 된 것이다.
<pdf 예제 확인 소스>
<?php
# $Id: hello.php,v 1.9.2.2 2003/12/17 15:38:01 tm Exp $
/* create a new PDFlib object */
$p = PDF_new();
/* open new PDF file; insert a file name to create the PDF on disk */
if (PDF_open_file($p, "") == 0) {
die("Error: " . PDF_get_errmsg($p));
}
/* This line is required to avoid problems on Japanese systems */
PDF_set_parameter($p, "hypertextencoding", "winansi");
PDF_set_info($p, "Creator", "hello.php");
PDF_set_info($p, "Author", "Rainer Schaaf");
PDF_set_info($p, "Title", "Hello world (PHP)!");
PDF_begin_page($p, 595, 842); /* start a new page */
$font = PDF_load_font($p, "Helvetica-Bold", "winansi", "");
PDF_setfont($p, $font, 24.0);
PDF_set_text_pos($p, 50, 700);
PDF_show($p, "Hello world!");
PDF_continue_text($p, "(says PHP)");
PDF_end_page($p); /* close page */
PDF_close($p); /* close PDF document */
$buf = PDF_get_buffer($p);
$len = strlen($buf);
header("Content-type: application/pdf");
header("Content-Length: $len");
header("Content-Disposition: inline; filename=hello.pdf");
print $buf;
PDF_delete($p); /* delete the PDFlib object */
?>
여기까지 끄~~읏^^
부분 1부터 부분 7까지 연결해서 사용하시면 원스톱으로 리눅스 서버가 세팅됩니다^^
대신 설치할 소스의 버젼과 그 위치를 명확하게 하셔야 에러없이 진행됩니다.(이것만 주의하심 되요)<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:32:05 Linux에서 이동 됨]</div>
tar xzvf ZendOptimizer-2.5.3-linux-glibc21-i386.tar.gz &&
cd ZendOptimizer-2.5.3-linux-glibc21-i386 &&
./install.sh
설치 스크립트 실행~
설치화면에서 php.ini 의 위치를 물어볼 경우 /usr/local/apache/conf 를 쓴다.
22. pdflib 설치
http://www.pdflib.com/products/pdflib/download/index.html
tar xvzf PDFlib-5.0.3-Linux.tar.gz
cd PDFlib-5.0.3-Linux
cd bind
cd php
cd php-4.2.1cd php-4.2.1 // php 4.2.0 이하 버전 사용자는 php-4.1.0을 사용한다.
mkdir /usr/local/apache/php_module // php 동적 모듈이 들어갈 디렉토리 생성
cp libpdf_php.so /usr/local/apache/php_module
여기서부터가 중요하다. 필자의 경우 php_module 이라는 곳에 동적 모듈이 들어가게 세팅해놨는데, 이는
php.ini 파일 안에서 설정하면 된다.
shell>vi /usr/local/apache/conf/php.ini
extension_dir="/usr/local/apache/php_module" // 자신이 원하는 디렉토리로 설정하면 된다.
extension=libpdf_php.so // 복사했던 모듈을 추가 시키는 부분
이상의 설정이 잘못되면 pdf 라이브러리를 사용할 수 없게 된다. 확인은 압축푼 디렉토리의 bind/php 안
의 hello.php등으로 하면 된다. 아니면 아래 소스를 복사하여 /usr/local/apache/htdocs/hello.php 를 생
성한후 웹에서 확인해보기 바란다. 이때 Adobe Acrobat Reader 등 pdf 뷰어가 있어야 된다. 이상없이
pdf 파일이 화면에 출력되면 제대로 설치 된 것이다.
<pdf 예제 확인 소스>
<?php
# $Id: hello.php,v 1.9.2.2 2003/12/17 15:38:01 tm Exp $
/* create a new PDFlib object */
$p = PDF_new();
/* open new PDF file; insert a file name to create the PDF on disk */
if (PDF_open_file($p, "") == 0) {
die("Error: " . PDF_get_errmsg($p));
}
/* This line is required to avoid problems on Japanese systems */
PDF_set_parameter($p, "hypertextencoding", "winansi");
PDF_set_info($p, "Creator", "hello.php");
PDF_set_info($p, "Author", "Rainer Schaaf");
PDF_set_info($p, "Title", "Hello world (PHP)!");
PDF_begin_page($p, 595, 842); /* start a new page */
$font = PDF_load_font($p, "Helvetica-Bold", "winansi", "");
PDF_setfont($p, $font, 24.0);
PDF_set_text_pos($p, 50, 700);
PDF_show($p, "Hello world!");
PDF_continue_text($p, "(says PHP)");
PDF_end_page($p); /* close page */
PDF_close($p); /* close PDF document */
$buf = PDF_get_buffer($p);
$len = strlen($buf);
header("Content-type: application/pdf");
header("Content-Length: $len");
header("Content-Disposition: inline; filename=hello.pdf");
print $buf;
PDF_delete($p); /* delete the PDFlib object */
?>
여기까지 끄~~읏^^
부분 1부터 부분 7까지 연결해서 사용하시면 원스톱으로 리눅스 서버가 세팅됩니다^^
대신 설치할 소스의 버젼과 그 위치를 명확하게 하셔야 에러없이 진행됩니다.(이것만 주의하심 되요)<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:32:05 Linux에서 이동 됨]</div>
댓글 2개
19년 전
몇년전에 리눅스 사용할때는 그래도 좀 알았는데...
요즘에는 서버 설정하기도 어렵군요.
좋은 팁 감사합니다.
요즘에는 서버 설정하기도 어렵군요.
좋은 팁 감사합니다.
19년 전
저도 매번 같은 일을 반복하는 것이 짜증나서요^^
아예 모든 과정을 스크립트로 짜서 한방에 해결한다는...
도움이 되셨다니 기분이 좋네요.^^
아예 모든 과정을 스크립트로 짜서 한방에 해결한다는...
도움이 되셨다니 기분이 좋네요.^^
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 930 | 19년 전 | 3540 | ||
| 929 |
|
19년 전 | 2698 | |
| 928 |
|
19년 전 | 3450 | |
| 927 |
|
19년 전 | 3442 | |
| 926 |
|
19년 전 | 3145 | |
| 925 | 19년 전 | 5429 | ||
| 924 |
|
19년 전 | 2166 | |
| 923 |
|
19년 전 | 2212 | |
| 922 |
|
19년 전 | 2305 | |
| 921 |
|
19년 전 | 3399 | |
| 920 | 19년 전 | 3702 | ||
| 919 |
|
19년 전 | 3741 | |
| 918 |
|
19년 전 | 2348 | |
| 917 |
|
19년 전 | 2386 | |
| 916 |
|
19년 전 | 2690 | |
| 915 | 19년 전 | 3034 | ||
| 914 | 19년 전 | 2457 | ||
| 913 | 19년 전 | 2624 | ||
| 912 | 19년 전 | 2450 | ||
| 911 | 19년 전 | 2206 | ||
| 910 | 19년 전 | 3234 | ||
| 909 | 19년 전 | 3291 | ||
| 908 | 19년 전 | 3028 | ||
| 907 |
|
19년 전 | 4865 | |
| 906 |
|
19년 전 | 2698 | |
| 905 |
|
19년 전 | 3311 | |
| 904 |
|
19년 전 | 3134 | |
| 903 |
|
19년 전 | 1979 | |
| 902 |
|
19년 전 | 3120 | |
| 901 |
|
19년 전 | 1869 | |
| 900 |
|
19년 전 | 2325 | |
| 899 |
|
19년 전 | 2397 | |
| 898 |
|
19년 전 | 3980 | |
| 897 |
|
19년 전 | 3170 | |
| 896 |
|
19년 전 | 3089 | |
| 895 |
|
19년 전 | 2532 | |
| 894 |
|
19년 전 | 2004 | |
| 893 |
|
19년 전 | 1639 | |
| 892 |
|
19년 전 | 2403 | |
| 891 |
|
19년 전 | 2326 | |
| 890 |
|
19년 전 | 1813 | |
| 889 |
|
19년 전 | 1809 | |
| 888 |
|
19년 전 | 2599 | |
| 887 |
|
19년 전 | 2577 | |
| 886 |
|
19년 전 | 1873 | |
| 885 |
|
19년 전 | 2104 | |
| 884 |
|
19년 전 | 3292 | |
| 883 |
|
19년 전 | 1949 | |
| 882 |
|
19년 전 | 2493 | |
| 881 |
|
19년 전 | 2568 | |
| 880 |
|
19년 전 | 2656 | |
| 879 |
|
19년 전 | 2935 | |
| 878 |
|
19년 전 | 2557 | |
| 877 |
|
19년 전 | 2981 | |
| 876 |
|
19년 전 | 2761 | |
| 875 |
|
19년 전 | 3518 | |
| 874 | 19년 전 | 1869 | ||
| 873 | 19년 전 | 2726 | ||
| 872 |
|
19년 전 | 2365 | |
| 871 |
|
19년 전 | 2014 | |
| 870 |
|
19년 전 | 2422 | |
| 869 |
|
19년 전 | 1869 | |
| 868 |
|
19년 전 | 5436 | |
| 867 |
|
19년 전 | 2254 | |
| 866 |
|
19년 전 | 4246 | |
| 865 |
|
19년 전 | 2289 | |
| 864 | 19년 전 | 1839 | ||
| 863 | 19년 전 | 2590 | ||
| 862 | 19년 전 | 2326 | ||
| 861 | 19년 전 | 2525 | ||
| 860 | 19년 전 | 2157 | ||
| 859 | 19년 전 | 3918 | ||
| 858 | 19년 전 | 3414 | ||
| 857 | 19년 전 | 2196 | ||
| 856 |
Power
|
19년 전 | 2105 | |
| 855 | 19년 전 | 1970 | ||
| 854 | 19년 전 | 1997 | ||
| 853 |
pearly
|
19년 전 | 4380 | |
| 852 |
pearly
|
19년 전 | 3352 | |
| 851 | 19년 전 | 2773 | ||
| 850 |
pearly
|
19년 전 | 3344 | |
| 849 |
pearly
|
19년 전 | 3002 | |
| 848 |
pearly
|
19년 전 | 2839 | |
| 847 | 19년 전 | 2344 | ||
| 846 |
|
19년 전 | 2159 | |
| 845 |
pearly
|
19년 전 | 2482 | |
| 844 | 19년 전 | 3094 | ||
| 843 | 19년 전 | 2124 | ||
| 842 |
pearly
|
19년 전 | 3117 | |
| 841 |
pearly
|
19년 전 | 3240 | |
| 840 | 19년 전 | 2915 | ||
| 839 |
|
19년 전 | 1931 | |
| 838 |
|
19년 전 | 1699 | |
| 837 |
|
19년 전 | 2313 | |
| 836 |
|
19년 전 | 2254 | |
| 835 |
|
19년 전 | 1633 | |
| 834 |
|
19년 전 | 1659 | |
| 833 |
|
19년 전 | 1562 | |
| 832 |
|
19년 전 | 2064 | |
| 831 |
|
19년 전 | 1616 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기