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년 전 | 2351 | ||
| 629 |
|
19년 전 | 2013 | |
| 628 |
|
19년 전 | 3126 | |
| 627 |
|
19년 전 | 2034 | |
| 626 |
|
19년 전 | 2066 | |
| 625 |
|
19년 전 | 1720 | |
| 624 |
|
19년 전 | 2225 | |
| 623 | 19년 전 | 2200 | ||
| 622 |
|
19년 전 | 2508 | |
| 621 |
|
19년 전 | 2912 | |
| 620 |
|
19년 전 | 2405 | |
| 619 | 19년 전 | 2474 | ||
| 618 | 19년 전 | 3515 | ||
| 617 |
|
19년 전 | 3233 | |
| 616 |
|
19년 전 | 3223 | |
| 615 |
|
19년 전 | 3041 | |
| 614 |
|
19년 전 | 2046 | |
| 613 |
|
19년 전 | 2379 | |
| 612 |
|
19년 전 | 2240 | |
| 611 |
|
19년 전 | 2087 | |
| 610 |
|
19년 전 | 2522 | |
| 609 |
|
19년 전 | 2422 | |
| 608 |
|
19년 전 | 2813 | |
| 607 | 19년 전 | 2194 | ||
| 606 | 19년 전 | 3532 | ||
| 605 | 19년 전 | 1989 | ||
| 604 | 19년 전 | 2602 | ||
| 603 | 19년 전 | 1615 | ||
| 602 |
|
19년 전 | 2837 | |
| 601 | 19년 전 | 3074 | ||
| 600 |
|
19년 전 | 2153 | |
| 599 | 19년 전 | 2003 | ||
| 598 | 19년 전 | 2482 | ||
| 597 | 19년 전 | 2389 | ||
| 596 |
|
19년 전 | 3075 | |
| 595 |
|
19년 전 | 6754 | |
| 594 | 19년 전 | 2709 | ||
| 593 | 19년 전 | 3187 | ||
| 592 |
|
19년 전 | 3091 | |
| 591 |
|
19년 전 | 1932 | |
| 590 | 19년 전 | 3368 | ||
| 589 | 19년 전 | 2210 | ||
| 588 |
|
19년 전 | 2707 | |
| 587 | 19년 전 | 2346 | ||
| 586 |
|
19년 전 | 4367 | |
| 585 | 19년 전 | 2487 | ||
| 584 | 19년 전 | 2760 | ||
| 583 |
|
19년 전 | 3523 | |
| 582 |
|
19년 전 | 3719 | |
| 581 |
|
19년 전 | 3257 | |
| 580 | 19년 전 | 2485 | ||
| 579 | 19년 전 | 3078 | ||
| 578 | 19년 전 | 3976 | ||
| 577 | 19년 전 | 3815 | ||
| 576 | 19년 전 | 1754 | ||
| 575 |
|
19년 전 | 2209 | |
| 574 |
|
19년 전 | 5403 | |
| 573 | 19년 전 | 6722 | ||
| 572 | 19년 전 | 2566 | ||
| 571 | 19년 전 | 2108 | ||
| 570 | 19년 전 | 2601 | ||
| 569 | 19년 전 | 3304 | ||
| 568 | 19년 전 | 3531 | ||
| 567 | 19년 전 | 2981 | ||
| 566 | 19년 전 | 2602 | ||
| 565 |
|
19년 전 | 4720 | |
| 564 |
|
19년 전 | 6731 | |
| 563 |
|
19년 전 | 5011 | |
| 562 |
|
19년 전 | 5951 | |
| 561 |
|
19년 전 | 2695 | |
| 560 |
|
19년 전 | 2544 | |
| 559 |
|
19년 전 | 2222 | |
| 558 |
|
19년 전 | 2302 | |
| 557 | 19년 전 | 4595 | ||
| 556 |
|
19년 전 | 4669 | |
| 555 | 19년 전 | 2509 | ||
| 554 | 19년 전 | 2175 | ||
| 553 | 19년 전 | 2526 | ||
| 552 |
|
19년 전 | 3167 | |
| 551 | 19년 전 | 2940 | ||
| 550 |
|
19년 전 | 1898 | |
| 549 |
|
19년 전 | 1958 | |
| 548 |
|
19년 전 | 3147 | |
| 547 |
|
19년 전 | 2357 | |
| 546 |
|
19년 전 | 3618 | |
| 545 |
|
19년 전 | 2549 | |
| 544 |
|
19년 전 | 1850 | |
| 543 |
|
19년 전 | 2455 | |
| 542 |
|
19년 전 | 1729 | |
| 541 |
|
19년 전 | 1410 | |
| 540 |
|
19년 전 | 1539 | |
| 539 |
|
19년 전 | 1804 | |
| 538 |
|
19년 전 | 1584 | |
| 537 |
|
19년 전 | 1781 | |
| 536 |
|
19년 전 | 1563 | |
| 535 |
|
19년 전 | 1960 | |
| 534 |
|
19년 전 | 1847 | |
| 533 |
|
19년 전 | 1449 | |
| 532 |
|
19년 전 | 1443 | |
| 531 |
|
19년 전 | 1360 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기