*출처 : 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
어떻게 해야 할까요?
좋은하루 되십시요.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 2030 | 17년 전 | 2802 | ||
| 2029 | 17년 전 | 1605 | ||
| 2028 | 17년 전 | 1353 | ||
| 2027 | 17년 전 | 1614 | ||
| 2026 |
진정한승리
|
17년 전 | 2524 | |
| 2025 | 17년 전 | 1744 | ||
| 2024 | 17년 전 | 2021 | ||
| 2023 | 17년 전 | 1316 | ||
| 2022 |
SE7EN
|
17년 전 | 1053 | |
| 2021 | 17년 전 | 1130 | ||
| 2020 | 17년 전 | 2932 | ||
| 2019 | 17년 전 | 2476 | ||
| 2018 | 17년 전 | 2052 | ||
| 2017 | 17년 전 | 2053 | ||
| 2016 | 17년 전 | 1806 | ||
| 2015 | 17년 전 | 2255 | ||
| 2014 | 17년 전 | 2021 | ||
| 2013 | 17년 전 | 1989 | ||
| 2012 | 17년 전 | 1880 | ||
| 2011 | 17년 전 | 1218 | ||
| 2010 | 17년 전 | 1827 | ||
| 2009 | 17년 전 | 2231 | ||
| 2008 | 17년 전 | 2310 | ||
| 2007 | 17년 전 | 1643 | ||
| 2006 |
Arone
|
17년 전 | 1516 | |
| 2005 |
|
17년 전 | 1364 | |
| 2004 | 17년 전 | 2589 | ||
| 2003 |
suerte
|
17년 전 | 2686 | |
| 2002 |
suerte
|
17년 전 | 2084 | |
| 2001 |
suerte
|
17년 전 | 2426 | |
| 2000 |
|
17년 전 | 2730 | |
| 1999 |
|
17년 전 | 1334 | |
| 1998 |
|
17년 전 | 1201 | |
| 1997 | 17년 전 | 6337 | ||
| 1996 | 17년 전 | 1191 | ||
| 1995 | 17년 전 | 1635 | ||
| 1994 | 17년 전 | 1785 | ||
| 1993 | 17년 전 | 1111 | ||
| 1992 | 17년 전 | 1202 | ||
| 1991 | 17년 전 | 1898 | ||
| 1990 |
sdjsu
|
17년 전 | 1526 | |
| 1989 | 17년 전 | 3625 | ||
| 1988 |
smilesol
|
17년 전 | 1216 | |
| 1987 |
|
17년 전 | 1916 | |
| 1986 | 17년 전 | 1192 | ||
| 1985 | 17년 전 | 1396 | ||
| 1984 | 17년 전 | 2370 | ||
| 1983 | 17년 전 | 2028 | ||
| 1982 | 17년 전 | 1045 | ||
| 1981 | 17년 전 | 1052 | ||
| 1980 | 17년 전 | 1110 | ||
| 1979 |
오렌지76
|
17년 전 | 6056 | |
| 1978 |
오렌지76
|
17년 전 | 5855 | |
| 1977 | 17년 전 | 2043 | ||
| 1976 |
없어씨바라
|
17년 전 | 1035 | |
| 1975 | 17년 전 | 1122 | ||
| 1974 | 17년 전 | 2088 | ||
| 1973 | 17년 전 | 1522 | ||
| 1972 | 17년 전 | 1161 | ||
| 1971 |
smilesol
|
17년 전 | 1202 | |
| 1970 | 17년 전 | 1150 | ||
| 1969 |
smilesol
|
17년 전 | 1073 | |
| 1968 |
소행성블루
|
17년 전 | 3976 | |
| 1967 |
소행성블루
|
17년 전 | 2179 | |
| 1966 | 17년 전 | 1654 | ||
| 1965 |
소행성블루
|
17년 전 | 2782 | |
| 1964 |
고양Ol아빠
|
17년 전 | 1484 | |
| 1963 | 17년 전 | 1172 | ||
| 1962 | 17년 전 | 1191 | ||
| 1961 |
choijinhee
|
17년 전 | 1252 | |
| 1960 | 17년 전 | 1137 | ||
| 1959 | 17년 전 | 1257 | ||
| 1958 |
하이웹솔루션
|
17년 전 | 2414 | |
| 1957 | 17년 전 | 4196 | ||
| 1956 | 17년 전 | 1200 | ||
| 1955 | 17년 전 | 3956 | ||
| 1954 | 17년 전 | 4113 | ||
| 1953 | 17년 전 | 1239 | ||
| 1952 | 17년 전 | 2188 | ||
| 1951 | 17년 전 | 1624 | ||
| 1950 | 17년 전 | 3224 | ||
| 1949 | 17년 전 | 1368 | ||
| 1948 | 17년 전 | 3616 | ||
| 1947 | 17년 전 | 3409 | ||
| 1946 | 17년 전 | 2578 | ||
| 1945 | 17년 전 | 2946 | ||
| 1944 | 17년 전 | 2634 | ||
| 1943 | 17년 전 | 1953 | ||
| 1942 | 17년 전 | 3320 | ||
| 1941 | 17년 전 | 2630 | ||
| 1940 | 17년 전 | 3529 | ||
| 1939 |
|
17년 전 | 1167 | |
| 1938 | 17년 전 | 2254 | ||
| 1937 | 17년 전 | 1328 | ||
| 1936 |
smilesol
|
17년 전 | 1200 | |
| 1935 |
AHEEZII
|
17년 전 | 1065 | |
| 1934 |
smilesol
|
17년 전 | 1045 | |
| 1933 | 17년 전 | 1421 | ||
| 1932 | 17년 전 | 2863 | ||
| 1931 | 17년 전 | 3255 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기