Just noticed today that PHP 5.3.3 was released recently. However, there still aren’t any official 64 bit binaries for Windows available at php.net. So once again I have compiled PHP myself and here are the 64 bit binaries for Windows.
I have compiled both the thread safe and non thread safe versions together. They were compiled with Visual C++ 2008 (VC9). The thread safe version includes php5apache2_2.dll for use with Apache 2.2 and php5isapi.dll for use with IIS.
Update: I didn’t notice that the php_ldap.dll extension wasn’t compiled this time. It didn’t compile because as of PHP 5.3.3, it requires libsasl, which was missing. Anyway, I had to compile libsasl and then the php_ldap.dll which I am posting here separately.
I also took the time to compile eAccelerator for PHP 5.3.3 and also NTS version of WinCache which someone requested last time.
php_ldap.dll VC9 x64 Thread Safe
php_ldap.dll VC9 x64 Non Thread Safe
eAccelerator 0.9.6.1 VC9 x64 Thread Safe
eAccelerator 0.9.6.1 VC9 x64 Non Thread Safe
WinCache 1.1.0 VC9 x64 Non Thread Safe
Memcache 2.2.6 VC9 x64 Thread Safe
Memcache 2.2.6 VC9 x64 Non Thread Safe
Hi, great to see some 64 binaries but could you give some details about the steps involved in the compilation process? The tips on http://wiki.php.net/internals/windows/stepbystepbuild are good to start with but not full-proof.
That guide at wiki.php.net is pretty detailed in my opinion. I myself used it to to compile PHP. If you are trying to compile and are stuck at a particular point, then let me know and I will be glad to help you out.
Does PHP 5.3.3 x64 still have the same issue with mysql that you talk about in your post for 5.3.2?
Yes, it still has the same issue. I think they will never admit that its a bug and so will never fix it. 🙁
Any pointers on installing the PHP x64 version under Windows Server 2008 R2? The search results are a bit disappointing (i.e. It’s not clear anyone has successfully done this before with 32 or 64-bit PHP versions). I hate being on the bleeding edge!
Several attempts have failed so far, but I’ll keep plugging away. Microsoft made a big point of PHP support in IIS7.0, but seem mum on it with the 7.5 release. I did have the 32-bit version of PHP working with older Server 2008 x32 IIS7.0, but that was years ago.
Update: Solved it. After loading x64 nts version in the C:\PHP directory, found it needed the C++ redistributable (SP1) installed. Here is the link if anyone needs it.: http://www.microsoft.com/downloads/details.aspx?familyid=BA9257CA-337F-4B40-8C14-157CFDFFEE4E&displaylang=en
I am glad you got it working. You could have also used the thread safe version with the php5isapi.dll.
Thank you very much for providing these builds!
Out of curiosity, does the LDAP module not compile correctly? Or was there another reason for excluding it?
I configured PHP with “–enable-snapshot-build” which is supposed to automatically enable all extensions that it can. I didn’t notice that the ldap extension wasn’t enabled this time. Anyway, it was probably not enabled due to some missing libraries. I will find out what was missing and will try to compile it again as soon as possible.
Thanks for letting me know. 🙂
So relieved I have finally found a website with something that has up to date information about PHP on 64bit systems. I just want to say thanks for releasing this. I’m going to be tackling this install on IIS 7.5 / Windows 2008 R2 with updated MYSQL to follow. Any pointers to save some headaches?
I noticed the “bug” with 5.3.2 so I will make sure to address that as well.
Installation of PHP on IIS is pretty straightforward. You can either use the thread safe version of PHP with ISAPI (php5isapi.dll) or you can use the non thread safe version with FastCGI (php-cgi.exe).
You can find instructions on using the ISAPI here – http://www.iishacks.com/2008/07/03/how-to-install-php-isapi-on-windows-2008-iis7-x64 . You can skip step 8 and 9 of that tutorial since you will be using 64 bit PHP.
And instructions for FastCGI are available at the official php.net site here – http://www.php.net/manual/en/install.windows.iis7.php
You shouldn’t have any headaches if you follow those instructions. 🙂
I have compiled the php_ldap.dll extension and have added it to the post. Thanks again for letting me know that it was missing. 🙂
Can you please compile ZeroC Ice for nts x86 ? Its only compiled for the ts Version of PHP..
Many thx forup!
Ok, I will try when I have some time.
I have successfully compiled nts x86 version of ZeroC Ice for PHP 5.3.3. You can download it here. 😀
wow thx man your are my hero 🙂
I wonder what for do you need x64 version. Do you really set memory_limit over 4GB?
In my case I just wanted to use it with 64 bit Apache using the “Apache 2.0 Handler” (php5apache2_2.dll). 😀
And I am sure others have their own reasons for wanting to use 64 bit versions of PHP.
This is fantastic 🙂
Will the MSSQL driver from MS work with this.. I’m guessing not?
You guessed right. 🙂 The MSSQL driver binary provided by MS is for 32 bit PHP so obviously will not work with this 64 bit release.
But you can try the included php_dblib.dll extension.
Is there any chance you could compile that? The source code is available for it 🙂
^ ignore that, I’ve got dblib.dll working on 32bit so will try crossing over to x64 later 🙂
I’ve resorted using ADO to connect which is good but not great.. dearly would love the MS MSSQL Driver 🙂
What happened to the dblib extension?
I will try to compile the MS MSSQL driver when I have some time.
Thank you… you rock 🙂
Thanks. Great site.
I can’t find the snmp module for PHP 5.3.3. Is it available?
Is it possible to compile php_memcache.dll for x64 (IIS) NTS aswell. (PHP 5.3.3)
The rest is excellent work. It all works instantly. Thanks!!
What about the php_snmp extension ?
Sorry for the late reply everyone. I have been busy.
I tried to compile the mssql driver but unfortunately it didn’t compile successfully. There were lots of build errors. 🙁
@Andew and @rastamanx
I will try and compile the php_snmp extension soon.
Will see if its possible to compile the php_memcache extension for x64 NTS.
Many thanks for trying anyway, I had some issues with running on ADO or DBLIB so have had to scutter back to x32bit for time being 🙁
Hello Anindya. Is it possible to compile php_firebird.dll for win x64 NTS (firebird version 2.1) ? Please Please Please!!! That ext is Very important for me.
I’ve just installed your PHP 5.3.3 x64 build running as an Apache 2.2.16 x64 module under WIn7 x64 and IT WORKS FINE. Better than the PHP x64 I had before (it was 5.2.5 from http://www.fusionxlan.com).
So now, I’d like to ask you a favor: Could you make an x64 build of the “php_win32std” extension, please?
Sounds unlogical? Yup, but this extension provides (among other things) registry access which would be very useful for some of my PHP applications. DL link 4 sources is “http://pecl.php.net/get/win32std-1.0.tgz”.
Greate Job, Anindya!
I’ve been trying to build x86 binaries, and couldn’t get though.
Could you please help to build the pecl_http_1.7.0?
I currently maintain Unofficial WampServer as the original WAmpserver hasn’t been updated for well over a year. Would it be ok if I included your php5.3.3 64bit build into the project?
Also I had that issue with lots of users complaining about localhost not working. Which I narrowed down to the hosts file. I was talking to the phpmyadmin developers about this issue and they said it was the mysqlnd driver but that it was not going to be fixable as it’s a compatability issue????
What’s your view on it?
Thanks a million for the time and enthusiasm you put into this, I know what it’s like
I posted this on other forum(oops). Then I noticed – these are all vc9 builds 🙁 oh well , thanks anyway.
@Andew and @rastamanx
I wasn’t able to successfully compile the php_snmp extension. 🙁
The memcache extension compiled successfully and I have added the download links to the post. 😀
@cvat, @eyebee and @George
Will try to compile the extensions you have requested when I have some free time.
hi Anindya, Very thx for the 64bit lib u compile, but i got a issue:
The Apache service named reported the following error:
>>> httpd.exe: Syntax error on line 131 of F:/home/apache2.2/conf/httpd.conf: Cannot load F:/home/php/php5apache2_2.dll into server: Access is denied.
php is your compile version 5.3.3 php-5.3.3-Win32-VC9-x64, and apache is apache_2.2.17-x64-openssl-1.0.0a.exe , if the dll version or my system setting cause? its doesnt work here!
my sys is win2008 r2 x64
hope your reply!
thx, i solved it!!! stupit fault! thx again~
And iconv ext it is posible. pleeease )
Hi, can you please post the thread safe x64 php_http.dll….
Still haven’t found the time to compile the extensions that many of you have requested so far. 🙁
Will compile as soon as possible. Until then you will just have to use 32 bit PHP.
Hi Anindya . PHP 5.3.4 is out 🙂
and to increase your workload even futher!!! would it be possible for php5.2.15 which is also out to be built in x64 ?
thanks for your great work 🙂
Hi Steven. I am aware that PHP 5.3.4 is out and will be posting it soon after I try it out myself. I spent most of last Sunday trying to compile all the requested extensions along with PHP 5.3.4. 🙂
And no, I cannot compile PHP 5.2.15 cause it will take way too long. Sorry. 🙁
I have just posted the PHP 5.3.4 x64 binaries here.
@Andrew and @rastamanx
I tried to compile the snmp extension again recently and succeeded. It’s included with the PHP 5.3.4 binaries.
I was able to compile the firebird extensions. Also included with the PHP 5.3.4 binaries. By the way, the iconv extension is already present even in this build as a static extension.
I have compiled the php_http.dll extension and you can find it in the post that I have linked to above.
I will compile the x86 version of the php_http.dll soon.
Wasn’t able to compile the win32std extension from the pecl sources because it doesn’t have a config.w32 file. That file normally contains instructions for the PHP “buildconf” script. I have however found modified win32std sources here which does have the config.w32 file. Let me know if you want me to try and compile that instead.
You saved me !!!
I have just crazy about that I can’t find any files about php Memcached
Finally,I got it from your web!
Thanks a lot
Please, can you compile ice_php in VC9 for php TS ?
I know you publish the NTS version.
I forgot to say in x86 version…Sorry.
Sure. I will compile it when I have some time. Probably next weekend. 🙂
Thanks a lot.
Because zero ice team dosen’t respond and there is no way to have php_ice.dll (x86 TS php 5.3.6 VC9).
I’ve try to compile it but i get link error.
I’m in need of php_ice.dll for VC9 x86 TS as well.
Will try to compile it tomorrow or day after.
I successfully compiled the extension and here it is.
It work really fine…Thanks a lot
Had you ever use php_sqlsrv.dll extension to connect php with SQL server? I am using 64 bit machine and I can;t found any compatible dll online because the provide extension from microsoft is for 32bit only. Can you help me out on that?
Hi. As of now, it is not possible to compile a 64 bit version of the php_sqlsrv.dll extension, so you wont find one anywhere. And as you can see from the last post on this thread, they have no intention of releasing a 64 bit version of the php_sqlsrv.dll extension until official 64 bit PHP distributions are released.
Right now your only choice is to use the official 32 bit PHP builds if you need to use the php_sqlsrv.dll extension.
Can you help me compiled php_redis for php5.4.* windows 64