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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 430 | 19년 전 | 4084 | ||
| 429 | 19년 전 | 3278 | ||
| 428 | 19년 전 | 4113 | ||
| 427 | 19년 전 | 3457 | ||
| 426 | 19년 전 | 3089 | ||
| 425 | 19년 전 | 3383 | ||
| 424 | 19년 전 | 2428 | ||
| 423 | 19년 전 | 2834 | ||
| 422 | 19년 전 | 2328 | ||
| 421 | 19년 전 | 3695 | ||
| 420 | 19년 전 | 4722 | ||
| 419 | 19년 전 | 3764 | ||
| 418 |
|
19년 전 | 1720 | |
| 417 | 19년 전 | 2728 | ||
| 416 | 19년 전 | 2370 | ||
| 415 | 19년 전 | 2599 | ||
| 414 | 19년 전 | 4390 | ||
| 413 |
|
19년 전 | 2563 | |
| 412 | 19년 전 | 3022 | ||
| 411 |
|
19년 전 | 2974 | |
| 410 |
|
19년 전 | 3652 | |
| 409 |
|
19년 전 | 3611 | |
| 408 |
|
19년 전 | 1833 | |
| 407 | 19년 전 | 2199 | ||
| 406 | 19년 전 | 2759 | ||
| 405 | 19년 전 | 2428 | ||
| 404 | 19년 전 | 4288 | ||
| 403 | 19년 전 | 3286 | ||
| 402 |
NeoGenesis
|
19년 전 | 4070 | |
| 401 | 19년 전 | 2585 | ||
| 400 |
|
19년 전 | 2468 | |
| 399 | 19년 전 | 2938 | ||
| 398 | 19년 전 | 2467 | ||
| 397 | 19년 전 | 2770 | ||
| 396 | 19년 전 | 2459 | ||
| 395 | 19년 전 | 3164 | ||
| 394 | 19년 전 | 1686 | ||
| 393 | 19년 전 | 2976 | ||
| 392 | 19년 전 | 2236 | ||
| 391 | 19년 전 | 2168 | ||
| 390 | 19년 전 | 2259 | ||
| 389 | 19년 전 | 2617 | ||
| 388 | 19년 전 | 2111 | ||
| 387 | 19년 전 | 4455 | ||
| 386 |
|
19년 전 | 2666 | |
| 385 |
|
19년 전 | 2448 | |
| 384 | 19년 전 | 2961 | ||
| 383 | 19년 전 | 3034 | ||
| 382 | 19년 전 | 3087 | ||
| 381 |
|
19년 전 | 2620 | |
| 380 |
|
19년 전 | 3000 | |
| 379 | 19년 전 | 2531 | ||
| 378 | 19년 전 | 2188 | ||
| 377 | 19년 전 | 2766 | ||
| 376 | 19년 전 | 2461 | ||
| 375 |
|
19년 전 | 2541 | |
| 374 | 19년 전 | 3787 | ||
| 373 | 19년 전 | 3252 | ||
| 372 | 19년 전 | 4972 | ||
| 371 |
세은아빠2
|
19년 전 | 2396 | |
| 370 | 19년 전 | 4488 | ||
| 369 | 19년 전 | 3089 | ||
| 368 | 19년 전 | 2872 | ||
| 367 | 19년 전 | 3711 | ||
| 366 | 19년 전 | 2625 | ||
| 365 | 19년 전 | 3710 | ||
| 364 | 19년 전 | 3984 | ||
| 363 | 19년 전 | 3414 | ||
| 362 | 19년 전 | 3465 | ||
| 361 | 19년 전 | 4085 | ||
| 360 |
hwatta
|
19년 전 | 2337 | |
| 359 | 19년 전 | 5074 | ||
| 358 | 19년 전 | 3631 | ||
| 357 | 19년 전 | 2575 | ||
| 356 |
sdesign1s
|
19년 전 | 2255 | |
| 355 | 20년 전 | 2718 | ||
| 354 | 20년 전 | 3011 | ||
| 353 | 20년 전 | 2780 | ||
| 352 |
|
20년 전 | 5761 | |
| 351 |
|
20년 전 | 2682 | |
| 350 |
|
20년 전 | 4264 | |
| 349 |
hwatta
|
20년 전 | 2154 | |
| 348 | 20년 전 | 7295 | ||
| 347 | 20년 전 | 2400 | ||
| 346 | 20년 전 | 3472 | ||
| 345 | 20년 전 | 4278 | ||
| 344 | 20년 전 | 2606 | ||
| 343 | 20년 전 | 3890 | ||
| 342 | 20년 전 | 3045 | ||
| 341 | 20년 전 | 4070 | ||
| 340 |
|
20년 전 | 5101 | |
| 339 |
|
20년 전 | 4210 | |
| 338 | 20년 전 | 5833 | ||
| 337 | 20년 전 | 2017 | ||
| 336 |
|
20년 전 | 3288 | |
| 335 |
|
20년 전 | 3521 | |
| 334 |
|
20년 전 | 2901 | |
| 333 |
hwatta
|
20년 전 | 2409 | |
| 332 | 20년 전 | 4639 | ||
| 331 | 20년 전 | 2253 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기