*출처 : http://phpschool.com/bbs2/inc_view.html?id=8822&code=tnt2&start=0&mode=search&field=title&search_name=&operator=and&period=all&category_id=&s_que=mod_rewrite
mod_rewrite 설치시 도움 될만한 글입니다...
이것은 처음 설치용이 아닌 사용중 추가하는 방법입니다.
cd 아파치설치디렉토리/src/modules/standard
/usr/local/apache/bin/apxs -c -I/usr/include/gdbm mod_rewrite.c
gcc -shared -o mod_rewrite.so mod_rewrite.o -lgdbm
/usr/local/apache/bin/apxs -i mod_rewrite.so
vi /usr/local/apache/conf/httpd.conf
#------- 아래 부분 추가 -------
LoadModule rewrite_module libexec/mod_rewrite.so
Addmodule mod_rewrite.c
#------- 여기까지 ---------
/usr/local/apache/bin/apachectl configtest
/usr/local/apache/bin/apachectl restart
이렇게 하시면 에러 안나고 설치 잘 됩니다. :_)
## 덧글
설치가 조금 난해 하군요..
# apxs -a -i -c mod_rewrite.c
이렇게 하면 됩니다.
-a : active
-i : install
아 제홈에 mod_rewrite 사용예가 있습니다.
http://www.linuxchannel.net/docs/apache_virtual_user_host.txt<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:30:25 Apache에서 이동 됨]</div>
mod_rewrite 설치시 도움 될만한 글입니다...
이것은 처음 설치용이 아닌 사용중 추가하는 방법입니다.
cd 아파치설치디렉토리/src/modules/standard
/usr/local/apache/bin/apxs -c -I/usr/include/gdbm mod_rewrite.c
gcc -shared -o mod_rewrite.so mod_rewrite.o -lgdbm
/usr/local/apache/bin/apxs -i mod_rewrite.so
vi /usr/local/apache/conf/httpd.conf
#------- 아래 부분 추가 -------
LoadModule rewrite_module libexec/mod_rewrite.so
Addmodule mod_rewrite.c
#------- 여기까지 ---------
/usr/local/apache/bin/apachectl configtest
/usr/local/apache/bin/apachectl restart
이렇게 하시면 에러 안나고 설치 잘 됩니다. :_)
## 덧글
설치가 조금 난해 하군요..
# apxs -a -i -c mod_rewrite.c
이렇게 하면 됩니다.
-a : active
-i : install
아 제홈에 mod_rewrite 사용예가 있습니다.
http://www.linuxchannel.net/docs/apache_virtual_user_host.txt<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:30:25 Apache에서 이동 됨]</div>
댓글 3개
WAYKIKI
19년 전
mod_rewrite 는 apache 기본 모듈이지 않나요?
httpd -L 로 확인후 설치 하는게 좋을듯 합니다.
httpd -L 로 확인후 설치 하는게 좋을듯 합니다.
DifferEyE
19년 전
스테틱으로 추가하지 않았을경우 이런식으로 추가 해야겠지요...
가급적이면 재설치를 권장...
가급적이면 재설치를 권장...
18년 전
수리눅스를 사용하고 있습니다.
위와 같이 하였을 때에 아래와 같은 에러가 나거든요.
/usr/local/apache_2.0.55/build/libtool --silent --mode=compile gcc -prefer-pic -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache_2.0.55/include -I/usr/local/apache_2.0.55/include -I/usr/local/apache_2.0.55/include -I/usr/include/gdbm -c -o mod_rewrite.lo mod_rewrite.c && touch mod_rewrite.slo
gcc: mod_rewrite.c: No such file or directory
gcc: no input files
apxs:Error: Command failed with rc=65536
어떻게 해야 할까요?
좋은하루 되십시요.
위와 같이 하였을 때에 아래와 같은 에러가 나거든요.
/usr/local/apache_2.0.55/build/libtool --silent --mode=compile gcc -prefer-pic -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache_2.0.55/include -I/usr/local/apache_2.0.55/include -I/usr/local/apache_2.0.55/include -I/usr/include/gdbm -c -o mod_rewrite.lo mod_rewrite.c && touch mod_rewrite.slo
gcc: mod_rewrite.c: No such file or directory
gcc: no input files
apxs:Error: Command failed with rc=65536
어떻게 해야 할까요?
좋은하루 되십시요.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 930 | 19년 전 | 3560 | ||
| 929 |
|
19년 전 | 2726 | |
| 928 |
|
19년 전 | 3465 | |
| 927 |
|
19년 전 | 3460 | |
| 926 |
|
19년 전 | 3158 | |
| 925 | 19년 전 | 5449 | ||
| 924 |
|
19년 전 | 2189 | |
| 923 |
|
19년 전 | 2247 | |
| 922 |
|
19년 전 | 2332 | |
| 921 |
|
19년 전 | 3423 | |
| 920 | 19년 전 | 3720 | ||
| 919 |
|
19년 전 | 3767 | |
| 918 |
|
19년 전 | 2383 | |
| 917 |
|
19년 전 | 2415 | |
| 916 |
|
19년 전 | 2721 | |
| 915 | 19년 전 | 3070 | ||
| 914 | 19년 전 | 2477 | ||
| 913 | 19년 전 | 2641 | ||
| 912 | 19년 전 | 2472 | ||
| 911 | 19년 전 | 2235 | ||
| 910 | 19년 전 | 3264 | ||
| 909 | 19년 전 | 3326 | ||
| 908 | 19년 전 | 3056 | ||
| 907 |
|
19년 전 | 4884 | |
| 906 |
|
19년 전 | 2726 | |
| 905 |
|
19년 전 | 3325 | |
| 904 |
|
19년 전 | 3170 | |
| 903 |
|
19년 전 | 2014 | |
| 902 |
|
19년 전 | 3164 | |
| 901 |
|
19년 전 | 1900 | |
| 900 |
|
19년 전 | 2356 | |
| 899 |
|
19년 전 | 2415 | |
| 898 |
|
19년 전 | 4005 | |
| 897 |
|
19년 전 | 3207 | |
| 896 |
|
19년 전 | 3122 | |
| 895 |
|
19년 전 | 2554 | |
| 894 |
|
19년 전 | 2034 | |
| 893 |
|
19년 전 | 1668 | |
| 892 |
|
19년 전 | 2432 | |
| 891 |
|
19년 전 | 2343 | |
| 890 |
|
19년 전 | 1827 | |
| 889 |
|
19년 전 | 1827 | |
| 888 |
|
19년 전 | 2622 | |
| 887 |
|
19년 전 | 2592 | |
| 886 |
|
19년 전 | 1883 | |
| 885 |
|
19년 전 | 2138 | |
| 884 |
|
19년 전 | 3319 | |
| 883 |
|
19년 전 | 1967 | |
| 882 |
|
19년 전 | 2517 | |
| 881 |
|
19년 전 | 2601 | |
| 880 |
|
19년 전 | 2676 | |
| 879 |
|
19년 전 | 2954 | |
| 878 |
|
19년 전 | 2577 | |
| 877 |
|
19년 전 | 2993 | |
| 876 |
|
19년 전 | 2772 | |
| 875 |
|
19년 전 | 3533 | |
| 874 | 19년 전 | 1885 | ||
| 873 | 19년 전 | 2754 | ||
| 872 |
|
19년 전 | 2386 | |
| 871 |
|
19년 전 | 2032 | |
| 870 |
|
19년 전 | 2438 | |
| 869 |
|
19년 전 | 1882 | |
| 868 |
|
19년 전 | 5454 | |
| 867 |
|
19년 전 | 2281 | |
| 866 |
|
19년 전 | 4285 | |
| 865 |
|
19년 전 | 2318 | |
| 864 | 19년 전 | 1869 | ||
| 863 | 19년 전 | 2624 | ||
| 862 | 19년 전 | 2348 | ||
| 861 | 19년 전 | 2545 | ||
| 860 | 19년 전 | 2189 | ||
| 859 | 19년 전 | 3937 | ||
| 858 | 19년 전 | 3435 | ||
| 857 | 19년 전 | 2219 | ||
| 856 |
Power
|
19년 전 | 2120 | |
| 855 | 19년 전 | 1981 | ||
| 854 | 19년 전 | 2016 | ||
| 853 |
pearly
|
19년 전 | 4418 | |
| 852 |
pearly
|
19년 전 | 3368 | |
| 851 | 19년 전 | 2792 | ||
| 850 |
pearly
|
19년 전 | 3366 | |
| 849 |
pearly
|
19년 전 | 3025 | |
| 848 |
pearly
|
19년 전 | 2860 | |
| 847 | 19년 전 | 2383 | ||
| 846 |
|
19년 전 | 2195 | |
| 845 |
pearly
|
19년 전 | 2517 | |
| 844 | 19년 전 | 3123 | ||
| 843 | 19년 전 | 2150 | ||
| 842 |
pearly
|
19년 전 | 3135 | |
| 841 |
pearly
|
19년 전 | 3263 | |
| 840 | 19년 전 | 2944 | ||
| 839 |
|
19년 전 | 1961 | |
| 838 |
|
19년 전 | 1721 | |
| 837 |
|
19년 전 | 2350 | |
| 836 |
|
19년 전 | 2292 | |
| 835 |
|
19년 전 | 1665 | |
| 834 |
|
19년 전 | 1683 | |
| 833 |
|
19년 전 | 1588 | |
| 832 |
|
19년 전 | 2079 | |
| 831 |
|
19년 전 | 1632 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기