php安装扩展之后在php.ini需要调试的东西

php安装扩展之后,其实在php.ini里面也需要开启扩展才行

 extension=php_bz2.dll
 extension=php_curl.dll
 extension=php_fileinfo.dll
 extension=php_gd2.dll
 extension=php_gettext.dll
 extension=php_mbstring.dll
 ;extension=php_exif.dll      ; Must be after mbstring as it depends on it
 extension=php_mysql.dll
 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
图片.png

php.ini所在的位置

  • 如果是ubuntu nginx环境
/etc/php/7.0/fpm/php.ini

我们也可以用指令查找

sudo find / -name php.ini
  • 如果是MAMP集成环境
vi /Applications/MAMP/conf/php7.0.8/php.ini

你可能感兴趣的:(php安装扩展之后在php.ini需要调试的东西)