[완료]apache, PHP 설치 관련
안녕하세요.. 아파치 PHP설치 관련해서 질문 드립니다.
httpd-2.2.6 설치..
./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --with-mpm=worker --enable-ssl --with-ssl --enable-so
옵션 주고,
make & make install 정상적으로 됐구요.
#cat >> /etc/ld.so.conf
/usr/local/apache2/lib
/usr/local/apache2/modules
#ldconfig
추가했습니다.
------------정상 완료-------------
php-5.2.5 설치
./configure --with-apxs2=/usr/local/apache2/bin/apxs -with-mysql=/usr/local/mysql/ --with-config-file-path=/usr/local/apache2/conf --with-exec-dir=/usr/local/apache2/bin --with-gd=shared --with-openssl --with-libxml-dir=/usr/local/lib --with-gd --enable-gd-native-ttf --with-zlib --with-jpeg-dir=/usr/lib --with-iconv with-jpeg --with-png-dir=/usr/local/lib
옵션주고
#make
Build complete.
되는대요,,
#make install 에서
Warning! dlname not found in /usr/local/apache2/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache2/modules/libphp5.so
chmod: cannot access `/usr/local/apache2/modules/libphp5.so': 그런 파일이나 디렉토리가 없음
apxs:Error: Command failed with rc=65536
.
make: *** [install-sapi] 오류 1
분명 아파치 깔때 DSO 로 설치 했음에도
저런 오류가 뜨네요..
어떤 분 말로는 snapShot 에서 받아서 컴파일 하니 된다던데 그것두 안되구요.
php-*.tar.gz로 된 파일은 libphp5.so 를 만들지 못하는 버그가 있어서
php-*.tar.bz2 파일을 다운받아서 설치 하면 된다던데 그것도 안됩니다.
그리고 어느 사이트에서는
It seems the problem was with my port. I updated the ports and reinstalled apache. Now i got php5 installed with out any problem.
라고 하는데 port update 를 어떻게 하는것인지 -_-;;
무슨 문제 일까요. 아파치 지웠다 다른버전 깔아도 계속 그럽니다.
어제부터 끙끙 거리는데 도움 좀 주세요!!!ㅠ_ㅠ
httpd-2.2.6 설치..
httpd-2.2.6 설치..
./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --with-mpm=worker --enable-ssl --with-ssl --enable-so 가 아니고
--enable-module=so 랍니다
앞으론 옵션을 잘보는 습관을 들입시다
---------------------------------------------------------
우리가 삽질하는 이유는 삽질하지 않는 법을 배우기 위해서다
---------------------------------------------------------------------------------------
for the queen of the sciences
답변 감사합니다.
그런데 ./configure --help 에 보면 --enable-so DSO capability 라고 나와있네요.
그리고 --enable-module=so 라고 옵션 줘도 똑같습니다. ㅠㅠ
--------------------------------------
김 용 설 입 니 다.
--------------------------------------
으휴
그렇다면
그렇다면 설치과정에서 잘못된건 없네요 다 지우고 bz를 풀어서 해보세요
착각해서 그런것일 가능성이 큽니다.
---------------------------------------------------------
우리가 삽질하는 이유는 삽질하지 않는 법을 배우기 위해서다
---------------------------------------------------------------------------------------
for the queen of the sciences
네 두가지 다 해봤어요..
다른 버전 찾아서 해보려구 해요..
답변 감사합니다.
--------------------------------------
김 용 설 입 니 다.
--------------------------------------
으휴
make clean 해보셨나요?
옵션 때문에 필요한거 재설치하고 해보니까 안되더라구요..
하지만, 기본 옵션으로는 아주 잘된다는 가정하에 말씀드립니다.
일단 찾아본 것은
make clean
make
make install
이 과정을 한번 다시 해보시죠...
댓글 달기