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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 130 | 20년 전 | 3989 | ||
| 129 | 20년 전 | 2926 | ||
| 128 | 20년 전 | 3665 | ||
| 127 | 20년 전 | 3490 | ||
| 126 | 20년 전 | 3752 | ||
| 125 | 20년 전 | 8581 | ||
| 124 | 20년 전 | 2597 | ||
| 123 | 20년 전 | 3742 | ||
| 122 | 20년 전 | 3203 | ||
| 121 | 20년 전 | 2604 | ||
| 120 | 20년 전 | 2662 | ||
| 119 | 20년 전 | 2578 | ||
| 118 | 20년 전 | 2858 | ||
| 117 |
|
20년 전 | 3050 | |
| 116 | 20년 전 | 5300 | ||
| 115 | 20년 전 | 3915 | ||
| 114 | 20년 전 | 4963 | ||
| 113 | 20년 전 | 6206 | ||
| 112 | 20년 전 | 7319 | ||
| 111 | 20년 전 | 18427 | ||
| 110 | 20년 전 | 6870 | ||
| 109 | 20년 전 | 2870 | ||
| 108 | 20년 전 | 4136 | ||
| 107 |
prosper
|
20년 전 | 2489 | |
| 106 |
prosper
|
20년 전 | 4313 | |
| 105 |
아우겐나이스
|
20년 전 | 2907 | |
| 104 | 20년 전 | 2255 | ||
| 103 | 20년 전 | 2472 | ||
| 102 | 20년 전 | 2243 | ||
| 101 | 20년 전 | 2570 | ||
| 100 | 20년 전 | 1742 | ||
| 99 | 20년 전 | 1562 | ||
| 98 | 20년 전 | 1614 | ||
| 97 | 20년 전 | 2122 | ||
| 96 | 20년 전 | 1869 | ||
| 95 | 20년 전 | 2368 | ||
| 94 | 20년 전 | 3561 | ||
| 93 | 20년 전 | 1556 | ||
| 92 | 20년 전 | 1750 | ||
| 91 | 20년 전 | 3177 | ||
| 90 | 20년 전 | 2339 | ||
| 89 | 20년 전 | 3165 | ||
| 88 | 20년 전 | 2868 | ||
| 87 | 20년 전 | 3292 | ||
| 86 | 20년 전 | 5125 | ||
| 85 | 20년 전 | 2515 | ||
| 84 | 20년 전 | 4821 | ||
| 83 | 20년 전 | 2499 | ||
| 82 | 20년 전 | 3115 | ||
| 81 | 20년 전 | 7618 | ||
| 80 | 20년 전 | 3818 | ||
| 79 | 20년 전 | 3204 | ||
| 78 | 20년 전 | 4690 | ||
| 77 | 20년 전 | 2893 | ||
| 76 | 20년 전 | 6212 | ||
| 75 | 20년 전 | 4470 | ||
| 74 | 20년 전 | 5776 | ||
| 73 | 20년 전 | 3621 | ||
| 72 | 20년 전 | 5962 | ||
| 71 | 20년 전 | 3109 | ||
| 70 | 20년 전 | 2833 | ||
| 69 | 20년 전 | 2634 | ||
| 68 | 20년 전 | 2442 | ||
| 67 | 20년 전 | 2648 | ||
| 66 | 20년 전 | 2665 | ||
| 65 | 20년 전 | 3783 | ||
| 64 | 20년 전 | 2820 | ||
| 63 | 20년 전 | 2452 | ||
| 62 | 20년 전 | 2260 | ||
| 61 | 20년 전 | 3065 | ||
| 60 | 20년 전 | 3129 | ||
| 59 | 20년 전 | 2508 | ||
| 58 | 20년 전 | 2587 | ||
| 57 | 20년 전 | 2962 | ||
| 56 | 20년 전 | 2314 | ||
| 55 | 20년 전 | 2755 | ||
| 54 | 20년 전 | 2124 | ||
| 53 | 20년 전 | 2346 | ||
| 52 | 20년 전 | 2693 | ||
| 51 |
prosper
|
21년 전 | 2345 | |
| 50 |
prosper
|
21년 전 | 2164 | |
| 49 | 21년 전 | 2173 | ||
| 48 | 21년 전 | 2329 | ||
| 47 | 21년 전 | 1927 | ||
| 46 | 21년 전 | 1927 | ||
| 45 | 21년 전 | 2130 | ||
| 44 | 21년 전 | 2355 | ||
| 43 | 21년 전 | 4568 | ||
| 42 |
prosper
|
21년 전 | 2712 | |
| 41 |
prosper
|
21년 전 | 2110 | |
| 40 | 21년 전 | 2178 | ||
| 39 | 21년 전 | 2140 | ||
| 38 | 21년 전 | 2416 | ||
| 37 | 21년 전 | 2561 | ||
| 36 | 21년 전 | 1769 | ||
| 35 | 21년 전 | 4069 | ||
| 34 | 21년 전 | 3849 | ||
| 33 | 21년 전 | 2988 | ||
| 32 |
prosper
|
21년 전 | 2897 | |
| 31 | 21년 전 | 5272 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기