Home  >  Article  >  Backend Development  >  How to set up php.ini in Apache_PHP tutorial

How to set up php.ini in Apache_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:13:06853browse

For example:

Copy code The code is as follows:

1 LoadModule php5_module "D:/wamp/bin/php/ php5.4.3/php5apache2_2.dll"
2 PHPIniDir "D:wampbinphpphp5.4.3"

In this way, the php.ini and PHP DLL used by Apache are loaded with version 5.4.3. Let IIS use the php.ini in the environment variables.

In addition, when wamp is started, there will often be a prompt similar to

"Unable to locate the program input point php_checkuid in the dynamic link library php5ts.dll"

"php_pdo.dll was not found, so this application failed to start. Reinstalling the application may fix this problem."

Error on

.

Solution:

1. Create these two files in the "D:/wamp/bin/php/php5.4.3" directory:

php-win.bat content is:

Copy code The code is as follows:

php-win.exe -c "D:/wamp/bin/php/php5.4.3/"php.bat

The content is:
Copy code The code is as follows:

php.exe -c "D:/wamp/bin/php/php5.4.3/"

where -c is to specify whether the program is to be started or loaded. The meaning of php.ini path.

2. Replace php-win.exe and php.exe in wampmanager.ini with php-win.bat and php.bat.

Restart wampmanager.exe and there will be no error that the mount point cannot be found.

Success only favors actions and facts, not quick words.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/326557.htmlTechArticleFor example: Copy the code as follows: 1 LoadModule php5_module "D:/wamp/bin/php/php5.4.3/ php5apache2_2.dll" 2 PHPIniDir "D:wampbinphpphp5.4.3" In this way, the php.ini and PHP used by Apache...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn