为了账号安全,请及时绑定邮箱和手机立即绑定

安装了 php5-mysql 这个扩展后,还是找不到文件:cat: /etc/php5/conf.d/mysql.ini: No such file or directory

igreenmind@iGreenMind:~$ sudo apt-get install php5-mysql

Reading package lists... Done

Building dependency tree       

Reading state information... Done

The following NEW packages will be installed:

  php5-mysql

0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.

Need to get 63.2 kB of archives.

After this operation, 297 kB of additional disk space will be used.

Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main php5-mysql amd64 5.5.9+dfsg-1ubuntu4.9 [63.2 kB]

Fetched 63.2 kB in 3s (19.3 kB/s)     

Selecting previously unselected package php5-mysql.

(Reading database ... 83495 files and directories currently installed.)

Preparing to unpack .../php5-mysql_5.5.9+dfsg-1ubuntu4.9_amd64.deb ...

Unpacking php5-mysql (5.5.9+dfsg-1ubuntu4.9) ...

Processing triggers for libapache2-mod-php5 (5.5.9+dfsg-1ubuntu4.9) ...

Setting up php5-mysql (5.5.9+dfsg-1ubuntu4.9) ...


Creating config file /etc/php5/mods-available/mysql.ini with new version

php5_invoke: Enable module mysql for cli SAPI

php5_invoke: Enable module mysql for apache2 SAPI


Creating config file /etc/php5/mods-available/mysqli.ini with new version

php5_invoke: Enable module mysqli for cli SAPI

php5_invoke: Enable module mysqli for apache2 SAPI


Creating config file /etc/php5/mods-available/pdo_mysql.ini with new version

php5_invoke: Enable module pdo_mysql for cli SAPI

php5_invoke: Enable module pdo_mysql for apache2 SAPI

Processing triggers for libapache2-mod-php5 (5.5.9+dfsg-1ubuntu4.9) ...

igreenmind@iGreenMind:~$ cat /etc/php5/conf.d/mysql.ini

cat: /etc/php5/conf.d/mysql.ini: No such file or directory

igreenmind@iGreenMind:~$ sudo service mysql restart

mysql stop/waiting

mysql start/running, process 4527

igreenmind@iGreenMind:~$ cat /etc/php5/conf.d/mysql.ini

cat: /etc/php5/conf.d/mysql.ini: No such file or directory

igreenmind@iGreenMind:~$ sudo service apache2 restart 

 * Restarting web server apache2                                                                                   AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message

                                                                                                            [ OK ]

igreenmind@iGreenMind:~$ cat /etc/php5/conf.d/mysql.ini

cat: /etc/php5/conf.d/mysql.ini: No such file or directory

igreenmind@iGreenMind:~$ 


正在回答

19 回答

同样的问题o(TヘTo)

0 回复 有任何疑惑可以回复我~

Ubuntu14.04版本对应的目录查看方法:cat /etc/php5/mods-available/mysql.ini即可查看.

0 回复 有任何疑惑可以回复我~

视频中讲解是Ubuntu12版本,Ubuntu14.04版本对应的目录查看方法:cat /etc/php5/mods-available/mysql.ini即可查看.

4 回复 有任何疑惑可以回复我~

你们的ubuntu版本是什么,我试过12.10就可以成功,14.10就不行了

0 回复 有任何疑惑可以回复我~

同样问题


0 回复 有任何疑惑可以回复我~

求解。。

0 回复 有任何疑惑可以回复我~

同样的问题。。。

0 回复 有任何疑惑可以回复我~

同样的问题、、、

0 回复 有任何疑惑可以回复我~

同样的问题

0 回复 有任何疑惑可以回复我~

同样的问题

0 回复 有任何疑惑可以回复我~
首页上一页12下一页尾页

举报

0/150
提交
取消

安装了 php5-mysql 这个扩展后,还是找不到文件:cat: /etc/php5/conf.d/mysql.ini: No such file or directory

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信