PHP. ini path settings, libmysql. dll loading, etc.

Source: Internet
Author: User
Tags php server sapi
Form: http://blog.ixpub.net/html/92/15070492-280599.html

In general, the phpinfo () page can be displayed. Let's start with the problem that occurs after the page is displayed.
PHP problems are displayed on the phpinfo () page.

First, check whether your php. ini path is correct.

Q: I have configured the php. ini file, but why is it ineffective after I restart the server?

A: There are several major issues.

The first reason is that the php. ini file read by the system is inconsistent with the php. ini file you modified at the time.

1. You can use the configuration file (PHP. INI) path option of phpinfo () to check which PHP. INI is read by the current PHP server.

2. If you want to change the file access location of PHP. ini, refer to the search sequence of PHP. ini, as shown below:

A) position specified by the SAPI module (phpinidir command in Apache 2,-C command line option in CGI and CLI, php_ini parameter in nsapi, and php_ini_path environmental variable in thttpd)

B) hkey_local_machinesoftwarephpinifilepath (Windows Registry location)

C) phprc Environment Variables

D) current working directory (for CLI)

E) Web Server Directory (for SAPI module) or PHP Directory (for other Windows scenarios)

F) Windows Directory (C: Windows or C: WINNT), or the location specified by the -- with-config-file-path option during compilation
*
......
[Read the full text]

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.