HOME > 이용안내
이용안내
 
작성일 : 17-08-30 09:40
[리눅스서버] [openssl]php에 openssl 추가모듈 설치하기
 글쓴이 : 제이네트워크
조회 : 33,616  
[리눅스서버]php에 openssl 추가모듈 설치하기

새로 컴파일하지 않고 사용하던 php에 추가 openssl 모듈 설치하기

기존 설치 폴더로 이동 
#cd /usr/local/src/php-5.2.8/ext/openssl/

#ll
-rw-r--r--. 1 1002 1002     49 2001-05-05 20:28 CREDITS
-rw-r--r--. 1 1002 1002  11150 2004-01-17 21:59 README
-rw-r--r--. 1 1002 1002    543 2007-01-08 03:38 config.w32
-rw-r--r--. 1 1002 1002    841 2007-01-08 03:38 config0.m4
-rw-r--r--. 1 1002 1002 108567 2008-12-01 06:39 openssl.c
-rw-r--r--. 1 1002 1002   4664 2004-01-17 21:59 openssl.dsp
-rw-r--r--. 1 1002 1002   4989 2004-07-16 17:59 openssl.mak
-rw-r--r--. 1 1002 1002   3120 2007-12-31 16:20 php_openssl.h
drwxr-xr-x. 2 1002 1002   4096 2008-12-08 04:31 tests
-rw-r--r--. 1 1002 1002  23412 2008-11-17 08:12 xp_ssl.c

리스트에서 config.m4 파일로 복사
#cp config0.m4 config.m4

phpize를 실행한다. (해당위치에 없다면 find / -name phpize를 실행해서 찾는다.)

#/usr/local/php/bin/phpize     phpize 를 실행하면 configure 파일이 생성 됩니다.

configrue 실행

#./configure --with-openssl --with-php-config=/usr/local/php/bin/php-config
#make


그다음 생성된 openssl.so 파일을 복사에서  적당한 위치에 옮겨 놓고 
 php,ini 파일에 링크

#cp ./openssl.so /usr/local/php/lib/

php.ini 파일 오픈하여 마지막 줄에 추가
 
extension=/usr/local/php/lib/openssl.so


웹페이지에서 phpinfo  파일을 열어 확인할 것





Cloud server Streaming service Domain Cloud Firewall

 
 

Total 0

번호 제   목   글쓴이 날짜 조회
게시물이 없습니다.