安装了 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:~$