본문 바로가기

Server Dev

[CentOS] PHP 소스컴파일 이후 openssl 모듈 설치하기

전제조건

php 소스파일 경로 : /usr/local/src/php-5.6.31

php 설치된 경로 : /usr/local/php

mariadb 설치된 경로 : /usr/local/mariadb  (http://88oy.tistory.com/383)


openssl 설치하기

cd /usr/local/src/php-5.6.31/ext/openssl

cp config0.m4 config.m4

/usr/local/php/bin/phpize

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

make

make install


php.ini 파일에 아래 내용 추가


;;open ssl

extension=openssl.so



참고 : http://okkks.tistory.com/1026