win7 php mysql扩展名_win7 PHP7.0的PDO扩展

一个非常棘手的问题,win7(64位)环境,编译安装的mysql,php无法使用pdo扩展。

a41ef5d31952e188766340ffde57af84.png

而我的centos中yum安装的php,pdo是好用的。

2d8ea93869f8dd8a63b159020a0a97c0.png

百度了一大堆,都无法解决。

基本上百度到的都是要开启这两个:

extension=php_pdo.dll

extension=php_pdo_mysql.dll

但是我的php.ini文件中根本没有第一个,ext文件夹中也确实没有php_pdo.dll。

而我查看http://windows.php.net/download/这里面的7.0和7.1版本,也全部都没有php_pdo.dll这个dll,可能百度到的攻略全部是针对php5的。

daa36b9ebae8654fc72108e5772d319c.png

然后怀疑是这里的问题,结果比对之下这里一抹一样

871955c1d46f87d005e057227bcd0a7a.png

各种怀疑,然后找了个测试文件,测试各个php扩展是否能用,这下好了curl也是不能用的,而curl也是我必须要用的。

Your server does not meet the following requirements in order to install Magento.

The following requirements failed, please contact your hosting provider in order to receive assistance with meeting the system requirements for Magento:

You are missing the curl extension

You are missing the gd extension

You are missing the pdo_mysql extension

The following requirements were successfully met:

You havePHP 5.2.0 (or greater)

Safe Mode is off

You haveMySQL 4.1.20 (or greater)

You have the dom extension

You have the hash extension

You have the iconv extension

You have the mcrypt extension

You have the pcre extension

You have the pdo extension

You have the simplexml extension

实在没辙了,网上连英文的都搜了,也没有,只好去php文件夹一个一个看。万幸真的看出了问题

8152f09bee47e1e61a4e82e97b4272ad.png

万般无奈之下开始找各种其他Apache下载,最后找到了伟大的phpstudy,真没有做广告,发现只有这个好使,它的配置是这样的,只要按照这个配置,我其他十几个Apache全好使了。

extension=php_bz2.dll

extension=php_curl.dll

;extension=php_fileinfo.dll

;extension=php_ftp.dll

extension=php_gd2.dll

;extension=php_gettext.dll

;extension=php_gmp.dll

;extension=php_intl.dll

;extension=php_imap.dll

;extension=php_interbase.dll

;extension=php_ldap.dll

extension=php_mbstring.dll

;extension=php_exif.dll      ; Must be after mbstring as it depends on it

extension=php_mysqli.dll

;extension=php_oci8_12c.dll  ; Use with Oracle Database 12c Instant Client

;extension=php_openssl.dll

;extension=php_pdo_firebird.dll

extension=php_pdo_mysql.dll

;extension=php_pdo_oci.dll

;extension=php_pdo_odbc.dll

;extension=php_pdo_pgsql.dll

extension=php_pdo_sqlite.dll

;extension=php_pgsql.dll

;extension=php_shmop.dll

感想:

1:开源软件,非必须的扩展,别TM开启。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值