Invalid modification of centos7php. ini compilation and installation problems related to phpnginxmysql in mysql extension of php

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.