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년 전
저도 매번 같은 일을 반복하는 것이 짜증나서요^^
아예 모든 과정을 스크립트로 짜서 한방에 해결한다는...
도움이 되셨다니 기분이 좋네요.^^
아예 모든 과정을 스크립트로 짜서 한방에 해결한다는...
도움이 되셨다니 기분이 좋네요.^^
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 830 |
|
19년 전 | 2175 | |
| 829 |
|
19년 전 | 1905 | |
| 828 |
|
19년 전 | 1796 | |
| 827 |
|
19년 전 | 1646 | |
| 826 |
|
19년 전 | 1844 | |
| 825 |
|
19년 전 | 1883 | |
| 824 |
|
19년 전 | 1941 | |
| 823 |
|
19년 전 | 2686 | |
| 822 |
|
19년 전 | 5310 | |
| 821 |
|
19년 전 | 1718 | |
| 820 |
|
19년 전 | 1563 | |
| 819 |
|
19년 전 | 1430 | |
| 818 |
|
19년 전 | 1588 | |
| 817 |
|
19년 전 | 1518 | |
| 816 |
|
19년 전 | 1438 | |
| 815 |
|
19년 전 | 1452 | |
| 814 |
|
19년 전 | 1376 | |
| 813 |
|
19년 전 | 1437 | |
| 812 | 19년 전 | 2808 | ||
| 811 |
pearly
|
19년 전 | 3823 | |
| 810 |
pearly
|
19년 전 | 5201 | |
| 809 |
|
19년 전 | 1369 | |
| 808 |
pearly
|
19년 전 | 4531 | |
| 807 | 19년 전 | 2974 | ||
| 806 |
|
19년 전 | 1489 | |
| 805 |
|
19년 전 | 2685 | |
| 804 |
|
19년 전 | 3612 | |
| 803 |
|
19년 전 | 1784 | |
| 802 |
|
19년 전 | 3787 | |
| 801 |
|
19년 전 | 1877 | |
| 800 | 19년 전 | 3770 | ||
| 799 | 19년 전 | 3427 | ||
| 798 | 19년 전 | 4200 | ||
| 797 | 19년 전 | 4050 | ||
| 796 |
|
19년 전 | 1886 | |
| 795 |
|
19년 전 | 1841 | |
| 794 | 19년 전 | 4269 | ||
| 793 | 19년 전 | 2666 | ||
| 792 | 19년 전 | 2539 | ||
| 791 | 19년 전 | 2390 | ||
| 790 | 19년 전 | 1967 | ||
| 789 | 19년 전 | 2578 | ||
| 788 | 19년 전 | 2197 | ||
| 787 | 19년 전 | 1842 | ||
| 786 | 19년 전 | 1971 | ||
| 785 | 19년 전 | 1440 | ||
| 784 |
|
19년 전 | 1688 | |
| 783 | 19년 전 | 2830 | ||
| 782 |
|
19년 전 | 1944 | |
| 781 | 19년 전 | 3234 | ||
| 780 | 19년 전 | 3137 | ||
| 779 |
|
19년 전 | 2241 | |
| 778 |
|
19년 전 | 1787 | |
| 777 | 19년 전 | 2829 | ||
| 776 | 19년 전 | 2897 | ||
| 775 | 19년 전 | 4008 | ||
| 774 |
|
19년 전 | 1971 | |
| 773 | 19년 전 | 2619 | ||
| 772 | 19년 전 | 2334 | ||
| 771 | 19년 전 | 3463 | ||
| 770 |
|
19년 전 | 1420 | |
| 769 | 19년 전 | 1487 | ||
| 768 | 19년 전 | 1763 | ||
| 767 | 19년 전 | 2202 | ||
| 766 | 19년 전 | 1832 | ||
| 765 | 19년 전 | 1693 | ||
| 764 |
|
19년 전 | 2100 | |
| 763 |
|
19년 전 | 2208 | |
| 762 |
|
19년 전 | 4963 | |
| 761 | 19년 전 | 2326 | ||
| 760 |
|
19년 전 | 3191 | |
| 759 | 19년 전 | 2639 | ||
| 758 |
|
19년 전 | 2405 | |
| 757 | 19년 전 | 4696 | ||
| 756 | 19년 전 | 2560 | ||
| 755 |
|
19년 전 | 2409 | |
| 754 |
|
19년 전 | 1944 | |
| 753 |
|
19년 전 | 1724 | |
| 752 |
pearly
|
19년 전 | 3360 | |
| 751 | 19년 전 | 2328 | ||
| 750 |
|
19년 전 | 6155 | |
| 749 | 19년 전 | 2018 | ||
| 748 |
|
19년 전 | 1895 | |
| 747 |
|
19년 전 | 2703 | |
| 746 |
|
19년 전 | 1807 | |
| 745 | 19년 전 | 2278 | ||
| 744 | 19년 전 | 2105 | ||
| 743 |
|
19년 전 | 3558 | |
| 742 | 19년 전 | 2570 | ||
| 741 | 19년 전 | 2738 | ||
| 740 |
|
19년 전 | 4362 | |
| 739 | 19년 전 | 3543 | ||
| 738 |
|
19년 전 | 2300 | |
| 737 | 19년 전 | 4292 | ||
| 736 | 19년 전 | 3260 | ||
| 735 |
홀로남은자
|
19년 전 | 4128 | |
| 734 |
홀로남은자
|
19년 전 | 2011 | |
| 733 |
홀로남은자
|
19년 전 | 2223 | |
| 732 | 19년 전 | 2138 | ||
| 731 | 19년 전 | 3347 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기