테스트 사이트 - 개발 중인 베타 버전입니다

리눅스 php 5.6.25 컴파일하여 수동 설치시 채택완료

천재777 7년 전 조회 1,993

아래처럼 구성 설정후 make , make install 하여 설치 하였습니다.  그런데 http.conf 파일 에 libphp5.so 구문 추가하고 아파치 재시작 하면  "libphp5.so cannot load" 이런 syntax 구문 오류가 나네요 /etc/httpd/modules/ 이런 경로 찾아봐도  libphp5.so 는 없고 전체 find 해봐도 없습니다. 

어떻게 해야 할까요?

LoadModule php5_module          modules/libphp5.so

<아래 글> ./configure  --prefix=/usr/bin/php \ --with-apxs2=/etc/httpd/bin/apxs \ --with-config-file-path=/etc/httpd/conf \ --with-mysql=/usr/bin/mysql \ --with-mysql-sock=/var/lib/mysql \ --with-mysqli=/usr/bin/mysql_config \ --with-pdo-mysql=/usr/bin/mysql \ --with-regex=php \ --with-libxml-dir=/usr \ --with-openssl --with-pcre-regex --with-zlib \ --with-bz2 --with-curl --with-gdbm \ --with-db4=/usr --with-dbm --with-pcre-dir=/usr --with-openssl-dir=/usr \ --with-libxml-dir=/usr --with-gd --with-vpx-dir=/usr --with-jpeg-dir=/usr \ --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr \ --with-t1lib=/usr --with-gettext --with-gmp --with-mhash --with-imap \ --with-imap-ssl --with-kerberos --with-icu-dir=/usr --with-ldap \ --with-ldap-sasl --with-libmbfl --with-onig --with-mcrypt \ --with-libedit --with-readline --with-tidy --with-libexpat-dir=/usr \ --with-xmlrpc --with-xsl --with-pear --with-pic --with-libdir=lib64 \ --enable-bcmath --enable-calendar --enable-exif \ --enable-ftp --enable-pcntl --enable-gd-native-ttf \ --enable-gd-jis-conv --enable-intl --enable-mbstring \ --enable-shmop --enable-sockets --enable-sysvmsg \ --enable-sysvsem --enable-sysvshm --enable-wddx \ --enable-zip --enable-mysqlnd --enable-dba=shared \ --enable-mod-charset --enable-dom --enable-mbregex \ --enable-inline-optimization --enable-sigchild --enable-soap \ --enable-maintainer-zts --enable-opcache=nom

 

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

채택된 답변
+20 포인트
a
7년 전

/etc/httpd/bin/apxs 여기에 있지 않나요?

로그인 후 평가할 수 있습니다

답변에 대한 댓글 5개

천재777
7년 전
그건 디텍토리가 아니고 파일 인데요
천재777
7년 전
파일 내용 찾아봐도 없습니다.
a
acesoft
7년 전
예 제가 잘못봤네요.

아파치 컴파일 하실때 옵션에

./configure --enable-so 를 하셨는지 확인해보세요.
천재777
7년 전
--enable-so 했습니다.
a
acesoft
7년 전
기억이 안나서 검색해보니 /php설치경로/lib 안에 일반적으로 생성된다고 합니다.

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인