As promised, here are the 64 bit builds of PHP 5.3.6 for Windows. PHP 5.3.6 was released about 12 days ago (17 March 2011) and includes a number of security and bug fixes (Changelog). Wanted to post this earlier but didn’t have the time to compile and test it.
Anyway, I noticed that the mcrypt extension is now a static extension and so there will be no php_mcrypt.dll file. If you copy over your old php.ini file, be sure to comment out the “extension=php_mcrypt.dll” line (in case you were using this extension and had that line uncommented).
Download
VC9 x64 Thread Safe
CRC32: 7721568E
MD5: B54501752E8B0BFF821B7D5492001E11
SHA1: 48A60C0BC79898C2033EC4F0337A55534FA4C4FA
php-5.3.6-nts-Win32-VC9-x64.zip
CRC32: 269853DE
MD5: FB908D1D4EB7AEBCF74BFA0997CF22F7
SHA1: 5B395461DB669342AEF38340822AC9FEC4C989B4
Additional Extensions
The pecl archives below contain the following extensions: APC 3.1.6, memcache 2.2.6, pecl_http 1.7.0 and pdflib 2.1.8. The pdflib extension was compiled with PDFLib 8.0.2p3 and you will need this pdflib.dll file to use it.
pecl-5.3.6-Win32-VC9-x64.zip (Thread Safe)
pecl-5.3.6-nts-Win32-VC9-x64.zip (Non Thread Safe)
eAccelerator-0.9.6.1_php-5.3.6-Win32-VC9-x64.zip (Thread Safe)
Otomatic
Hello,
Many thanks !
willfull
Thank you, sir, for providing these 64-bit compilations. I really appreciate the contribution you’re providing for the Windows PHP community.
Dtavare
Great work as always……
Big up yuh self…
Otomatic
Hi,
Installed with Apache 2.2.17, MySQL 5.5.10 on Windows 7 Pro 64. All work well together.
Good job. Thanks a lot.
Anindya Author
@Otomatic
You’re welcome. And it’s good to know that your setup is working well. π
@willfull
You’re welcome too. π
@Dtavare
Yup, I will do that. π
Goerge
Great job, works nice π
Jay Pearce
I sincerely appreciate your hard (and selfless) work for our x64 community! I wish I could say, however, that my PHP 5.3.6-Win32-VC9-x64/Apache 2..2.17-x64-openssl-1.0.0d.msi upgrade has been as successful as the others who commented above.
After a recent crash I elected to do a clean install of win7 (ultimate) from XP. My account has admin permissions, etc. Your build of Apache 2.2.17 installed and tested perfectly. However, after installing PHP, Apache crashes when it reaches
LoadModule php5_module “C:/Program Files/PHP/php5apache2_2.dll”
in httpd.conf, with this OS message:
Faulting application name: httpd.exe, version: 2.2.17.0, time stamp: 0x4d825c28
Faulting module name: php5ts.dll, version: 5.3.6.0, time stamp: 0x4d90eea6
All the files, folders, and paths are correct, as well as correctly pointed to by PATH=.
Might you find the time to help me with this? I’ve pretty much exhausted my resources.
Thank you.
Will
Hello.
I’m sorry to be a burden, but i’m a big fan of what you do and I am very greatful. Unfortunatly, when i’ve setup my Apache, php and MySQL, when I go to http://localhost/ I can’t seem to find the MySQL section… unless the new php doesn’t have it? I don’t know but the tutorial i took (http://webdevcodex.com/tutorial-installing-apache2-php5-mysql5-phpmyadmin3-windows-7-vista/) says it should be there. If it’s any help i’m using MySQL 5.5.10, php 5.3.6 and apache 2.2.17. Thankks for the help and again, apologies.
Anindya Author
@Jay Pearce
I can’t think of anything since you say that all the files, folders and paths are correct. Maybe you should try re-downloading PHP. You can also try installing the Visual C++ 2008 Redistributable Package even though it shouldn’t be necessary since I tested my PHP builds on a clean install of Windows 7 Ultimate without the Visual C++ Redistributable Package installed.
@Will
Did you set the “extension_dir” and uncomment “extension=php_mysql.dll” in your php.ini?
Maz
Hello Anindya,
Sorry to keep bothering you, but I’ve run into a little snag… I tried installing the 32-bit PHP on my IA64 Server 2003 machine, but there is no Fast-CGI support (Fast-CGI for IIS6 is only available for x86 and x64) and PHP 5.3.x doesn’t come with a php5isapi.dll as a fallback anymore. I was wondering if you’d be able to compile an x86 php5isapi.dll, or is that too much of a hassle?
Thanks,
Maz
Anindya Author
Hi Maz. I can’t help but wonder why you are using an IA64 server, that too with Windows 2003. Also, I don’t understand why you think you can use 32 bit php5isapi.dll and not the 32 bit php-cgi.exe. If your server supports 32 bit emulation then you should be able to use the 32 bit php-cgi.exe.
In case I am mistaken, let me know and I will compile a 32 bit php5isapi.dll for you. It don’t think it will be too much of a hassle. π
Maz
Anindya,
The price just happened to be right on the server I picked up. And for Server 2003, I can’t use 2008/2008 R2 because the server apparently isn’t ACPI compliant to the degree Windows wants it to be.
As for CGI, I would use it if I could, but all the tutorials I can find on how to install PHP with IIS say that I need FastCGI. Server 2003 doesn’t come with FastCGI by default, and there is only a download for IA32 and AMD64 versions for Server 2003/IIS6 at http://www.iis.net/download/fastcgi. If I can use the built-in CGI support with PHP I would but I can’t find any literature on it.
As for the ISAPI module, I’m not going to be running any demanding PHP applications–just Ampache and a contact form that uses PHP’s mail function, so hopefully I can get away with the ISAPI interface.
If you have any suggestions on how I can get the CGI module working, or if you can compile an x86 version of php5isapi.dll it would be greatly appreciated.
Thanks!
Jay Pearce
Thanks for the help. All is well now. I started over with php.ini and a link provided in a comment on apache lounge:
http://webdevcodex.com/tutorial-installing-apache2-php5-mysql5-phpmyadmin3-windows-7-vista/
Starting at step 2.2 I re-configured PHP and voilΓ ! This link appears to provide a really thorough tutorial for installing Apache/MySQL/PHP and PhpMyAdmin
Thanks again!
Will
@Anindya
Sorry for the late reply,
Thankyou so much i forgot to set the ‘extension_dir’. It now shows on my php infomation and is working fine. Apreciate all the good you do for the ’64 bit’ community :L . Thanks again!
Anindya Author
@Maz
Didn’t know that FastCGI needs to be installed separately in Windows Server 2003 to use php-cgi.exe. Anyway, here is the 32 bit php5isapi.dll. I tested it on Windows XP and it seems to work.
Alexander Shulman
Hi, i’m need PHP with PCRE with build option “–disable-stack-for-recursion”, can you help and make this for me? Tnx any chose for you work
k0st
works on my 2008R2 + IIS7.5
but isapi module crashes any time application pool (w3wp.exe) stops
Crash occurs if w3svc service is stopped , application pool stopped manually or recycled after certain amount of time (by default)
Faulting application name: w3wp.exe, version: 7.5.7601.17514, time stamp: 0x4ce7afa2
Faulting module name: ntdll.dll, version: 6.1.7601.17514, time stamp: 0x4ce7c8f9
Exception code: 0xc0000374
Fault offset: 0x00000000000c40f2
Faulting process id: 0x1064
Faulting application start time: 0x01cc04b203a43864
Faulting application path: c:\windows\system32\inetsrv\w3wp.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: 4714986e-70a5-11e0-ad66-00e04cb9b998
Cabob
Hi, any chance you’ll post an x64 version of the mongodb extension?
Thanks for all the work so far!
Anindya Author
Sorry for the late reply. Was busy.
@Alexander Shulman
PHP uses bundled pcre library and I have no idea how to compile it with ββdisable-stack-for-recursionβ option. But I will try to find out if it’s possible.
@k0st
If you are having trouble with the ISAPI module, you should use the CGI/FastCGI binary (php-cgi.exe) instead.
@Cabob
I will try and compile it when I have some free time.
Jesper
Hi Anindya.
All your work is very much appreciated. I have been working all day trying to set up a working Apache 2.2.17 + PHP 5.3.6 + PDFlib 8.0 with the help of your binaries on a win2003x64.
I have got this to work, but the pdflib.dll seem to be very unstable. It crashes often, and very easily if I am trying to produce something pdf larger than approx 125kB
I get errors in eventvwr and error.log is showing that the process reboots when crashing.
Event Type: Error
Event Source: Application Error
Event Category: (100)
Event ID: 1000
Date: 2011-05-14
Time: 17:05:24
User: N/A
Computer: CRM
Description:
Faulting application httpd.exe, version 2.2.17.0, faulting module pdflib.dll, version 8.0.2.3, fault address 0x000000000021ad9b.
[Sat May 14 17:05:00 2011] [notice] Parent: child process exited with status 3221225477 — Restarting.
[Sat May 14 17:05:01 2011] [notice] Apache/2.2.17 (Win64) mod_ssl/2.2.17 OpenSSL/1.0.0a PHP/5.3.6 configured — resuming normal operations
[Sat May 14 17:05:01 2011] [notice] Server built: Oct 24 2010 17:36:57
[Sat May 14 17:05:01 2011] [notice] Parent: Created child process 8956
[Sat May 14 17:05:03 2011] [notice] Child 8956: Child process is running
[Sat May 14 17:05:03 2011] [notice] Child 8956: Acquired the start mutex.
[Sat May 14 17:05:03 2011] [notice] Child 8956: Starting 250 worker threads.
[Sat May 14 17:05:03 2011] [notice] Child 8956: Starting thread to listen on port 443.
[Sat May 14 17:05:03 2011] [notice] Child 8956: Starting thread to listen on port 80.
Do you have any idea why this can be?
I have right now everything set up in x86 binaries instead – and have no problems then with the libpdf.dll that I downloaded from pdflib.com
Anindya Author
Hi Jesper. Can you give me a sample script that generates a large pdf so that I can test it in my PC?
Also, did you check if this happens with the 32 bit versions of PHP and PDFlib?
Bob
Hi
php-5.3.6-Win32-VC9-x64.zip I can not download an error after 23% please check the link
bagu
Hello,
sorry for the inconvenience, but I wonder if you could compile php_ice 3.3.1 for php5.3.6-v9-x86 ?
I have a bug with the 3.4.1 version and i would like to try with the 3.3.1.
Thanks in advance.
RicardoK1
Hi Anindya,
I see that you have compiled php_http x64 but can’t find anywhere the “normal” x86 version.
Pierre Joye have an old one but I didn’t find for version 1.7.1 (http://pecl.php.net/package/pecl_http)
Can you try a VC9 x86 TS version?
Thanks in advance and good work!
Ricardo
Portugal
Anindya Author
@bagu and @RicardoK1
Sorry for the late reply. Will compile the extensions you requested by tomorrow. π
bagu
Thanks alot again
Flyingfenix
Hi,
I’ve noticed that PHP_INT_SIZE remains at 4, while it should be 8 for 64-bit versions of PHP. In my case, I’ve worked around the problem using bcmath’s functions, so (for now, for me) no show stoppers.
Thanks anyway.
Anindya Author
@bagu
Sorry I kept you waiting. Unfortunately I was unable to compile the ice 3.3.1 php extension. It seems, it can only be compiled with VC 6 for VC 6 versions of PHP. I recommend that you contact the ice developers about the problem that you were having with the ice 3.4.1 php extension.
@RicardoK1
Here is the pecl http extension v 1.7.0. http://www.mediafire.com/file/kfifnkby3m14ezc/php_http-1.7.0-5.3-vc9-x86.zip
I couldn’t compile v 1.7.1 as I was getting some kind of zlib related build error. Also, the pecl http extension requires a few additional libraries like libcurl and libiconv and I had to compile them too. There were precompiled versions of those libraries at pecl2.php.net but that site has been down for quite a while.
Anindya Author
@Flyingfenix
That is something that only the developers of PHP can fix. And I don’t think they will since there is no official 64 bit PHP for Windows.
RicardoK1
Thanks Anindya!
bagu
@Anindya : Already done…no response…It seem that ice dev didn’t read their forum often.
ehouser
Thanks Anindya for all your doing on the Win x64 front.
Thanks to you, I have managed to get Apache 2.3.12 x64 working on Win 2K3 x64 with PHP Version 5.3.3 x64. However, I cannot get PDO for MSSQL to work as it is still 32 bit. Have you already recompiled the MSSQL PDO extensions for 64 bit? And if not, would you consider doing so?
These extensions can be found here:
http://www.microsoft.com/download/en/details.aspx?id=20098
I’m so close to having everything working in 64 bit, I can taste it.
Thanks for everything,
Eliot
kdn1990
How to compile php_apc for this php version ???
Please help to compile php_apc for PHP 5.3.6 vc9/vc6 x64
http://pecl.php.net/package/APC
kdn1990
sorry =)
i find it ))
Anindya Author
@ehouser
Unfortunately it is not possible to compile 64 bit versions of those extensions. And I remember reading somewhere that Microsoft is not going to add 64 bit support to those extensions unless an official 64 bit PHP build for Windows is released.
sir_ace
Hello all, looking for some help with getting the php_enchant module to load with this php build.
Currently i have the following line added to my php.ini file:
extension=php_enchant.dll
Confirmed the php_enchant.dll file is sitting in the ext folder as required, but when i start apache i get the following error in the log files:
“PHP Warning: PHP Startup: Unable to load dynamic library ‘C:\\Program Files\\PHP\\ext\\php_enchant.dll’ – The specified module could not be found.\r\n in Unknown on line 0”
Confirmed if i comment the “extension=php_enchant.dll” line out apache loads with no errors and it’s loading other modules fine just not the enchant one.
What am i doing wrong, or is there an issue here?
Anindya Author
Hi. You need to add “C:\Program Files\PHP” to your system’s “Path” environment variable.
sir_ace
Thank you Anindya,
I had it in the Administrator User Variables PATH not the System variables PATH, once i added it to the System Variables PATH the enchant module loaded with no errors.
Thank you again for your very prompt response.
Vorapoap
gettext crashed php completely
(return blank page in Apache/crashs on command prompt)
Please check this bug report. it is reported to be fixed in php 5.3.6
https://bugs.php.net/bug.php?id=53837&edit=2
SET LANG and LANGUAGE doesn’t help
I would be very appreciated if you will look into this
Lester Caine
Anindya … Don’t know if it is just a recompile, but APC has been bumped to version 3.1.9 with some changes in the windows area. I’m happy with eAccelerator myself but there have been a couple of posts asking for a later APC 64 bit build π
kdn1990
Please, compile that pecl module
http://sergey89.ru/notes/ffmpeg-php-windows/
Thanks
zmcjs
php 5.3.8 is relese!
please modfiy the x64 and x86 vc6!
Mars Woo
Hi Anindya, really appreciate your efforts! Do you have any instructions to compile php x64 binaries? Is it possible you share the instructions with me?
Marcel Beck
Hi,
could you include the php_ssh2 pecl module?
http://pecl.php.net/package/ssh2
Thanks
Steven martin
I know php5.3.7 had a huge bug but any luck with 5.3.8?
dios
5.3.8 cover the huge bug of 5.3.7 π so it would be nice to have this build x64 compiled… Anindya, we need you!!
George Gruber
Hi Anindya,
I have been running PHP 5.3.0 that I compiled myself from source code because I wanted the PHPISAPI.DLL (just not a fan of Fast CGI). Anyways, I found your blog and download 5.3.6 thread safe and I only had minor issues reconfiguring IIS to work with the x64 files. However, one function I use are the imap functions. I was running some code from the command line and it kept crashing. So I ran the original web based code and it is crashing at imap_open (Access Violation xxxxxx)
Are you aware of any such issue? What might be wrong?
dioskey
Ok i repost it… as many times as i need to… 5.3.8 resolve the huge crypt bug present in 5.3.7!
So Anindya can you compile it??
Anindya Author
@dioskey
Have some patience. I will post it soon. Need to compile newer versions of some external libraries first which is taking time. Hopefully everything will be done by this weekend. π
dioskey
You are great!! You know it? π
Thanks Anindya!
chiddie
Hello,
i download the VC9 x64 Thread Safe, but apparently there’s no way to make the php5isapi.dll work on Windows Server 2003 x64 (and, no, the “use cgi” option is not an option, i need isapi). When i go on the ISAPI filters page of my site in IIS, there’s always a red arrow with “not loaded” status.
Is there a reson why it does not work?
sandy
i wont find any msi in the zip file dnt know how to start installing and will not find explaining hash files uses
M Arif
I’ll Try…
Thanks Anindya!
Anindya Author
@chiddie
Try installing the Visual C++ 2008 Redistributable Package and see if that resolves your issue.
@sandy
There is no msi installer. You have to extract the zip file to a location of your choice (eg. C:\php) and then manually configure PHP and your web server. You can find manual installation steps here – http://www.php.net/manual/en/install.windows.php.
chiddie
Thank you, i’ll try as soon as i have time.
The problem anyway has become less important since i discovered that installing WSUS on a domain controller is not a recommended option (that’s the reason why i tried to make PHP run even under a full x64 IIS environment).
Jesper
Sorry for not getting back last time. You are outstanding providing the world with binaries.
I got the pdflib.dll to work – don’t remember what I did. Right now in the upgrade process of moving to apache 2.4 and php 5.4
would you be so kind as to make a new dll for php 5.4?
it would be more than a lot appreciated.
Jesper
btw – do you know why these binaries aren’t released as x64 to begin with? who uses x86 platforms these days?
DuaelFr
Thank you for your PEAR package it saved my day !
You may add a Flattr button on your blog π