Set PHP to load INI config file path under Apache, ~ and curl extension cannot load the problem

Source: Internet
Author: User

PHP is loaded into Apache as a module, and the PHP config file directory is c:windows. This is unreasonable, should choose the PHP itself directory configuration file load, can be set in Apache httpd.conf configuration file Phpinidir "here to fill in the PHP configuration file directory."

There are problems with the curl extension failing to load, and the problem is very strange, and the rest of the extensions are loaded properly, except that curl's extension cannot be loaded. Baidu search out the first few solutions are invalid, one of the methods to solve the problem, but I still do not know the root cause of the problem. The problem is solved by putting the PHP directory in the environment variable, and then restarting the server to solve the problem.

Set PHP to load INI config file path under Apache, ~ and curl extension cannot load the problem

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.