*출처 : 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
어떻게 해야 할까요?
좋은하루 되십시요.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 1730 | 17년 전 | 1179 | ||
| 1729 | 17년 전 | 1594 | ||
| 1728 | 17년 전 | 1668 | ||
| 1727 | 17년 전 | 1810 | ||
| 1726 | 17년 전 | 2946 | ||
| 1725 | 17년 전 | 2082 | ||
| 1724 |
|
17년 전 | 1766 | |
| 1723 |
끝없는사랑
|
17년 전 | 2099 | |
| 1722 |
끝없는사랑
|
17년 전 | 1805 | |
| 1721 | 17년 전 | 3340 | ||
| 1720 | 17년 전 | 1523 | ||
| 1719 | 17년 전 | 1645 | ||
| 1718 |
사랑합니다
|
17년 전 | 1362 | |
| 1717 | 17년 전 | 2178 | ||
| 1716 | 17년 전 | 3132 | ||
| 1715 |
|
17년 전 | 2268 | |
| 1714 |
|
17년 전 | 1726 | |
| 1713 | 17년 전 | 2973 | ||
| 1712 | 17년 전 | 4419 | ||
| 1711 | 17년 전 | 1735 | ||
| 1710 | 17년 전 | 3235 | ||
| 1709 |
jeans
|
17년 전 | 1562 | |
| 1708 |
|
17년 전 | 3472 | |
| 1707 | 17년 전 | 5834 | ||
| 1706 |
|
17년 전 | 1413 | |
| 1705 |
|
17년 전 | 2151 | |
| 1704 | 17년 전 | 1782 | ||
| 1703 |
심심맨닷컴
|
17년 전 | 1523 | |
| 1702 | 17년 전 | 2412 | ||
| 1701 |
|
17년 전 | 2616 | |
| 1700 | 17년 전 | 1592 | ||
| 1699 | 17년 전 | 2678 | ||
| 1698 |
RedRiverFisher
|
17년 전 | 3163 | |
| 1697 |
심심맨닷컴
|
17년 전 | 1517 | |
| 1696 |
eclub
|
17년 전 | 1932 | |
| 1695 | 17년 전 | 3838 | ||
| 1694 |
깜장고무신
|
17년 전 | 4474 | |
| 1693 |
stuartkim
|
17년 전 | 1867 | |
| 1692 |
stuartkim
|
17년 전 | 1720 | |
| 1691 |
|
17년 전 | 2660 | |
| 1690 | 17년 전 | 1841 | ||
| 1689 | 17년 전 | 3927 | ||
| 1688 | 17년 전 | 1634 | ||
| 1687 | 16년 전 | 1918 | ||
| 1686 |
|
17년 전 | 2252 | |
| 1685 | 17년 전 | 2103 | ||
| 1684 |
|
17년 전 | 3563 | |
| 1683 |
leeLook
|
17년 전 | 1580 | |
| 1682 | 17년 전 | 2650 | ||
| 1681 | 17년 전 | 1630 | ||
| 1680 | 17년 전 | 1900 | ||
| 1679 | 17년 전 | 7416 | ||
| 1678 | 17년 전 | 1993 | ||
| 1677 | 17년 전 | 4084 | ||
| 1676 | 17년 전 | 2414 | ||
| 1675 | 17년 전 | 2423 | ||
| 1674 | 17년 전 | 2143 | ||
| 1673 | 17년 전 | 2194 | ||
| 1672 | 17년 전 | 2615 | ||
| 1671 | 17년 전 | 3207 | ||
| 1670 | 17년 전 | 5318 | ||
| 1669 |
플래시007
|
17년 전 | 2770 | |
| 1668 |
|
17년 전 | 2690 | |
| 1667 | 17년 전 | 2542 | ||
| 1666 |
|
17년 전 | 1789 | |
| 1665 | 17년 전 | 2196 | ||
| 1664 | 17년 전 | 5300 | ||
| 1663 |
|
17년 전 | 3012 | |
| 1662 |
|
17년 전 | 2575 | |
| 1661 |
|
17년 전 | 3249 | |
| 1660 |
|
17년 전 | 2464 | |
| 1659 |
|
17년 전 | 2825 | |
| 1658 | 17년 전 | 5865 | ||
| 1657 | 17년 전 | 2622 | ||
| 1656 |
Piece
|
17년 전 | 2017 | |
| 1655 |
|
17년 전 | 2645 | |
| 1654 | 17년 전 | 1473 | ||
| 1653 | 17년 전 | 9791 | ||
| 1652 | 17년 전 | 4447 | ||
| 1651 | 17년 전 | 3277 | ||
| 1650 | 17년 전 | 1803 | ||
| 1649 | 17년 전 | 3598 | ||
| 1648 | 17년 전 | 2278 | ||
| 1647 | 17년 전 | 3723 | ||
| 1646 | 17년 전 | 5172 | ||
| 1645 | 17년 전 | 3823 | ||
| 1644 | 17년 전 | 2668 | ||
| 1643 | 17년 전 | 2931 | ||
| 1642 | 17년 전 | 2440 | ||
| 1641 | 17년 전 | 2776 | ||
| 1640 |
porgy
|
17년 전 | 1894 | |
| 1639 | 17년 전 | 3432 | ||
| 1638 |
컴퓨터기술자
|
17년 전 | 2133 | |
| 1637 |
|
17년 전 | 2256 | |
| 1636 | 17년 전 | 2072 | ||
| 1635 | 17년 전 | 3042 | ||
| 1634 |
귀여운현호
|
17년 전 | 1990 | |
| 1633 |
태양의서쪽
|
17년 전 | 2660 | |
| 1632 | 17년 전 | 3862 | ||
| 1631 | 17년 전 | 4562 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기