The setting method of php.ini in Apache

  • 2020-05-30 19:44:57
  • OfStack

Such as:


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

The php.ini and PHP DLL used by Apache are both loaded with version 5.4.3. Have IIS use php.ini in the environment variable.

In addition, when wamp is started, it is often prompted similarly

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

"php_pdo.dll was not found, so the application failed to start. The need to reinstall the application may fix the problem.

The error on.

Solutions:

1. In "D: / wamp bin php/php5. 4.3" directory under the two new files:

php-win.bat reads:


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

Content as follows:

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

Where -c is the meaning of the specified program startup is to load the php.ini path.

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

Restart wampmanager.exe will not have the error of missing the hardpoint.

Success comes from actions and facts, not words.


Related articles: