After the source code is installed with php, the php. ini file is not found and only the php. ini. default file is found, so it can run normally.

Source: Internet
Author: User
Php is not displayed after the source code is installed. ini only finds php. ini. the default file does not display php after the source code is installed normally. ini only finds php. ini. the default file can run normally. -------------------------- By the way, --------------------------------- when configuring and installing. After installing the ph source code to install php, I did not see the php. ini file and only found the php. ini. default file. it actually works properly.
After the source code is installed with php, the php. ini file is not found and only the php. ini. default file is found, which can run properly.
-------------------------- By the way -------------------------------
During configuration and installation. I used configuration items when installing php.
-- With-mysql-sock =/var/mysql. sock

The data of this configuration can also be seen in the phpinfo () output.
However, the configuration in php. ini. default is empty. Where can I save it?
---------------------
When cp php. ini. default php. ini redefined the mysql. sock configuration, it took effect.
What's going on?

Share: More


------ Solution --------------------
During php compilation, all your specified php extensions are built into php and loaded with php startup.
At this time, php. ini does not work.
The assignment of php. ini is required only when php extensions are compiled separately.

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.