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년 전
저도 매번 같은 일을 반복하는 것이 짜증나서요^^
아예 모든 과정을 스크립트로 짜서 한방에 해결한다는...
도움이 되셨다니 기분이 좋네요.^^
아예 모든 과정을 스크립트로 짜서 한방에 해결한다는...
도움이 되셨다니 기분이 좋네요.^^
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7830 | 10년 전 | 463 | ||
| 7829 |
|
10년 전 | 649 | |
| 7828 | 10년 전 | 574 | ||
| 7827 | 10년 전 | 477 | ||
| 7826 | 10년 전 | 499 | ||
| 7825 | 10년 전 | 531 | ||
| 7824 | 10년 전 | 488 | ||
| 7823 | 10년 전 | 431 | ||
| 7822 | 10년 전 | 406 | ||
| 7821 | 10년 전 | 349 | ||
| 7820 | 10년 전 | 370 | ||
| 7819 |
|
10년 전 | 771 | |
| 7818 | 10년 전 | 430 | ||
| 7817 | 10년 전 | 609 | ||
| 7816 | 10년 전 | 448 | ||
| 7815 | 10년 전 | 644 | ||
| 7814 | 10년 전 | 479 | ||
| 7813 | 10년 전 | 434 | ||
| 7812 | 10년 전 | 444 | ||
| 7811 | 10년 전 | 420 | ||
| 7810 | 10년 전 | 625 | ||
| 7809 | 10년 전 | 555 | ||
| 7808 | 10년 전 | 435 | ||
| 7807 | 10년 전 | 446 | ||
| 7806 |
프로그래머7
|
10년 전 | 1365 | |
| 7805 | 10년 전 | 1311 | ||
| 7804 |
zahir1312
|
10년 전 | 805 | |
| 7803 |
|
10년 전 | 1406 | |
| 7802 | 10년 전 | 509 | ||
| 7801 | 10년 전 | 885 | ||
| 7800 | 10년 전 | 1112 | ||
| 7799 | 10년 전 | 594 | ||
| 7798 | 10년 전 | 541 | ||
| 7797 | 10년 전 | 562 | ||
| 7796 | 10년 전 | 399 | ||
| 7795 | 10년 전 | 551 | ||
| 7794 | 10년 전 | 592 | ||
| 7793 | 10년 전 | 1092 | ||
| 7792 | 10년 전 | 520 | ||
| 7791 | 10년 전 | 612 | ||
| 7790 | 10년 전 | 537 | ||
| 7789 |
fbastore
|
10년 전 | 1489 | |
| 7788 | 10년 전 | 593 | ||
| 7787 | 10년 전 | 450 | ||
| 7786 | 10년 전 | 657 | ||
| 7785 | 10년 전 | 630 | ||
| 7784 | 10년 전 | 694 | ||
| 7783 | 10년 전 | 513 | ||
| 7782 | 10년 전 | 541 | ||
| 7781 | 10년 전 | 938 | ||
| 7780 | 10년 전 | 849 | ||
| 7779 | 10년 전 | 799 | ||
| 7778 | 10년 전 | 393 | ||
| 7777 | 10년 전 | 506 | ||
| 7776 | 10년 전 | 502 | ||
| 7775 | 10년 전 | 437 | ||
| 7774 | 10년 전 | 648 | ||
| 7773 | 10년 전 | 405 | ||
| 7772 | 10년 전 | 780 | ||
| 7771 | 10년 전 | 437 | ||
| 7770 | 10년 전 | 674 | ||
| 7769 | 10년 전 | 435 | ||
| 7768 | 10년 전 | 656 | ||
| 7767 | 10년 전 | 1209 | ||
| 7766 | 10년 전 | 539 | ||
| 7765 | 10년 전 | 599 | ||
| 7764 |
잘살아보자
|
10년 전 | 455 | |
| 7763 |
|
10년 전 | 1506 | |
| 7762 |
Tosea
|
10년 전 | 1089 | |
| 7761 | 10년 전 | 693 | ||
| 7760 |
잘살아보자
|
10년 전 | 765 | |
| 7759 |
잘살아보자
|
10년 전 | 607 | |
| 7758 |
잘살아보자
|
10년 전 | 660 | |
| 7757 | 10년 전 | 1294 | ||
| 7756 |
ITBANK
|
10년 전 | 1291 | |
| 7755 | 10년 전 | 1945 | ||
| 7754 | 10년 전 | 1106 | ||
| 7753 | 10년 전 | 923 | ||
| 7752 | 10년 전 | 1427 | ||
| 7751 |
잘살아보자
|
10년 전 | 581 | |
| 7750 |
잘살아보자
|
10년 전 | 510 | |
| 7749 |
잘살아보자
|
10년 전 | 538 | |
| 7748 |
잘살아보자
|
10년 전 | 563 | |
| 7747 |
잘살아보자
|
10년 전 | 640 | |
| 7746 |
잘살아보자
|
10년 전 | 703 | |
| 7745 |
잘살아보자
|
10년 전 | 951 | |
| 7744 |
잘살아보자
|
10년 전 | 443 | |
| 7743 | 10년 전 | 973 | ||
| 7742 |
starbros
|
10년 전 | 867 | |
| 7741 |
잘살아보자
|
10년 전 | 710 | |
| 7740 |
잘살아보자
|
10년 전 | 600 | |
| 7739 |
잘살아보자
|
10년 전 | 488 | |
| 7738 |
잘살아보자
|
10년 전 | 565 | |
| 7737 |
잘살아보자
|
10년 전 | 543 | |
| 7736 |
잘살아보자
|
10년 전 | 564 | |
| 7735 |
잘살아보자
|
10년 전 | 901 | |
| 7734 |
잘살아보자
|
10년 전 | 456 | |
| 7733 |
잘살아보자
|
10년 전 | 566 | |
| 7732 |
잘살아보자
|
10년 전 | 731 | |
| 7731 |
잘살아보자
|
10년 전 | 656 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기