问题
I have installed wincache. i followed the link and installed wincache.dll. the link is given below. Unable to load dynamic library 'php_wincache.dll'?
Before installation the error was. "[03-Jun-2020 12:00:44 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'php_wincache.dll' (tried: C:\PHP\ext\php_wincache.dll (The specified module could not be found.), C:\PHP\ext\php_php_wincache.dll.dll (The specified module could not be found.)) in Unknown on line 0"
After Installation iam getting. "[04-Jun-2020 07:40:55 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'php_wincache.dll' (tried: C:\PHP\ext\php_wincache.dll (%1 is not a valid Win32 application.), C:\PHP\ext\php_php_wincache.dll.dll (The specified module could not be found.)) in Unknown on line 0"
This is a laravel application on IIS server. please suggest what to do
The configuration of the system is given.
windows server 2016 standard 64-bit , IIS 10 , wincache-2.0.0.8-dev-7.4-nts-vc15-x86 , php 7.4.4 is installed on the server and laravel version is 5.8. These re the configurations please suggest. –
回答1:
You can try the following steps to solve your problem:
- Unpack the package into some temporary location.
- Copy the php_wincache.dll file into the PHP extensions folder. Typically this folder is called "ext" and it is located in the same folder with all PHP binary files. For example: C:\Program Files\PHP\ext.
- Using a text editor, open the php.ini file, which is usually located in the same folder where all PHP binary files are. For example: C:\Program Files\PHP\php.ini.
- Add the following line at the end of the php.ini file: extension = php_wincache.dll.
- Save and close the php.ini file.
- Recycle the IIS Application Pools for PHP to pick up the configuration changes. To check that the extension has been enabled, create a file called phpinfo.php with a PHP code that calls phpinfo function.
- Save the phpinfo.php file in the root folder of a IIS web site that uses PHP, then open a browser and make a request to http://localhost/phpinfo.php. Search within the returned web page for a section called wincache. If the extension is enabled, then the phpinfo output will list the configuration settings provided by the WinCache.
来源:https://stackoverflow.com/questions/62304103/unable-to-load-dynamic-library-php-wincache-dll-updated-question