Today I have installed php7, but when I restart the apache, it couldn't start. again despite I edited the httpd-xampp.conf file to config php7.
anyway I went to C:/xampp and run the apache_start.bat, then I saw the following error
Apache 2 is starting ...
httpd.exe: Syntax error on line 456 of C:/xampp/apache/conf/httpd.conf: Syntax error on line 17 of C:/xampp/apache/conf/extra/httpd-xampp.conf: Cannot load C:/xampp/php/php7ts.dll into server: The specified module could not be found.
after that I checked those file and saw they're exist.
what can I do now?
thanks in advance...
You need to have all the components installed in the same x64/x86 version :
Apache (httpd.exe -v to find out which one is installed)
PHP 7 (php.exe -v to find out which one is installed)
Visual C++ Redistributable for Visual Studio 2015 (check the list of your installed softwares on Windows)
If one of the above component is not in the same version than the others, you could get the module could not be found error.
Related
I'm trying to get PHP 7.4.1 (NTS x64, Zip version) to run on my Windows development machine, but I'm getting the following output in my run window in PhpStorm:
C:\path_to_php\php.exe -S localhost:80 -t C:\path_to_my_project\www
[Tue Dec 31 15:42:39 2019] PHP Warning: 'vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0
Process finished with exit code 1
I've done some research on the problem and found this existing question that suggests installing the latest Microsoft Visual C++ Redistributable for Visual Studio 2019 found here. I installed the latest x64 version and restarted my computer but to no avail, I still get the exact same error message. I have also tried running the installer again and done a repair+restart, but that didn't help either.
Running php -i in the command line works flawlessly, and displays the configuration info for PHP 7.4.1, which is the same PHP instance I'm trying to run in PhpStorm.
The same problem occurs with PHP 7.4, but PHP 7.3 works like a charm.
I'm at a loss. Has anyone had the same problem, and found a solution?
As #Daniel Opitz commented on 14th Jan, the problem was, that PhpStorm is getting shipped with an old or wrong version of vcruntime140.dll.
To fix this error I had to :
open the directory C:\Program Files\JetBrains\PhpStorm 2019.3.1\jbr\bin and
then renamed the file vcruntime140.dll to vcruntime140.dll.old
Restart PhpStorm
It works like a charm
Looks like I had Microsoft Visual C++ 2017 Redistributable installed alongside Microsoft Visual C++ 2015-2019 Redistributable. When I uninstalled the 2017 version, PHP started playing nicely. Hope this helps people in the same situation!
I am using XAMP and the below worked for me
I renamed the file vcruntime140.dll to vcruntime140_old.dll under the folder
C:\xampp\apache\bin
php needs The latest supported Visual C++ to run.
I solved the problem in my pc by downloading The latest supported Visual C++. here is the linklatest supported Visual C++
I am using XAMPP and the below worked for me
without installed any version of Microsoft Visual C++ 2017 Redistributable
I renamed the file vcruntime140.dll to vcruntime140_backup.dll under the folder
C:\Windows\System32
second thing is go to this folder path for example C:\xampp\mysql\bin search for the same file vcruntime140.dll
copy & paste into this folder path:
C:\Windows\System32
In my apache error.log I have the following line:
PHP Warning: PHP Startup: Unable to load dynamic library 'ext\\php_curl.dll' - The specified procedure could not be found.\r\n in Unknown on line 0
However I have checked my PATH variable and the PHP directory is listed, the ext folder is set correctly and php_curl.dll exists in the folder.
I have reinstalled VC++ redistributes to ensure that there are no issues there.
During my checking I have found that all of the following DLLs are present when opening them from run (to test they can be found from the PATH variable):
ws2_32.dll
wldap32.dll
php7ts.dll
libeay32.dll
libssh2.dll
nghttp2.dll
ssleay32.dll
normaliz.dll
kernel32.dll
vcruntime140.dll
api-ms-win-crt-stdio-l1-1-0.dll
api-ms-win-crt-string-l1-1-0.dll
api-ms-win-crt-heap-l1-1-0.dll
api-ms-win-crt-convert-l1-1-0.dll
api-ms-win-crt-filesystem-l1-1-0.dll
api-ms-win-crt-runtime-l1-1-0.dll
api-ms-win-crt-utility-l1-1-0.dll
api-ms-win-crt-time-l1-1-0.dll
api-ms-win-crt-environment-l1-1-0.dll
I am unsure of what dependencies that php_curl could have, if you could provide any suggestions then this would be greatly appreciated.
More system info:
Compiler MSVC14 (Visual C++ 2015)
Architecture x64
Windows 7 platform
PHP version 7.1.4
Apache version 2.4
I have the same issue. I was not able to find the root cause for this error but I managed to find a fix. Simply copied php_curl.dll from previous version of php I used - 7.1.2 x86 Thread Save. Everything works fine for now.
I've been browsing net few days, however I haven't find the solution to my problem yet. So here I am, asking my first stackoverflow question ever:
I need to install imagick to my UwAmp local server.
My current imagemagick version: ImageMagick-6.8.9-1-vc9-x86
I have Windows 7 x64, but neither x64 version of ImageMagick made my local server run the imagick. In command line, ImageMagick is working OK.
My PHP version: 5.4.31
The extension is listed in UwAmp list of extensions, but when i run PHPinfo there isn't a single word about imagick. My Apache error log doesn't print any error associated with loading problems.
When I run the test file, it prints out: Fatal error: Class 'imagick' not found.
I have tried bunch php_imagick.dll files for various versions of PHP, for x64 wamp server, for x86 one etc. The solutions I have found doesn't solve it. Neither do the step-by-step tutorials.
Have you experienced this problem so far? What php_imagick.dll file would you recommend me to try?
Thank you for you help, Michael
EDIT: my UwAmp version is 32 bit
Detailed guide for newbies like me.
Took a long time to get it to work.
I initially followed:
http://php.net/manual/en/imagick.installation.php
but after installation, PHPInfo under imagick shows
number of supported formats = 0
So I followed these steps, clobbered from various sources
to get it to work.
Click PHPInfo and check:
Architecture = x86 or x64
Thread Safety = yes or no
Download ImageMagick from:
http://windows.php.net/downloads/pecl/deps/
In my case I downloaded: ImageMagick-6.9.3-7-vc11-x86.zip
because the Architecture under PHPInfo is x86
as for vc11 or vc14
search google for "visual c++ 11 runtime" or
"visual c++ 14 runtime" and install it
Unzip and copy all dlls from the bin subfolder to the
Apache bin directory. It's a bunch of CORE_RL_.dll
and IM_MOD_RL_.dll plus a few other dlls.
In my case, I installed UwAmp in C:\UwAmp, so:
(from zip) bin/*.dll --> C:\UwAmp\bin\apache\bin
Goto:
http://pecl.php.net/package/imagick
as of today, latest is 3.4.1 so I went to:
http://pecl.php.net/package/imagick/3.4.1/windows
My PHP version is: 5.6.18, and Thread Safety is Yes from
Step #1, so I downloaded:
5.6 Thread Safe (TS) x86
and got: php_imagick-3.4.1-5.6-ts-vc11-x86.zip
Unzip and copy "php_imagick.dll" to the php extension folder:
In my case:
php_imagick.dll --> C:\UwAmp\bin\php\php-5.6.18\ext
Note: this ZIP also contains dlls which other guides says
to extract to the extension folder of apache.
NO NEED TO DO IT. Step #3 has taken care of it.
Edit "php.ini" and add:
extension=php_imagick.dll
or (I placed it at the very end):
[Imagick]
extension=php_imagick.dll
For super newbies: click the edit button in the UwAmp UI,
"php_uwamp.ini" will open and edit it. It will be copied to
the correct php.ini when UwAmp is restarted. I had
trouble at first since there are several php*.ini scattered
all over.
Restart Apache
Check PHPInfo
scroll to section (or find): imagick
number of supported formats: 234 (on mine)
If there is no "imagick" section or "supported format" is 0,
something went wrong.
Hope this helps.
BTW, the comment to the question by "Gras Double" works,
just wish I had found it earlier.
THe last time I installed PHP there was a great install program. Now I guess I have to do this version manually, So
I am trying to install PHP 5.5.15 on a Windows Server 2008 r2 64 bit and I am getting no where. I have followed the instruction multiple times and no dice.
If I try to check PHP by typing ...testphp.php into IE I get the following error:
HTTP Error 500.0 - Internal Server Error
C:\PHP\php-cgi.exe - The FastCGI process exited unexpectedly
Detailed Error Information
Module
FastCgiModule
Notification
ExecuteRequestHandler
Handler
PHPFast_CGI
Error Code
0xc0000135
IF I try to check using the Command Line I get error that says MSVCR110.dll is missing. I have installed MS Visual C++ 2010 x64 red... and also tried installing MS Visual C++ 2012 x64 red... and that did not fix the problem.
What am I doing wrong?
Steps used
Set up IIS
Download PHP (non thread safe), unzip to php folder
added Module Map...(FastCGIModule)
try to test php
also tried to modify the php.ini file before testing and no dice
Install the 32 bit version of VC11 or 9 from Microsoft. PHP is most likely 32 bit unless you selected the experimental version of PHP from their site - regardless of your OS type. I think that might solve your problem.
BUT...
I can't get php 5.5 to work on IIS 7.5 and Windows. I've tried for several days and I get 404.3 module handler or MIME type missing. No matter what the hell I do.
ImageMagick is working when I test it from cmd but when using it for Xampp and restarting it then the error message I receive is:httpd.exe-Entry Point Not Found. The procedure entry point MagickGetImageGravity could not be located in the dynamic link library CORE_RL_wand_.dll.
The second message is PHP StartUp: Unable to load dynamic library C:\xampp\php\ext\php_imagick.dll- The specified procedure could not be Found.
I'm pretty sure second error message is caused by first error up top. Probably wrong dll. I'm on Windows 7 64 BIT running PHP 5.3.5 and Apache 2.2.17. Thanks
My refrence is this page
ImageMagick 6.8.0 binaries compiled with VC9 (Visual Studio 2008). I noticed that the official ImageMagick builds are now Visual Studio 2010 and that wouldn’t work well with PHP compiled with 2008. see phpInfo() and search for compiler and php version.
The download link for the binaries is here: imagick-php54-php53.tgz
I download this folder and copy php54 -> php_imagick_ts.dll to xampp\php\ext
My PhP Version is : PHP Version 5.4.4
then rename it to php_imagick.dll.
At the end restart your appache server.
I had this same problem and banged my head against all kinds of possible solutions before finally finding a combination of Imagick builds and dll's that would play nicely with my setup. Here's what finally worked for me:
OS: Windows 7 64 Bit
PHP: 5.5.6
XAMPP: 1.8.3
Compiler: MSVC11
Architecture: x86
ImageMagick: ImageMagick-6.7.7-5-Q16-windows-dll (available here)
Imagick DLL: PHP5.5.x version from http://www.peewit.fr/imagick/
Once I finally had this set up, Apache finally started without any errors. Hopefully it works for you, too!
I think there some problem loading imagemagick php module while you install latest version of windows binary ,i rectify the problem by download 6.7.7-5-Q16 32bit version and its worked on that version.once install this version download imagemagick PHP module and restart apache.