当前位置:网站首页>Php7.3 centos7.9 installing sqlserver extensions
Php7.3 centos7.9 installing sqlserver extensions
2022-06-30 16:52:00 【BookNoteY】
php7.3 centos7.9 install sqlserver Expand
install sql server drive ( direct yum Get ready )
yum install msodbcsql mssql-tools unixODBC-devel
To php Expand the official website selection To follow sqlsrv,pdo_sqlsrv edition
sqlsrv Version selection :https://pecl.php.net/package/sqlsrv
pdo_sqlsrv Version selection :https://pecl.php.net/package/pdo_sqlsrv
View the corresponding details of each version :https://pecl.php.net/package-changelog.php?package=sqlsrv&release=5.10.1
Install the extension Here to install 5.6.1
Download source package cd To the location you downloaded
wget https://pecl.php.net/get/pdo_sqlsrv-5.6.1.tgz && wget https://pecl.php.net/get/sqlsrv-5.6.1.tgz
decompression
tar -zxvf pdo_sqlsrv-5.6.1.tgz && tar -zxvf sqlsrv-5.6.1.tgz
Compilation and installation
# pdo_sqlsrv
cd pdo_sqlsrv-5.6.1
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make && make install
# pdo_sqlsrv
cd pdo_sqlsrv-5.6.1
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make && make install
Modify the configuration file and restart php
vim /usr/local/php/etc/php.ini
# Add two lines after , Import extension file
extension=sqlsrv.so
extension=pdo_sqlsrv.so
# restart fpm, I used it here lnmp
lnmp restart
Don't forget to restart your php or php-fpm
Check whether the installation is successful , Generally, if there is no error reported above, it should be successful
php -m |grep sqlsrv
Existence is success
Set pieces
If there is such a problem
In file included from/root/sqlsrv-5.6.1/shared/typedefs for linux.h:23:0
from /root/sqlsrv-5.6.1/shared/xplat winnls.h:24, from /root/sqlsrv-5.6.1/shared/FormattedPrint.h:24
from /root/sqlsrv-5.6.1/shared/core sqlsrv.h:41, from /root/sqlsrv-5.6.1/php solsrvint.h:25
from /root/sqlsrv-5.6.1/conn.cpp:24:
/root/sqlsrv-5.6.1/shared/xplat.h:30:17: fatal error: sql.h: No such file or directory#include <sql.h>
It should be that you have not installed sqlserver Drivers are installed on the extensions , Errors will be reported at compile time
After installing the driver in the first step, you can recompile it
边栏推荐
- 【微信小程序】常用组件基本使用(view/scroll-view/swiper、text/rich-text、button/image)
- Delete duplicates in an ordered array ii[double pointers -- unified in multiple cases]
- STL教程7-set、pair对组和仿函数
- Mysql8.0 method and steps for enabling remote connection permission
- Mathematical modeling for war preparation 35 time series prediction model
- go-zero微服务实战系列(八、如何处理每秒上万次的下单请求)
- Li Zexiang, a legendary Chinese professor, is making unicorns in batches
- ArcMap operation series: 80 plane to latitude and longitude 84
- 附加:(还没写,别看~~~)WebMvcConfigurer接口;
- AVIC UAV technology innovation board is listed: the fist product with a market value of 38.5 billion is pterodactyl UAV
猜你喜欢
![Delete duplicates in an ordered array ii[double pointers -- unified in multiple cases]](/img/e2/cadfdbe476a86cb2d72c1ae0160a4a.png)
Delete duplicates in an ordered array ii[double pointers -- unified in multiple cases]

观测云与 TDengine 达成深度合作,优化企业上云体验

15年做糊21款硬件,谷歌到底栽在哪儿?
![[Verilog quick start of Niuke online question series] ~ bit splitting and operation](/img/17/4b8f5607c4cba1596435233a6cf30a.png)
[Verilog quick start of Niuke online question series] ~ bit splitting and operation

Headhunter 50, 000, I'll go to VC

Etcd教程 — 第八章 Etcd之Compact、Watch和Lease API

Distributed machine learning: model average Ma and elastic average easgd (pyspark)

微信表情符号写入判决书,你发的OK、炸弹都可能成为“呈堂证供”

更多龙蜥自研特性!生产可用的 Anolis OS 8.6 正式发布

RT thread heap size Setting
随机推荐
Bc1.2 PD protocol
深度学习——(2)几种常见的损失函数
Eight basic sorting (detailed explanation)
JS ES5也可以创建常量?
Mathematical modeling for war preparation 36 time series model 2
JS Es5 can also create constants?
Hologres共享集群助力淘宝订阅极致精细化运营
云技能提升好伙伴,亚马逊云师兄今天正式营业
go-zero微服务实战系列(八、如何处理每秒上万次的下单请求)
Lambda expression_ Stream stream_ File class
2022 Blue Bridge Cup group B - expense reimbursement - (linear dp| status DP)
Installing jupyter notebook under Anaconda
Undistorted resize using pil
Good partner for cloud skill improvement, senior brother cloud of Amazon officially opened today
Raft介绍
名单揭晓 | 2021年度中国杰出知识产权服务团队
Half year inventory of new consumption in 2022: the industry is cold, but these nine tracks still attract gold
POJ Project Summer
中航无人机科创板上市:市值385亿 拳头产品是翼龙无人机
【牛客网刷题系列 之 Verilog快速入门】~ 位拆分与运算