| 2691 번 글: PHP에 mysql 모듈 추가 방법? |
| 글쓴이: 신현석
|
글쓴날: 2007년 08월 05일 14:52:09 일(오후) |
조회: 2620 |
-----------------------------------------
답변자가 기본적으로 참고할 내용입니다.
- 배포판(옵션) : 레드햇5
- 커널버전(옵션)
: 2.6.18-8.el5
- 데몬버전(예:apache
1.3.27) : apache 2.2.3 / PHP 5.2.3
- 데몬설치유형(RPM/컴파일/기타)
: RPM
-----------------------------------------
*중요:한글 문자가 하나도 없으면 스팸페이지로
이동합니다(스팸
필터링).
레드햇5에 최신 아파치와 PHP, MySQL을 설치하려고 하는데요.
레드햇에 맞는 RPM 버젼이 없어서
rpmfind.net 에서 다른 배포판용을 받아서 설치했습니다.
의존성문제는 필요한 라이브러리들 따로 RPM으로 받아서
설치했구요...
일단 돌아가긴 하는데...
설치하고 보니, PHP5에 필요한 모듈들이 설치가 안되었더라구요
심지어 mysql 모듈조차...ㅡㅡ;
그래서 PHP 5.2.3 소스를 다운받아서
./configure --enable-mysql=share --enable-mysqli=share
make
이렇게 컴파일 했습니다...
그런데...
PHP5버젼부터 뭐가 바뀐건지...
mysqli.so 파일을 못찾겠습니다.
생성이 안되었더라구요...ㅠㅠ
find / -name mysqli*
이렇게 찾아봐도 없구요
mysqli.lo 라는 파일은 생겼던데...
혹시 이게 같은 파일인건지 해서...
이 파일을 modules 디렉토리에 복사하고
php.ini 파일에 추가해주었는데도
phpinfo() 보면 mysql관련 모듈은 로딩이 안되었네요~
어떻게 하면 PHP5에 mysql모듈 추가할 수 있는지 모르겠네요~
방법좀 알려주시면 감사하겠습니다~
^^;;
참고로 phpinfo()에서 설치옵션입니다
./configure' '--build=i386-redhat-linux-gnu' '--host=i386-redhat-linux-gnu'
'--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr'
'--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc'
'--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib'
'--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com'
'--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache'
'--with-libdir=lib' '--with-config-file-path=/etc'
'--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic'
'--disable-rpath' '--without-pear' '--with-bz2' '--with-curl'
'--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr'
'--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp'
'--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell'
'--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU'
'--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets'
'--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars'
'--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-kerberos'
'--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit'
'--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio'
'--without-mime-magic' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml'
'--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--without-odbc'
'--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo'
'--disable-xmlreader' '--disable-xmlwriter' '--disable-json'
이렇게 나오네요~
|
이전글 : 정말 감사드립니다...
다음글 : Re: PHP에 mysql 모듈 추가 방법?
|
from 123.212.27.102
JS(Redhands)Board 0.4 +@
|