Centos7php. ini modification invalid compilation install phpnginxmysql in the mysql extension php problems this post finally by u011789405 in 2015-04-22:30:35 edit php version 5.6.7phpinfo () & nbsp; function & nbsp; view the following & nbsp; path: usr centos 7 php. ini modification invalid compilation install php nginx mysql in mysql extension php problems
This post was last edited by u011789405 on 17:30:35
5.6.7 for php
View the phpinfo () function as follows:
Path is
/Usr/etc/php/etc
[[email protected] php]# cd /usr/etc/php/etc
[[email protected] etc]# ls
pear.conf php-fpm.conf php-fpm.conf.default php.ini
At least timezone = PRC has been changed here
However, the default value is displayed. I have definitely changed the file/usr/etc/php. ini.
Mysql. so is also generated
Extension
Extension = mysql. so or the path followed by mysql.
Only one php. ini file in the root directory can be found.
[[Email protected]/] # find-name php. ini
./Usr/etc/php. ini
Where can this change be used?
During compilation, all the paths in php. ini are specified.
I wrote about the process.
Http://www.cnblogs.com/xxx91hx/p/4410188.html
I really don't know what went wrong. please kindly advise yourself to search for it for several days ......
If it doesn't work, the location should be incorrect. but why is it not affected? or I have installed fewer modules ....
This is the extended directory.
Generated
I don't know what else to add. Why can't I modify it? I need to add an extension of mysql to link to the mysql database ~
Please kindly advise ~
------ Solution ----------------------
Mysql extension is not recommended at the beginning of php5.5. there will be an expiration warning during use. we recommend that you use mysqli or pdo extension.
------ Solution ----------------------
Your error is that you have not set the time zone. what is the relationship with mysql?
------ Solution ----------------------
Change my. cnf in linux. I remember this file. remember to use the root user. the file to be changed is/etc/my. cnf.