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년 전
저도 매번 같은 일을 반복하는 것이 짜증나서요^^
아예 모든 과정을 스크립트로 짜서 한방에 해결한다는...
도움이 되셨다니 기분이 좋네요.^^
아예 모든 과정을 스크립트로 짜서 한방에 해결한다는...
도움이 되셨다니 기분이 좋네요.^^
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 430 | 19년 전 | 4120 | ||
| 429 | 19년 전 | 3316 | ||
| 428 | 19년 전 | 4138 | ||
| 427 | 19년 전 | 3487 | ||
| 426 | 19년 전 | 3110 | ||
| 425 | 19년 전 | 3422 | ||
| 424 | 19년 전 | 2446 | ||
| 423 | 19년 전 | 2870 | ||
| 422 | 19년 전 | 2360 | ||
| 421 | 19년 전 | 3713 | ||
| 420 | 19년 전 | 4750 | ||
| 419 | 19년 전 | 3820 | ||
| 418 |
|
19년 전 | 1758 | |
| 417 | 19년 전 | 2761 | ||
| 416 | 19년 전 | 2402 | ||
| 415 | 19년 전 | 2612 | ||
| 414 | 19년 전 | 4425 | ||
| 413 |
|
19년 전 | 2617 | |
| 412 | 19년 전 | 3061 | ||
| 411 |
|
19년 전 | 2999 | |
| 410 |
|
19년 전 | 3702 | |
| 409 |
|
19년 전 | 3650 | |
| 408 |
|
19년 전 | 1867 | |
| 407 | 19년 전 | 2240 | ||
| 406 | 19년 전 | 2800 | ||
| 405 | 19년 전 | 2472 | ||
| 404 | 19년 전 | 4321 | ||
| 403 | 19년 전 | 3309 | ||
| 402 |
NeoGenesis
|
19년 전 | 4107 | |
| 401 | 19년 전 | 2615 | ||
| 400 |
|
19년 전 | 2508 | |
| 399 | 19년 전 | 2970 | ||
| 398 | 19년 전 | 2503 | ||
| 397 | 19년 전 | 2796 | ||
| 396 | 19년 전 | 2499 | ||
| 395 | 19년 전 | 3204 | ||
| 394 | 19년 전 | 1743 | ||
| 393 | 19년 전 | 3004 | ||
| 392 | 19년 전 | 2281 | ||
| 391 | 19년 전 | 2187 | ||
| 390 | 19년 전 | 2297 | ||
| 389 | 19년 전 | 2655 | ||
| 388 | 19년 전 | 2199 | ||
| 387 | 19년 전 | 4491 | ||
| 386 |
|
19년 전 | 2697 | |
| 385 |
|
19년 전 | 2504 | |
| 384 | 19년 전 | 3036 | ||
| 383 | 19년 전 | 3068 | ||
| 382 | 19년 전 | 3122 | ||
| 381 |
|
19년 전 | 2646 | |
| 380 |
|
19년 전 | 3030 | |
| 379 | 19년 전 | 2555 | ||
| 378 | 19년 전 | 2222 | ||
| 377 | 19년 전 | 2788 | ||
| 376 | 19년 전 | 2476 | ||
| 375 |
|
19년 전 | 2571 | |
| 374 | 19년 전 | 3830 | ||
| 373 | 19년 전 | 3283 | ||
| 372 | 19년 전 | 5003 | ||
| 371 |
세은아빠2
|
19년 전 | 2423 | |
| 370 | 19년 전 | 4507 | ||
| 369 | 19년 전 | 3117 | ||
| 368 | 19년 전 | 2918 | ||
| 367 | 19년 전 | 3743 | ||
| 366 | 19년 전 | 2668 | ||
| 365 | 19년 전 | 3754 | ||
| 364 | 19년 전 | 4025 | ||
| 363 | 19년 전 | 3459 | ||
| 362 | 19년 전 | 3496 | ||
| 361 | 19년 전 | 4117 | ||
| 360 |
hwatta
|
19년 전 | 2375 | |
| 359 | 19년 전 | 5119 | ||
| 358 | 19년 전 | 3667 | ||
| 357 | 19년 전 | 2612 | ||
| 356 |
sdesign1s
|
20년 전 | 2293 | |
| 355 | 20년 전 | 2770 | ||
| 354 | 20년 전 | 3035 | ||
| 353 | 20년 전 | 2804 | ||
| 352 |
|
20년 전 | 5784 | |
| 351 |
|
20년 전 | 2719 | |
| 350 |
|
20년 전 | 4305 | |
| 349 |
hwatta
|
20년 전 | 2194 | |
| 348 | 20년 전 | 7315 | ||
| 347 | 20년 전 | 2422 | ||
| 346 | 20년 전 | 3516 | ||
| 345 | 20년 전 | 4323 | ||
| 344 | 20년 전 | 2660 | ||
| 343 | 20년 전 | 3930 | ||
| 342 | 20년 전 | 3080 | ||
| 341 | 20년 전 | 4107 | ||
| 340 |
|
20년 전 | 5159 | |
| 339 |
|
20년 전 | 4246 | |
| 338 | 20년 전 | 5892 | ||
| 337 | 20년 전 | 2053 | ||
| 336 |
|
20년 전 | 3342 | |
| 335 |
|
20년 전 | 3559 | |
| 334 |
|
20년 전 | 2953 | |
| 333 |
hwatta
|
20년 전 | 2455 | |
| 332 | 20년 전 | 4666 | ||
| 331 | 20년 전 | 2290 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기