본문 바로가기
Infra & Server Dev

[CentOS] PHP 소스컴파일 이후 pdo_mysql mysqli 설치하기

by 필팔청춘 2017. 8. 14.



전제조건

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

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

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



pdo_mysql 설치하기

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

/usr/local/php/bin/phpize

./configure --with-php-config=/usr/local/php/bin/php-config --with-pdo-mysql=/usr/local/mariadb

make

make install

Installing shared extensions:     /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/

pdo_mysql.so 가 드디어 생성되었다... ㅎㄷㄷ


pdo_mysql 설치하기

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

/usr/local/php/bin/phpize

./configure --with-php-config=/usr/local/php/bin/php-config --with-mysqli=/usr/local/mariadb/bin/mysql_config

make

make install


참고1 : http://www.programkr.com/blog/McTO3ADMwYTy.html

참고2 : http://igoto.x-y.net/xe/linux/247

참고3 : http://okkks.tistory.com/1069

참고4 : https://tocup.net/xe/tech/59503

참고5 : http://php.net/manual/kr/ref.pdo-mysql.php

참고6 : https://opentutorials.org/module/1272/8250