iGreenMind
2015-06-30 17:16
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:~$
同样的问题o(TヘTo)
Ubuntu14.04版本对应的目录查看方法:cat /etc/php5/mods-available/mysql.ini即可查看.
视频中讲解是Ubuntu12版本,Ubuntu14.04版本对应的目录查看方法:cat /etc/php5/mods-available/mysql.ini即可查看.
你们的ubuntu版本是什么,我试过12.10就可以成功,14.10就不行了
同样问题
求解答
求解。。
同样的问题。。。
同样的问题、、、
同样的问题
同样的问题
我也是这个问题
cat /etc/php5/mods-available/mysql.ini即可查看
我也是这个问题,求解
确实存在这种问题
我也出现了这种问题,不知道是什么情况
你有装mysql么
在Ubuntu Server下搭建LAMP环境
41158 学习 · 391 问题
相似问题