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년 전 | 2336 | ||
| 629 |
|
19년 전 | 1998 | |
| 628 |
|
19년 전 | 3110 | |
| 627 |
|
19년 전 | 2015 | |
| 626 |
|
19년 전 | 2059 | |
| 625 |
|
19년 전 | 1708 | |
| 624 |
|
19년 전 | 2209 | |
| 623 | 19년 전 | 2187 | ||
| 622 |
|
19년 전 | 2497 | |
| 621 |
|
19년 전 | 2884 | |
| 620 |
|
19년 전 | 2391 | |
| 619 | 19년 전 | 2457 | ||
| 618 | 19년 전 | 3503 | ||
| 617 |
|
19년 전 | 3222 | |
| 616 |
|
19년 전 | 3210 | |
| 615 |
|
19년 전 | 3024 | |
| 614 |
|
19년 전 | 2034 | |
| 613 |
|
19년 전 | 2361 | |
| 612 |
|
19년 전 | 2228 | |
| 611 |
|
19년 전 | 2070 | |
| 610 |
|
19년 전 | 2507 | |
| 609 |
|
19년 전 | 2415 | |
| 608 |
|
19년 전 | 2803 | |
| 607 | 19년 전 | 2183 | ||
| 606 | 19년 전 | 3509 | ||
| 605 | 19년 전 | 1977 | ||
| 604 | 19년 전 | 2578 | ||
| 603 | 19년 전 | 1603 | ||
| 602 |
|
19년 전 | 2830 | |
| 601 | 19년 전 | 3069 | ||
| 600 |
|
19년 전 | 2152 | |
| 599 | 19년 전 | 1992 | ||
| 598 | 19년 전 | 2469 | ||
| 597 | 19년 전 | 2381 | ||
| 596 |
|
19년 전 | 3068 | |
| 595 |
|
19년 전 | 6745 | |
| 594 | 19년 전 | 2703 | ||
| 593 | 19년 전 | 3180 | ||
| 592 |
|
19년 전 | 3080 | |
| 591 |
|
19년 전 | 1921 | |
| 590 | 19년 전 | 3360 | ||
| 589 | 19년 전 | 2201 | ||
| 588 |
|
19년 전 | 2700 | |
| 587 | 19년 전 | 2341 | ||
| 586 |
|
19년 전 | 4353 | |
| 585 | 19년 전 | 2473 | ||
| 584 | 19년 전 | 2744 | ||
| 583 |
|
19년 전 | 3509 | |
| 582 |
|
19년 전 | 3709 | |
| 581 |
|
19년 전 | 3238 | |
| 580 | 19년 전 | 2471 | ||
| 579 | 19년 전 | 3053 | ||
| 578 | 19년 전 | 3941 | ||
| 577 | 19년 전 | 3791 | ||
| 576 | 19년 전 | 1730 | ||
| 575 |
|
19년 전 | 2195 | |
| 574 |
|
19년 전 | 5399 | |
| 573 | 19년 전 | 6704 | ||
| 572 | 19년 전 | 2553 | ||
| 571 | 19년 전 | 2101 | ||
| 570 | 19년 전 | 2598 | ||
| 569 | 19년 전 | 3284 | ||
| 568 | 19년 전 | 3511 | ||
| 567 | 19년 전 | 2979 | ||
| 566 | 19년 전 | 2590 | ||
| 565 |
|
19년 전 | 4707 | |
| 564 |
|
19년 전 | 6718 | |
| 563 |
|
19년 전 | 4983 | |
| 562 |
|
19년 전 | 5939 | |
| 561 |
|
19년 전 | 2678 | |
| 560 |
|
19년 전 | 2515 | |
| 559 |
|
19년 전 | 2212 | |
| 558 |
|
19년 전 | 2291 | |
| 557 | 19년 전 | 4586 | ||
| 556 |
|
19년 전 | 4653 | |
| 555 | 19년 전 | 2494 | ||
| 554 | 19년 전 | 2169 | ||
| 553 | 19년 전 | 2508 | ||
| 552 |
|
19년 전 | 3143 | |
| 551 | 19년 전 | 2929 | ||
| 550 |
|
19년 전 | 1886 | |
| 549 |
|
19년 전 | 1949 | |
| 548 |
|
19년 전 | 3136 | |
| 547 |
|
19년 전 | 2355 | |
| 546 |
|
19년 전 | 3609 | |
| 545 |
|
19년 전 | 2535 | |
| 544 |
|
19년 전 | 1844 | |
| 543 |
|
19년 전 | 2448 | |
| 542 |
|
19년 전 | 1715 | |
| 541 |
|
19년 전 | 1399 | |
| 540 |
|
19년 전 | 1526 | |
| 539 |
|
19년 전 | 1792 | |
| 538 |
|
19년 전 | 1570 | |
| 537 |
|
19년 전 | 1768 | |
| 536 |
|
19년 전 | 1554 | |
| 535 |
|
19년 전 | 1953 | |
| 534 |
|
19년 전 | 1839 | |
| 533 |
|
19년 전 | 1434 | |
| 532 |
|
19년 전 | 1436 | |
| 531 |
|
19년 전 | 1349 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기