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년 전 | 4088 | ||
| 429 | 19년 전 | 3285 | ||
| 428 | 19년 전 | 4121 | ||
| 427 | 19년 전 | 3464 | ||
| 426 | 19년 전 | 3095 | ||
| 425 | 19년 전 | 3389 | ||
| 424 | 19년 전 | 2430 | ||
| 423 | 19년 전 | 2844 | ||
| 422 | 19년 전 | 2334 | ||
| 421 | 19년 전 | 3700 | ||
| 420 | 19년 전 | 4726 | ||
| 419 | 19년 전 | 3779 | ||
| 418 |
|
19년 전 | 1726 | |
| 417 | 19년 전 | 2732 | ||
| 416 | 19년 전 | 2381 | ||
| 415 | 19년 전 | 2600 | ||
| 414 | 19년 전 | 4396 | ||
| 413 |
|
19년 전 | 2582 | |
| 412 | 19년 전 | 3029 | ||
| 411 |
|
19년 전 | 2978 | |
| 410 |
|
19년 전 | 3665 | |
| 409 |
|
19년 전 | 3623 | |
| 408 |
|
19년 전 | 1841 | |
| 407 | 19년 전 | 2212 | ||
| 406 | 19년 전 | 2767 | ||
| 405 | 19년 전 | 2434 | ||
| 404 | 19년 전 | 4291 | ||
| 403 | 19년 전 | 3289 | ||
| 402 |
NeoGenesis
|
19년 전 | 4081 | |
| 401 | 19년 전 | 2593 | ||
| 400 |
|
19년 전 | 2477 | |
| 399 | 19년 전 | 2941 | ||
| 398 | 19년 전 | 2474 | ||
| 397 | 19년 전 | 2774 | ||
| 396 | 19년 전 | 2461 | ||
| 395 | 19년 전 | 3166 | ||
| 394 | 19년 전 | 1702 | ||
| 393 | 19년 전 | 2979 | ||
| 392 | 19년 전 | 2240 | ||
| 391 | 19년 전 | 2171 | ||
| 390 | 19년 전 | 2265 | ||
| 389 | 19년 전 | 2633 | ||
| 388 | 19년 전 | 2129 | ||
| 387 | 19년 전 | 4468 | ||
| 386 |
|
19년 전 | 2673 | |
| 385 |
|
19년 전 | 2464 | |
| 384 | 19년 전 | 2983 | ||
| 383 | 19년 전 | 3037 | ||
| 382 | 19년 전 | 3089 | ||
| 381 |
|
19년 전 | 2624 | |
| 380 |
|
19년 전 | 3003 | |
| 379 | 19년 전 | 2540 | ||
| 378 | 19년 전 | 2196 | ||
| 377 | 19년 전 | 2772 | ||
| 376 | 19년 전 | 2463 | ||
| 375 |
|
19년 전 | 2548 | |
| 374 | 19년 전 | 3796 | ||
| 373 | 19년 전 | 3258 | ||
| 372 | 19년 전 | 4976 | ||
| 371 |
세은아빠2
|
19년 전 | 2403 | |
| 370 | 19년 전 | 4493 | ||
| 369 | 19년 전 | 3095 | ||
| 368 | 19년 전 | 2882 | ||
| 367 | 19년 전 | 3717 | ||
| 366 | 19년 전 | 2629 | ||
| 365 | 19년 전 | 3720 | ||
| 364 | 19년 전 | 3999 | ||
| 363 | 19년 전 | 3424 | ||
| 362 | 19년 전 | 3469 | ||
| 361 | 19년 전 | 4089 | ||
| 360 |
hwatta
|
19년 전 | 2347 | |
| 359 | 19년 전 | 5087 | ||
| 358 | 19년 전 | 3639 | ||
| 357 | 19년 전 | 2583 | ||
| 356 |
sdesign1s
|
19년 전 | 2265 | |
| 355 | 20년 전 | 2732 | ||
| 354 | 20년 전 | 3016 | ||
| 353 | 20년 전 | 2782 | ||
| 352 |
|
20년 전 | 5761 | |
| 351 |
|
20년 전 | 2691 | |
| 350 |
|
20년 전 | 4273 | |
| 349 |
hwatta
|
20년 전 | 2166 | |
| 348 | 20년 전 | 7297 | ||
| 347 | 20년 전 | 2404 | ||
| 346 | 20년 전 | 3490 | ||
| 345 | 20년 전 | 4292 | ||
| 344 | 20년 전 | 2618 | ||
| 343 | 20년 전 | 3907 | ||
| 342 | 20년 전 | 3050 | ||
| 341 | 20년 전 | 4076 | ||
| 340 |
|
20년 전 | 5111 | |
| 339 |
|
20년 전 | 4216 | |
| 338 | 20년 전 | 5845 | ||
| 337 | 20년 전 | 2023 | ||
| 336 |
|
20년 전 | 3300 | |
| 335 |
|
20년 전 | 3526 | |
| 334 |
|
20년 전 | 2908 | |
| 333 |
hwatta
|
20년 전 | 2421 | |
| 332 | 20년 전 | 4643 | ||
| 331 | 20년 전 | 2259 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기