スキップしてメイン コンテンツに移動

投稿

6月, 2015の投稿を表示しています

CentOS + Apache + PHP + PDO で SQL Server へ接続

前提:httpd、phpのインストールが終わっていること # yum install httpd php 作業: # yum install epel-release # vi /etc/yum.repos.d/epel.repo [epel] ~ enabled=0 ~ # yum --enablerepo=epel install php-mssql # vi /etc/freetds.conf ~ [MSSQLSVR2012]         host = 1.2.3.4         port = 1433         tds version = 8.0         charset = CP932         client charset = UTF-8 # vi /etc/selinux/config ~ SELINUX=disabled ~ # restart