root@localhost rc.d]# cd /usr/local/apache_1.3.31
[root@localhost apache_1.3.31]# ./configure --prefix=/usr/local/apache
[root@localhost apache_1.3.31]# cd /usr/local/php-4.3.7
[root@localhost php-4.3.7]# ./configure --with-config-file-path=/etc \
> --with-exec-prefix=/usr/bin \
> --with-mysql=/usr/local/mysql \
> --with-apache=../apache_1.3.31(자신에게 깔려있는 버전으로 작성할 것) \
> --with-zlib-dir=/usr/lib/ \
> --with-language=korean \
> --disable-debug \
> --enable-track-vars \
> --enable-safe-mode \
> --enable-gd-native-ttf \
> --with-charset=euc-kr (mysql 버전이 4.1.0이상일 경우 : euc-kr을 euckr로 수정할 것)
root@localhost php-4.3.7]# make
[root@localhost php-4.3.7]# make install
[root@localhost php-4.3.7]# cp ./php.ini-dist /etc/php.ini
root@localhost php-4.3.7]# cd /usr/local/apache_1.3.31
[root@localhost apache_1.3.31]# ./configure --prefix=/usr/local/apache \
> --activate-module=src/modules/php4/libphp4.a \
> --enable-module=so \
> --enable-shared=max \
> --sysconfdir=/usr/local/apache/conf \
> --htdocsdir=/usr/local/apache/htdocs \
> --logfiledir=/var/log/httpd
root@localhost apache_1.3.31]# make
root@localhost apache_1.3.31]# make install
[root@localhost apache_1.3.31]# vi /usr/local/apache/conf/httpd.conf
※ 다른 활성창이 뜨면 영문 ‘i’를 친후 방향키로 확인하여 아래부분을 수정한다.
318 번째 줄에서
ServerName www.example.com → ServerName http://211.112.244.(000) ※ ()는 리눅스상에 설정하였던 본인의 ip주소
799 번째 줄에서
AddType application/x-tar .tgz
↓
AddType application/x-tar .tgz
AddType application/x-httpd-php .php .php3 .inc .ph .htm .html
AddType application/x-httpd-php-source .phps
359번째 줄에서
Options Indexes FollowSymLinks MultiViews ( Indexes삭제)
↓
Options FollowSymLinks MultiViews
입력이 완료되면 'esc'버튼을 누른후 “:”를(shift + ;) 치고 맨 하단에 “:”가 뜨면 "wq!"를 친후
enter'을 치면 다시 이전 화면으로 복귀
[root@localhost apache_1.3.31]# cp -p /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpd
[root@localhost apache_1.3.31]# /etc/rc.d/init.d/httpd start
[root@localhost apache_1.3.31]# cd /usr/local/apache/htdocs
[root@localhost htdocs]# vi test.php
※ 다른 활성창이 뜨면 영문 ‘i’를 친후 방향키로 확인
<?
phpinfo();
?>
※ 입력이 완료되면 'esc'버튼을 누른후 “:”를(shift + ;) 치고 맨 하단에 “:”가 뜨면 "wq!"를 친후
'enter'을 치면 다시 이전 화면으로 복귀한다.
위와같이 저장하고 원격에서 인터넷 익스플로를 실행하여 주소창에 아래와 같이 입력한다.
http://본인의URL/test.php 또는 http://localhost/test.php<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:32:05 Linux에서 이동 됨]</div>
[root@localhost apache_1.3.31]# ./configure --prefix=/usr/local/apache
[root@localhost apache_1.3.31]# cd /usr/local/php-4.3.7
[root@localhost php-4.3.7]# ./configure --with-config-file-path=/etc \
> --with-exec-prefix=/usr/bin \
> --with-mysql=/usr/local/mysql \
> --with-apache=../apache_1.3.31(자신에게 깔려있는 버전으로 작성할 것) \
> --with-zlib-dir=/usr/lib/ \
> --with-language=korean \
> --disable-debug \
> --enable-track-vars \
> --enable-safe-mode \
> --enable-gd-native-ttf \
> --with-charset=euc-kr (mysql 버전이 4.1.0이상일 경우 : euc-kr을 euckr로 수정할 것)
root@localhost php-4.3.7]# make
[root@localhost php-4.3.7]# make install
[root@localhost php-4.3.7]# cp ./php.ini-dist /etc/php.ini
root@localhost php-4.3.7]# cd /usr/local/apache_1.3.31
[root@localhost apache_1.3.31]# ./configure --prefix=/usr/local/apache \
> --activate-module=src/modules/php4/libphp4.a \
> --enable-module=so \
> --enable-shared=max \
> --sysconfdir=/usr/local/apache/conf \
> --htdocsdir=/usr/local/apache/htdocs \
> --logfiledir=/var/log/httpd
root@localhost apache_1.3.31]# make
root@localhost apache_1.3.31]# make install
[root@localhost apache_1.3.31]# vi /usr/local/apache/conf/httpd.conf
※ 다른 활성창이 뜨면 영문 ‘i’를 친후 방향키로 확인하여 아래부분을 수정한다.
318 번째 줄에서
ServerName www.example.com → ServerName http://211.112.244.(000) ※ ()는 리눅스상에 설정하였던 본인의 ip주소
799 번째 줄에서
AddType application/x-tar .tgz
↓
AddType application/x-tar .tgz
AddType application/x-httpd-php .php .php3 .inc .ph .htm .html
AddType application/x-httpd-php-source .phps
359번째 줄에서
Options Indexes FollowSymLinks MultiViews ( Indexes삭제)
↓
Options FollowSymLinks MultiViews
입력이 완료되면 'esc'버튼을 누른후 “:”를(shift + ;) 치고 맨 하단에 “:”가 뜨면 "wq!"를 친후
enter'을 치면 다시 이전 화면으로 복귀
[root@localhost apache_1.3.31]# cp -p /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpd
[root@localhost apache_1.3.31]# /etc/rc.d/init.d/httpd start
[root@localhost apache_1.3.31]# cd /usr/local/apache/htdocs
[root@localhost htdocs]# vi test.php
※ 다른 활성창이 뜨면 영문 ‘i’를 친후 방향키로 확인
<?
phpinfo();
?>
※ 입력이 완료되면 'esc'버튼을 누른후 “:”를(shift + ;) 치고 맨 하단에 “:”가 뜨면 "wq!"를 친후
'enter'을 치면 다시 이전 화면으로 복귀한다.
위와같이 저장하고 원격에서 인터넷 익스플로를 실행하여 주소창에 아래와 같이 입력한다.
http://본인의URL/test.php 또는 http://localhost/test.php<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:32:05 Linux에서 이동 됨]</div>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 630 | 19년 전 | 2347 | ||
| 629 |
|
19년 전 | 2008 | |
| 628 |
|
19년 전 | 3120 | |
| 627 |
|
19년 전 | 2030 | |
| 626 |
|
19년 전 | 2066 | |
| 625 |
|
19년 전 | 1718 | |
| 624 |
|
19년 전 | 2221 | |
| 623 | 19년 전 | 2195 | ||
| 622 |
|
19년 전 | 2508 | |
| 621 |
|
19년 전 | 2908 | |
| 620 |
|
19년 전 | 2404 | |
| 619 | 19년 전 | 2467 | ||
| 618 | 19년 전 | 3512 | ||
| 617 |
|
19년 전 | 3230 | |
| 616 |
|
19년 전 | 3219 | |
| 615 |
|
19년 전 | 3035 | |
| 614 |
|
19년 전 | 2043 | |
| 613 |
|
19년 전 | 2376 | |
| 612 |
|
19년 전 | 2237 | |
| 611 |
|
19년 전 | 2082 | |
| 610 |
|
19년 전 | 2516 | |
| 609 |
|
19년 전 | 2419 | |
| 608 |
|
19년 전 | 2808 | |
| 607 | 19년 전 | 2193 | ||
| 606 | 19년 전 | 3526 | ||
| 605 | 19년 전 | 1988 | ||
| 604 | 19년 전 | 2596 | ||
| 603 | 19년 전 | 1609 | ||
| 602 |
|
19년 전 | 2833 | |
| 601 | 19년 전 | 3074 | ||
| 600 |
|
19년 전 | 2153 | |
| 599 | 19년 전 | 1999 | ||
| 598 | 19년 전 | 2480 | ||
| 597 | 19년 전 | 2389 | ||
| 596 |
|
19년 전 | 3073 | |
| 595 |
|
19년 전 | 6751 | |
| 594 | 19년 전 | 2707 | ||
| 593 | 19년 전 | 3184 | ||
| 592 |
|
19년 전 | 3087 | |
| 591 |
|
19년 전 | 1930 | |
| 590 | 19년 전 | 3363 | ||
| 589 | 19년 전 | 2207 | ||
| 588 |
|
19년 전 | 2706 | |
| 587 | 19년 전 | 2343 | ||
| 586 |
|
19년 전 | 4361 | |
| 585 | 19년 전 | 2486 | ||
| 584 | 19년 전 | 2754 | ||
| 583 |
|
19년 전 | 3522 | |
| 582 |
|
19년 전 | 3717 | |
| 581 |
|
19년 전 | 3250 | |
| 580 | 19년 전 | 2483 | ||
| 579 | 19년 전 | 3069 | ||
| 578 | 19년 전 | 3968 | ||
| 577 | 19년 전 | 3810 | ||
| 576 | 19년 전 | 1743 | ||
| 575 |
|
19년 전 | 2208 | |
| 574 |
|
19년 전 | 5402 | |
| 573 | 19년 전 | 6714 | ||
| 572 | 19년 전 | 2562 | ||
| 571 | 19년 전 | 2104 | ||
| 570 | 19년 전 | 2601 | ||
| 569 | 19년 전 | 3299 | ||
| 568 | 19년 전 | 3526 | ||
| 567 | 19년 전 | 2981 | ||
| 566 | 19년 전 | 2598 | ||
| 565 |
|
19년 전 | 4716 | |
| 564 |
|
19년 전 | 6726 | |
| 563 |
|
19년 전 | 5001 | |
| 562 |
|
19년 전 | 5948 | |
| 561 |
|
19년 전 | 2690 | |
| 560 |
|
19년 전 | 2536 | |
| 559 |
|
19년 전 | 2220 | |
| 558 |
|
19년 전 | 2299 | |
| 557 | 19년 전 | 4593 | ||
| 556 |
|
19년 전 | 4666 | |
| 555 | 19년 전 | 2502 | ||
| 554 | 19년 전 | 2175 | ||
| 553 | 19년 전 | 2523 | ||
| 552 |
|
19년 전 | 3160 | |
| 551 | 19년 전 | 2937 | ||
| 550 |
|
19년 전 | 1896 | |
| 549 |
|
19년 전 | 1955 | |
| 548 |
|
19년 전 | 3142 | |
| 547 |
|
19년 전 | 2356 | |
| 546 |
|
19년 전 | 3614 | |
| 545 |
|
19년 전 | 2543 | |
| 544 |
|
19년 전 | 1848 | |
| 543 |
|
19년 전 | 2453 | |
| 542 |
|
19년 전 | 1728 | |
| 541 |
|
19년 전 | 1404 | |
| 540 |
|
19년 전 | 1533 | |
| 539 |
|
19년 전 | 1801 | |
| 538 |
|
19년 전 | 1581 | |
| 537 |
|
19년 전 | 1778 | |
| 536 |
|
19년 전 | 1560 | |
| 535 |
|
19년 전 | 1958 | |
| 534 |
|
19년 전 | 1843 | |
| 533 |
|
19년 전 | 1445 | |
| 532 |
|
19년 전 | 1442 | |
| 531 |
|
19년 전 | 1357 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기