0

I installed WAMPP web server, and now after configuring php.ini to use Netbeans for PHP coding (following this), I had to restart the Apache and MySQL servers. I actually stopped them and tried to start again, and I am getting this error:

PHP Startup: Unable to load dynamic library 'C:xampp\php\ext\php_intl.dll' - %1 is not a valid Wind32 application.

I am on a 64 bit Windows 7 OS.

I installed XAMPP v1.8.3 (got from www.apachefriends.org)

My PHP version (got from phpinfo() is PHP version 5.5.11.

I have tried solutions to the questions addressing the same issue.

1. I tried to copy all the icu*.dll's to apache>bin directory, no joy. They were already there. I did not replace them.

2. I have my extension=php_intl.dll uncommented and points to the right directory. To no gain.

3. I added the directory of icu*.dll files to my system environment variables, did not help.

4. My php_pdo_firebird.dll in php.ini is already commented out.

Now, not a valid win32 application makes me think I have something for 64bit OS and it should be for 32bit OS.. But what is it? What do I do about it?

Please help me resolve this error.

Community
  • 1
  • 1
Solace
  • 8,612
  • 22
  • 95
  • 183

2 Answers2

3

You have to install Miscrosoft Visual C++ Redistributable. Use x86 version if you use 32bit PHP. Use x64 version if you use 64bit PHP.

If you are not sure which PHP you use, install both versions of Miscrosoft Visual C++ Redistributable. Nothing will break.

For PHP 7.2, PHP 7.3 and PHP 7.4 you need version 2017 (VC15).

Download Visual C++ Redistributable for Visual Studio 2017 Older versions (2015 or 2012) are not needed if you install this one.

For PHP 7.0 and PHP 7.1 you need version 2015 (VC14).

Download Visual C++ Redistributable for Visual Studio 2015.

For PHP 5.6 you need version 2012 (VC11).

Download Visual C++ Redistributable for Visual Studio 2012

pulzarraider
  • 2,297
  • 19
  • 26
0
  1. Change/Add env variable for PATH to your php version
  2. Download Visual C++ will resolve
roby.elan
  • 134
  • 1
  • 10