VC++ builds for WAMP PHP upgrade - php

Currently i have Php 5.3.13 on WAMP 2.2 and wish to upgrade php to next higher version. Also I've VS 2010 installed on my machine. While installing wamp 2.2, i installed VC9. Will installing VC11 affect my existing visual studio components?
**Edit - Sorry, i missed it. I'm doing dot net development and hence i've installed VS2010

You do not have to install the Visual Studio Suite. All that is required are the correct Visual Studio Version Runtime Libraries.
Do a google using "msvc runtime" as the search and you will get links to all the various versions of the Runtime Libraries. Its never a bad idea to have a complete set, as they are used by any software compiled with the MS Visual C/C++ compiler. If you are using a 64bit Windows then its also a good idea to download the 32bit and 64bit versions as of course Windows 64bit will also run Windows 32bit code.

Related

Update WampServer PHP 5.3.13 To PHP 5.4.45 Doesn't Work

I'm trying to upgrade the PHP on my WampServer installation (Apache 2.2.22, PHP 5.3.13, MySQL 5.5.24) from PHP v5.3.13 to v5.4.45. I only want to update PHP, not any of the other WampServer components. I've confirmed that my installed WampServer was compiled with the Microsoft VC9 compiler and that PHP 5.4.45 is also compiled with the same Microsoft VC9 compiler. I've used the instructions given at this link in the HOW TO MANUALLY INSTALL A NEW RELEASE OF PHP INTO THE WAMP ENVIRONMENT section (a little more than halfway down in the article) to install PHP 5.4.45:
http://forum.wampserver.com/read.php?2,60567,page=2
When I change my PHP version from 5.3.13 to 5.4.45 (using the WampServer menu that's displayed when I click on the WampServer Task Bar icon) the color of the WampServer icon changes from green (when PHP 5.3.13 is selected) to orange (when PHP 5.4.45 is selected). Does anyone have an easy-to-understand set of instructions for upgrading just the PHP component of WampServer? I'm really sketchy in my knowledge about how to upgrade individual WampServer components, so I am looking for something basic that covers every step in 'beginner detail.' I don't want to upgrade the entire WampServer environment because I'm using the current WampServer installation as my Website development platform and that would affect my already-developed Websites.
Thanks In Advance For Your Help -
I figured out that my installed WampServer is 64-bit and that the only available PHP 5.4.x download available from PHP.net is 32-bit. Both the compiler versions and the bit count must match in order to upgrade PHP successfully in a WampServer environment. This is because WampServer runs PHP as a "subroutine" of Apache. The compiler versions used to create my 64-bit Apache 2.2.22 and the 32-bit PHP 5.4.45 both match (VC9). However, the PHP 5.4.45 download available on PHP.net is 32-bit (there is no 64-bit option). The 32-bit version won't work with my 64-bit Wampserver (specifically the 64-bit Apache 2.2.22) and that's why my upgrade PHP failed.
download PHP 5.4.45
download other version http://windows.php.net/download#php-5.5
copy to:
c:\wamp\php\

Showing Error opening of WAMP server

I have installed WampServer 2.2 on Windows 8.1.
When I try to start WampServer, it shows the following error:
The program can't start because MVSCR110.dll is missing from your computer.
How can I fix this?
MVSCR110.dll references to the Visual C++ 2012 Redistributable, of which you do not have.
The Visual C++ 2012 Redistributable is required for Apache to run. The reason why your Wamp installation is not going online is because Apache is unable to start.
A forum post on the WAMP Server forums deals with this problem with an earlier version of Wamp, to quote:
For Windows 32 : Be sure that you have installed the Visual C++ 2012
SP1 Redistributable Package x86 : VC12 SP1 vcredist_x86.exe
For Windows 64 : Be sure that you have installed the Visual C++ 2012
SP1 Redistributable Package x64 : VC12 SP1 vcredist_x64.exe
Apache will not run without this component
In fact if you are running the 64bit Windows it is a good idea to
install all the 32bit libraries as well as the 64bit ones. After all
64bit windows runs 64 and 32 bit code. You will probably find you need
at least one of the 32bit runtimes for some app/utility you will
install at some point.
Some users have also said that installing the Redistributable for their processor type isn't enough, so it may be a good idea to install both x64 and x86 versions.
WampServer versions b and later require the VC++ 2012 version, which can be downloaded here.
As far as I remember Windows 8.1 comes (out of the box, so to speak) with only one of Microsofts Visual C++ runtimes installed.
It seems a little odd that you are getting the message you claim if you are in fact using WAMPServer 2.2(a,c,d,or e)
The program can't start because MVSCR110.dll is missing from your
computer.
As as far as I am aware nothing delivered by any of the WAMPServer 2.2 releases i.e. 2.2a, 2.2c, 2.2d, 2.2e were compiled with MSVC 2012. In fact as stated on the download pages on SourceForge
Attention : All the components of the v2.2 WampServer stack have been compiled with VC9 version of Microsoft compiler. Earlier versions of Wampserver have been made with VC6 version of Microsoft compiler. So, You can't mix components of 2.2 stack with previous version of Wampserver Stack components. If you do it you will get an instable Wampserver.
However, if that is in fact the error you are getting after installing WAMPServer 2.2, then that message is saying that you need to install the MSVC 2012 runtime library.
Which can be downloaded from here.
You will also need to make sure that you have the MSVC 2008 runtime library installed as well, as wampmanager.exe is an old program as has not needed to be recompiled for a while now which can be downloaded from here
This runtime will also be required to run Apache and MySQL executables if you did in fact install WAMPServer 2.2.something
Oh and if you are using a 64bit WAMPServer, you will need to download and install the 32bit AND the 64bit version of the MSVC 2008 runtime library, as wampmanager.exe is a 32bit program even if you have installed the 64bit version of WAMPServer and of course the Apache and MySQL will need the 64bit libraries.
If this does not fix your issue, then have a look at the Windows Event Log
Windows Key + R to launch the run dialog then enter eventvwr.exe and press the OK button
- On the left side of the windows click 'Windows Logs -> Applications'
- Look for the names 'Apache' or 'MySQL' in the 'Source' column which have a error symbol in the first column.
The error messages sent here are normally very descriptive and should at least point you in the right direction to solving your problem.
when you migrate to windows 8.1, MVSCR110.dll is outdated. then, it should be updated and installed into your PC again.

PHP Error: Unable to load dynamic library php_intl.dll, not a valid win32 application?

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.
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
Change/Add env variable for PATH to your php version
Download Visual C++ will resolve

Installing PHP 5 on Windows Server 2003 - %1 is not a valid Win32 application

I am trying to install PHP 5 on a Windows Server 2003 environment with IIS 6
After installing PHP, and making the necessary changes in IIS, I get the following error
%1 is not a valid Win32 application.
The server is not 64bit, it is 32bit. I have added the FastCGI
handler in Web Service Extensions,
I have added the PHP handler in
Web Service Extensions, I have also gone to "Web Sites Properties"
and clicked on Configuration: and set the appropriate mappings,
I've installed the reditrubition files as required by Microsoft...
I cannot for the life of me work out why it is not working.
Can someone please help?!
Finally got my installation working by installing the correct corresponding versions and dependencies. I hope this helps.
On IIS 6
PHP 5.4
VC9 x86 or x64
WinCache 1.3 for PHP 5.4
On IIS 7
PHP 5.5
VC11 x86 or x64
WinCache 1.3 for PHP 5.5
Try running PHP directly from command line to see if you receive the same error. If it is, the issue may be that a dependency cannot be found. PHP has a dependency on the Visual C++ Redistributable - from http://windows.php.net/download/ :
The VC9 builds require you to have the Visual C++ Redistributable for Visual Studio 2008 SP1 x86 or x64 installed.
The VC11 builds require to have the Visual C++ Redistributable for Visual Studio 2012 x86 or x64 installed.
if this doesn't help, run the Microsoft utility Depends.exe from http://www.dependencywalker.com/ to find out what might be the issue.
in System Properties > Environment Variables click on new in variable name = path and variable value = C:\wamp\bin\php\php5.3.13; and click on ok > ok > ok
click on run type cmd
in cmd type php
if you get up error in cmd type cd c:\ and enter now type php
I have faced the same issue on standalone Apache+PHP setup on Windows 10. Definitely the problem was in two different PHPs in the environment variable PATH (IIS distro and standalone distro). Removing the PHP for IIS from the PATH resolved the problem.
Unfortunately PHP only goes as far as 5.4 on Windows 2003. They officially dropped support for Windows XP and 2003 starting PHP 5.5.0.
http://windows.php.net
Here you can find PHP for older Windows systems: PHP 5.5.7, 5.4.23, 5.3.28 (x86/x64) available
Following binaries are available:
php-5.5.7-nts-Win32-VC11-x86.zip
php-5.5.7-Win32-VC11-x86.zip
php-5.5.7-nts-Win32-VC11-x64.zip
php-5.5.7-Win32-VC11-x64.zip
php-5.4.23-nts-Win32-VC9-x86.zip
php-5.4.23-Win32-VC9-x86.zip
php-5.4.23-nts-Win32-VC9-x64.zip
php-5.4.23-Win32-VC9-x64.zip
php-5.3.28-nts-Win32-VC9-x86.zip
php-5.3.28-Win32-VC9-x86.zip
php-5.3.28-nts-Win32-VC9-x64.zip
php-5.3.28-Win32-VC9-x64.zip
For "FastCGI" on Windows Server 2003, you should choose php-5.4.23-nts-Win32-VC9-x86.zip.

Installing PHP APC on Windows/Apache

i need help installing and configuring PHP APC i have downloaded from http://downloads.php.net/pierre/ in my PHP info, i see
Compiler MSVC9 (Visual C++ 2008)
Architecture x86
so i downloaded php_apc-5.3-nts-svn20100226-vc9-x86.zip. then to install, i tried adding
[PHP_APC]
extension=php_apc.dll
to php.ini. restarting Apache fails. trying to execute php in cmd results in an error saying php5.dll is missing. but i doubt so. removing the 2 lines from php.ini fixes the error. how can i install apc then?
UPDATE: This is a very old answer. Since then I've used APC well with php5.4 and since the upgrade to php5.5 which removed APC, moved to memcached.
On Windows, seems php5.3 cannot work with APC. I simply use php5.2.5 instead as it's not a production machine anyway.
for the record :
Which version do I choose?
If you are using PHP with Apache1 or Apache2 from apache.org, you need to use the VC6 versions of PHP
If you are using PHP with IIS, you should use the VC9 versions of PHP.
VC6 Versions are compiled with the legacy Visual Studio 6 compiler
VC9 Versions are compiled with the Visual Studio 2008 compiler and have improvements in performance and stability. The VC9 versions require you to have the Microsoft 2008 C++ Runtime (x86) or the Microsoft 2008 C++ Runtime (x64) installed
Do NOT use VC9 version with apache.org binaries
Short story use vc6 for apache and vc9 for windows
Personally i use PHP 5.2.6 and php_apc_3014_php521.dll. It works in production.
I had a similar problem. I used this copy of PHP APC: http://downloads.php.net/pierre/php_apc-3.1-svn20101116-5.3-vc6-x86.zip and it worked to put 3.1.7-dev in place on XAMPP 1.7.7 with PHP 5.3.8

Categories