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년 전 | 4099 | ||
| 429 | 19년 전 | 3301 | ||
| 428 | 19년 전 | 4132 | ||
| 427 | 19년 전 | 3471 | ||
| 426 | 19년 전 | 3104 | ||
| 425 | 19년 전 | 3406 | ||
| 424 | 19년 전 | 2438 | ||
| 423 | 19년 전 | 2862 | ||
| 422 | 19년 전 | 2351 | ||
| 421 | 19년 전 | 3708 | ||
| 420 | 19년 전 | 4740 | ||
| 419 | 19년 전 | 3800 | ||
| 418 |
|
19년 전 | 1748 | |
| 417 | 19년 전 | 2747 | ||
| 416 | 19년 전 | 2390 | ||
| 415 | 19년 전 | 2606 | ||
| 414 | 19년 전 | 4410 | ||
| 413 |
|
19년 전 | 2599 | |
| 412 | 19년 전 | 3046 | ||
| 411 |
|
19년 전 | 2996 | |
| 410 |
|
19년 전 | 3685 | |
| 409 |
|
19년 전 | 3634 | |
| 408 |
|
19년 전 | 1857 | |
| 407 | 19년 전 | 2230 | ||
| 406 | 19년 전 | 2782 | ||
| 405 | 19년 전 | 2448 | ||
| 404 | 19년 전 | 4303 | ||
| 403 | 19년 전 | 3304 | ||
| 402 |
NeoGenesis
|
19년 전 | 4089 | |
| 401 | 19년 전 | 2606 | ||
| 400 |
|
19년 전 | 2494 | |
| 399 | 19년 전 | 2957 | ||
| 398 | 19년 전 | 2485 | ||
| 397 | 19년 전 | 2779 | ||
| 396 | 19년 전 | 2475 | ||
| 395 | 19년 전 | 3178 | ||
| 394 | 19년 전 | 1720 | ||
| 393 | 19년 전 | 2994 | ||
| 392 | 19년 전 | 2251 | ||
| 391 | 19년 전 | 2176 | ||
| 390 | 19년 전 | 2286 | ||
| 389 | 19년 전 | 2645 | ||
| 388 | 19년 전 | 2180 | ||
| 387 | 19년 전 | 4484 | ||
| 386 |
|
19년 전 | 2692 | |
| 385 |
|
19년 전 | 2481 | |
| 384 | 19년 전 | 3014 | ||
| 383 | 19년 전 | 3054 | ||
| 382 | 19년 전 | 3107 | ||
| 381 |
|
19년 전 | 2631 | |
| 380 |
|
19년 전 | 3019 | |
| 379 | 19년 전 | 2549 | ||
| 378 | 19년 전 | 2206 | ||
| 377 | 19년 전 | 2778 | ||
| 376 | 19년 전 | 2469 | ||
| 375 |
|
19년 전 | 2561 | |
| 374 | 19년 전 | 3819 | ||
| 373 | 19년 전 | 3268 | ||
| 372 | 19년 전 | 4986 | ||
| 371 |
세은아빠2
|
19년 전 | 2415 | |
| 370 | 19년 전 | 4500 | ||
| 369 | 19년 전 | 3109 | ||
| 368 | 19년 전 | 2907 | ||
| 367 | 19년 전 | 3725 | ||
| 366 | 19년 전 | 2655 | ||
| 365 | 19년 전 | 3736 | ||
| 364 | 19년 전 | 4010 | ||
| 363 | 19년 전 | 3439 | ||
| 362 | 19년 전 | 3478 | ||
| 361 | 19년 전 | 4107 | ||
| 360 |
hwatta
|
19년 전 | 2362 | |
| 359 | 19년 전 | 5101 | ||
| 358 | 19년 전 | 3656 | ||
| 357 | 19년 전 | 2597 | ||
| 356 |
sdesign1s
|
19년 전 | 2276 | |
| 355 | 20년 전 | 2756 | ||
| 354 | 20년 전 | 3029 | ||
| 353 | 20년 전 | 2790 | ||
| 352 |
|
20년 전 | 5773 | |
| 351 |
|
20년 전 | 2702 | |
| 350 |
|
20년 전 | 4293 | |
| 349 |
hwatta
|
20년 전 | 2182 | |
| 348 | 20년 전 | 7307 | ||
| 347 | 20년 전 | 2413 | ||
| 346 | 20년 전 | 3504 | ||
| 345 | 20년 전 | 4307 | ||
| 344 | 20년 전 | 2648 | ||
| 343 | 20년 전 | 3920 | ||
| 342 | 20년 전 | 3067 | ||
| 341 | 20년 전 | 4090 | ||
| 340 |
|
20년 전 | 5140 | |
| 339 |
|
20년 전 | 4234 | |
| 338 | 20년 전 | 5869 | ||
| 337 | 20년 전 | 2045 | ||
| 336 |
|
20년 전 | 3321 | |
| 335 |
|
20년 전 | 3537 | |
| 334 |
|
20년 전 | 2926 | |
| 333 |
hwatta
|
20년 전 | 2435 | |
| 332 | 20년 전 | 4655 | ||
| 331 | 20년 전 | 2272 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기