View Full Version : PHP x64 (Windows) Download
Park_7677
7 Jun 2006, 11:21pm
A while back I started building PHP Win64 to convert all my web server software to 64-bit. I noticed that no where can a PHP Win64 binary can be found. I first made progress in April with the PHP core, Apache2 handle, and MySQLi extension. I picked it back up, adding a lot more features to the distribution (listed in snapshot.txt). I have not found ANYONE, ANYWHERE that has got PHP 64-bit for Windows, and certainly no one who includes as many extensions as this one!
I highly suggest using this PHP build with Jorge's Apache 2.2.3 Win64 build: Apache 2.2.3 x64 binary (http://www.blackdot.be/?inc=apachebin.htm)
*** YOU MUST HAVE 64-bit CPU, 64-bit OS, and 64-bit WEBSERVER (only Apache 2.2.x tested) ***
Downloads:
Absolute Latest: PHP-5.1.4-x64 Current (http://www.fusionxlan.com/PHPx64/PHP-current-x64.zip)
Directory Listing: All Files (http://www.fusionxlan.com/PHPx64/)
Latest snapshot (Fri, 28 Jul 2006 5:15): PHP-5.1.4-x64-2006-07-28.zip (http://www.fusionxlan.com/PHPx64/PHP-5.1.4-x64-2006-07-28.zip) - 10 MB
Developer Kit (to recompile yourself): Developer Toolkit (2006-06-06) (http://www.fusionxlan.com/PHPx64/developer-tools-2006-06-06.zip) - 30.3 MB
PHP-5.1.4-x64 Info page: Phpinfo() Page (http://www.fusionxlan.com/PHPx64/phpinfo-5.1.4-x64-2006-06-04.html)
Snapshot TXT (what it includes): Snapshot.txt (http://www.fusionxlan.com/PHPx64/snapshot.txt)
There are still bugs, so don't use it in a mission-critical situation. It's still cool though, and very fast! If anyone wants to download the code and join the project I'm looking for help. There's a thread (http://www.apachelounge.com/forum/viewtopic.php?t=415) at ApacheLounge on it also. You can post here or there, just anywhere you want to offer help. Also if you download it and use it, let me know!
I have downloaded the software, but it will take some time for me to install the the program.
I'm in the process of learning how to set up a personal web server, one Independence Web Server of my own.
Before I will be able to contribute, I have a lot to learn.
The threshold is high, but I will overcome it.
What I would like to do, is to make my FACTS-AMD processors (http://www.techsweden.org/forum/viewtopic.php?t=97085) (based on bbcode), to work on my web server as well.
But I'll guess bbcode, is not gonna work with 64 bits.
If not, I can look forward to learn something new ...
Will it possible to get the PHP 64-bit for Linux ?
ps I have always being interested in places, and Independence, MO (Missouri), was easy to find, using Google Earth.
Nice place. (Too be honest I didn't know that MO, was Missouri) (http://www.usps.com/ncsc/lookups/usps_abbreviations.html)
It's nighttime here in Stockholm, with full moon, that's the same moon you gonna see some time later. ds.
Many thanks for the PHP-64 bit links,
Regards,
Esso
Park_7677
11 Jun 2006, 3:44am
Thank you for posting back Esso! You're welcome for the links :)
The great thing about PHP is once the binaries are built for a system (which the links are for Windows 64-bit) the actual PHP code can be transported between any system (Linux <-> Windows, 32-bit <-> 64-bit) with virtually no problem. However, since this particular binary is still being developed it does have bugs. I've never tried any big application (like a forum or bulletin board) but I'm certain it can be made to work :)
I looked at your link and it looks like you have a wealth of information (I have only rough translations of the pages though)! PHP is a great system to organize all of it. It would take some custom labor since I'm not sure anything exactly like you want exists.
I'm sure there is a PHP Linux 64 version somewhere out there. I, however, do not have a 64-bit Linux computer to try to make one on right now.
If this project does take off, I'd like to get a more formal place for it to develop; but only you and maybe one other person have actually posted back! :eek3:
If you do need help getting this PHP to work you can post back here and I'll try to help out :bigggrin:
EDIT://
One thing about Independece, MO is that Harry S Truman (http://www.whitehouse.gov/history/presidents/ht33.html) (33rd President of the United States) is from here. I drive by the historic house all the time but if I were not from here I guess it would be pretty cool :thumbsup:
Well I managed to get the Apache 2.2.2 server, PHP 5.1.4 and MySQL 5.0.22-win32, to communicate with each other ......
And that when using Outpost 3.51.759.6511 (462) Firewall.
I thought it was gonna be like walking in the park, but that was a very cold park.
These PC developers are really something ...:), they must have great hunger and lust for the tweaking, hot coffee and nervous breakdown.
It is just like the feeling "One flew over the Cuckoo's nest", all over again.
And now you are seriously trying to get me into 64 bits :cheers:
Well I will do it, after my fingernails has been replaced ... :vimp:
Shorty
16 Jun 2006, 7:35am
Park, this is a great effort. Don't take the lack of replies as disheartening. There are so few people really running X86_64 ..
That in mind. This is tremendous work! Leads me to drag out my 64Bit Windows 2003 and run it up when Im back from the USA!
Il post some results in a couple of weeks when Im back :thumbsup:
Edit:// Actually, I think I have another use for this. We have an EMT Intel box at work we are gonna use as a webserver for a PHP app. Might stick 64 Win2k3 on it .. and see how it goes (no brainer lightweight PHP app, not a biz crit app).
biggibla
25 Jul 2006, 7:34pm
Hi I am running a Win Xp Pro x64 and IIS 6.0 and found some very useful directions how to get php-5.1.4 to work. Got it from a php forumhttp://is2.php.net/manual/en/install.windows.manual.php
rock'n roll :rockon:
1. Add new extension (.php)
* Expand the local computer in the left pane
* Right-click on "Web Sites" in the left pane, then click "Properties" in the menu that pops up
* Flip top the "Home Directory" tab
* Click "Configuration"
* Flip to the "Mappings" tab
* Click "Add..."
* Enter the full path to php5isapi.dll in the "Executable" textbox (Browse... to find it more easily if you need to)
* Enter ".php" in the "Extension" textbox
* Select radial button "Limit to", enter "GET,POST,HEAD"
* Click "OK" all the way out
2. Verify php5isapi.dll is allowed
You must verify that the versions of php5isapi.dll that you want to use are allowed.
2.1. In Internet Information Services (IIS) Manager, in the left-hand column, click the Web Services Extensions node and verify php5isapi.dll is allowed and all other Web Service Extensions are prohibited.
2.2. If the version of php5isapi.dll that you want to use does not appear in the list, follow the instructions to enable it and then repeat this procedure:
Go into IIS
Below all of the websites is a folder: Web Service Extensions
In blue, to the lower left, is a choice: Add A New Web Service Extension
Add PHP/PHP5ISAPI.dll
Choose To ALLOW it.
2.3 If the version of php5isapi.dll you want to use appears on the list but is not allowed, right click the version of php5isapi.dll you want to allow and click Allow.
3. Configuring IIS for 32-Bit Emulation Mode (THIS IS MOST IMPORTANT!!!!)
3.1. If you are installing IIS on x64-based editions of Windows Server 2003 or Windows Server 2003 R2, IIS must be configured to run in 32 bit emulation mode. Perform the following procedure on each front-end Web server running an x64-based edition of Windows Server 2003.
Configure Internet Information Services (IIS) for 32-bit mode
1. Click Start, and then click Run.
2. In the Open box, type cmd, and then click OK.
3. In the command prompt window, navigate to the %drive%:\Inetpub\Adminscripts folder, where %drive% is the drive in which Windows Server 2003 is installed.
4. In the Adminscripts folder, type the following command:
cscript adsutil.vbs set w3svc/AppPools/Enable32bitAppOnWin64 1
Note The value "1" for Enable32bitAppOnWin64 specifies 32-bit mode, whereas the value "0" specifies 64-bit mode.
5. Press ENTER.
6. Type iisreset and then press ENTER.
7. Close the command prompt window.
8. Re-star System.
Note The Run WWW service in IIS 5.0 isolation mode check box is only selected if you have upgraded to IIS 6.0 on Windows Server 2003 from IIS 5.0 on Windows 2000. New installations of IIS 6.0 use IIS 6.0 worker process isolation mode by default.
Park_7677
26 Jul 2006, 2:25am
Hi I am running a Win Xp Pro x64 and IIS 6.0 and found some very useful directions how to get php-5.1.4 to work. Got it from a php forumhttp://is2.php.net/manual/en/install.windows.manual.php
Hi biggibla. Thanks for the post. I think a lot of people using IIS 6 x64 have figured out the 32-bit emulation work around, however, it's not a solution. With this 64-bit PHP it's not necessary to use emulation.
One major problem in mixing 32/64-bit is that enabling PHP 32-bit emulation disables other 64-bit web applications. There's no ground gained when you break other stuff to fix something else, as found here:
I am running widows server 2003 IIS 6.0(running 64 bit web applications). I installed PHP 5.0 on this machine and had it working. Then I realized that by enabling the 32 bit binaries to work in IIS I had disabled my 64 bit web apps from running.
I would like to know where I can get a 64 bit version of PHP that will run on windows server 2003 using IIS 6.0 in 64 bit mode. Any help or clues would be very appreciated.
I encourage you to try this PHPx64 version; especially if you want to take advantage of IIS' other 64-bit web applications. However, if you're only running PHP and are content with your setup it works just as well. I started the project for a development server using Apache x64 since I have never seen another PHPx64 distribution.
Thanks again for the post, someone may benefit from the information. :)
AuthorityAction
11 Aug 2006, 8:38pm
Please digg (http://www.digg.com) this project here (http://digg.com/programming/The_first_and_only_64_bit_PHP_binary_for_Windows).
We're looking for more support on this project :vimp: Mad props to PaRK for getting this all together.
thanx, man, it's working. I got php running on IIS7 on vista x64. Unfortunately, Microsoft, dumb as they are, set IIS to run in x32 bit mode by default and I didn't notice first, so I spent 5 hours trying to get it to work until I noticed that the IIS worker process was running in 32 bit mode. So stupid.
Here's the command to get IIS running in x64 mode:
cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 0
Could you maybe also compile a x64 bit version of the PECL package with the additional modules that are offered on the official php page? They've got only a x32 bit version there. There are many useful modules in that package
Park_7677
7 Mar 2007, 1:55am
Glad you're using it WRFan. Thanks for the tip about IIS7 being in 32-bit by default.
I will look into adding a PECL package. Some of the extensions that are in the PECL download are part of my PHPx64 download already though. Maybe you could check inside the ext directory to see if ones you are looking for are already included. If not, and you have a specific need, let me know and I will see about it specifically.
Thanks for using/supporting!
Could you maybe compile the pdflib module for php 5.2.1 (x64)? It's not part of the package and the one from the 5.2.0 x64 package is not compatible with the new php version, it's not loaded
Park_7677
9 Mar 2007, 3:37am
WRFan, I sent you a PM with a link to the pdf extention. Let me know if you can load it and use it.
thanx, it's working now. stupid me, I forgot to add the php directory to the PATH. After adding it and rebooting the pc it's working :)
AndyWhittaker
23 Apr 2007, 2:48pm
Hi,
Just wanted to show my support for your x64 build of PHP and say a big thank-you!
I had been running my IIS 6 x64 box in 32bit compatibility mode since I had it but SmarterMail 4 and Helm 4 needed to be run as 64bit processes. I switched my box over to 64 bit mode and sure enough these applications worked. However, my bread and butter site http://www.ecufix.com/shop/ running ZenCart with PHP... yep PHP would not run due to IIS 6 being in 64 bit only mode.
Therefore, I stopped IIS 6, copied over your x64 distribution on top of the 32 bit php folder, restarted IIS and then it all worked!! :) :D
Thank-you, thank-you, thank-you!
Andy
wijnandmet
31 Oct 2007, 1:43pm
I have tried this:
1. installed iis on x64 machine
2. installed asp.net (and it worked)
3. installed php (didn't work, getting error because it's a win32 app)
4. tried to change the system to x32, worked, but other programms didn't work.
5. changed it to x64 again (php don't work anymore)
6. get phpx64
7. copy it over the php-map and replaced it.
And now my PHP doens't work yet. It is loading the php-file, and then it stays there... trying to load the file but never end with that.
What is the problem? Do I forget something?
Your Amish Daddy
31 Oct 2007, 5:22pm
You didn't uninstall phpx32
wijnandmet
1 Nov 2007, 8:52am
Nope, is that required? :o
How can I install phpx64 then? There is no msi or something.
wijnandmet
1 Nov 2007, 9:43am
It worked! I uninstalled it, and then copy the x64 and use that one. And it worked :]
Your Amish Daddy
1 Nov 2007, 6:21pm
Glad to hear it.
Chepry
13 Apr 2008, 3:05am
Works perfectly! Thank you Park_7677!
Chepry
Tested on:
Vista Ultimate x64 SP1 build 6001
Apache Apache/2.2.8 (x64)
PHP Version 5.2.5 (x64)
tembenite
11 Jun 2008, 1:24pm
I ran across this page because an x64 copy of PHP is exactly what I need. Unfortunately fusionxlan.com appears to no longer be on the net. Anyone know where I can find these binaries?
Park_7677 you still around somewhere?
Thanks!
primesuspect
11 Jun 2008, 5:22pm
o.O We'll track him down for you.
Park, Icrontic would be happy to host the binaries if you'd like.
fuzzybair
18 Jun 2008, 2:03am
i am also looking for php 64bit has anyone got a link for it
fuzzybair
18 Jun 2008, 3:39am
a directory list on the server http://www.fusionxlan.com/PHPx64/
lists files to download
AuthorityAction
18 Jun 2008, 2:36pm
I ran across this page because an x64 copy of PHP is exactly what I need. Unfortunately fusionxlan.com appears to no longer be on the net. Anyone know where I can find these binaries?
Park_7677 you still around somewhere?
Thanks!
The site was down for a couple days due to some problems with our host. If it was still Sarcnet I don't think we'd have a problem.
Prime, I'm going to talk to Park and we'll see how maybe getting the project back up and running and hosted. Thanks for the offer!
Jesper
25 Jun 2008, 12:26pm
I have installed the Apache 2.2.9 with the PHP 5.2.5 and Mysql 5.0.51 - all x64
but regarding the php_pdf.dll - I need a libpdf.dll since I use the more advanced features that comes with the pdflib+pdi licence with pdflib.com
I have asked pdflib.com to compile a x64 dll, but they doesn't seem to bother - anyone here with any good reference to any of the pdflib employees that could be interested in helping them (me) so that by getting access to the sourch, not just the lite-version - the full libpdf_php.dll in x64 could be availiable to everyone else like me who are missing this little thing to get everything up in production
Jesper
The site was down for a couple days due to some problems with our host. If it was still Sarcnet I don't think we'd have a problem.
Prime, I'm going to talk to Park and we'll see how maybe getting the project back up and running and hosted. Thanks for the offer!
badmonkey
27 Jun 2008, 9:28am
PHP x64 on IIS7
Sorry if this is a bit off-topic, but I can't find anything on the web about this and I'm wondering if it's to do with the x64 version, or if it's purely an IIS issue.
I've just installed this, ver 5.2.5 (x64), on my Vista x64 set-up with IIS7. PHP appears to be working fine. php.ini found, etc, and phpinfo() plus other basic commands like echo() work just fine, and pages are happily generated.
However when I try to run my old website(s), I run into IIS7 error pages. There are several scenarios:
Virtual directory |- HTTP Error 500.19 - Internal Server Error. It goes on about "Cannot read configuration file due to insufficient permissions", referencing web.config in the site root (which is strange, because this is all PHP and not ASP!).
wwwroot |- a more generic HTTP Error 500 which is totally unhelpful. This error appears for the same file as above, if it is copied from the virtual dir to the wwwroot. In other words the error differs depending on whether the file is in the wwwroot or the virtual dir. File permissions with the files that do work are identical. I even tried creating a new file and copying the code over, so the file was new with inherited permissions. But it made no difference.
I mucked around with file permissions for a while, and changed "physical path credentials" in IIS7 to my specific user account (rather than 'pass through authentication'). This changed the IIS error to a simple text output: "Input file required". I assume that's a wild goose chase.
I have done a totally standard install, and as above, PHP x64 does appear to be working okay, at least at a basic level. Does anyone have any idea why on earth I am getting these IIS7 errors for my "proper" files?
I have installed the Apache 2.2.9 with the PHP 5.2.5 and Mysql 5.0.51 - all x64
but regarding the php_pdf.dll - I need a libpdf.dll since I use the more advanced features that comes with the pdflib+pdi licence with pdflib.com
I have asked pdflib.com to compile a x64 dll, but they doesn't seem to bother - anyone here with any good reference to any of the pdflib employees that could be interested in helping them (me) so that by getting access to the sourch, not just the lite-version - the full libpdf_php.dll in x64 could be availiable to everyone else like me who are missing this little thing to get everything up in production
Jesper
JesperI have this same issue with PDFLib. I have installed the same Apache (2.2.9) and PHP (5.2.5) versions as your self. I was speaking to a guy from PDFLib called Ranier. They seem to be interested if i was prepared to do the work.As for their DevTeam doing it? No chance!!!This, below is part of the last correspondance i had off PDFLib Support. As this area is not my forte, hopefully this will mean something to one of you guys on here.
When you build the DSO with our PECL extension, you have to linkagainst the 64-bit C library, which is available for download onour website.
Regards
NickC
Lincoln
15 Jul 2008, 3:20pm
I can refer you to jhenry (http://icrontic.com/forum/member.php?u=26794) on this site if you're interested in hiring someone to assist you. I don't know if this is in his skill set, but he has both compiled the 64-bit PHP running this site (with plenty of extensions) and separately set up pdflib for me on another (32bit) server. It's entirely possible he could help you get this up and running; if I wanted pdflib to run in 64 bit on this server he's the one I'd ask.
Also, I'll add that Ranier was immensely helpful the one time I had to talk to PDFlib for technical support; very quick and responsive. Unfortunately this probably just isn't worth the manpower to support for them. :-/
Welcome to Icrontic, Nick!
Keebler..
Yes you are correct. Ranier is helpful and reaponds to be promptly, its just the Dev Team not doing anything about it. Which is a bit of a let down.
I have sucessfully set up PDFLib on 32-bit its just this damn 64-bit.The Apache and PHP is currently up and working, just lacking the .dll from PDFLib.
I will speak to JHenry as per your recommendation
Regards
NickC
Lincoln
15 Jul 2008, 3:30pm
Oh hey, I was a bit off-base. John Henry (jhenry) has, in fact, already set up 64-bit pdflib for me on our dev box; I forgot I'd asked him to add that to the extension list for our last refresh (just hasn't made it to the live one yet). I just went and checked the dev box's phpinfo and there it was: x86_64 system and PDF Support enabled. :cool:
So, yes, he definitely figured out how to do it :)
//edit: And bonus points to John for quietly finding the solution to an issue I didn't even know existed! Everything's more complicated in 64bit, isn't it?
Keebler.
This is great news. Do you know what times JHenry will be active? As i am now keen to speak to him!? Or how to contact him?
Regards
NickC
Lincoln
15 Jul 2008, 3:44pm
Keebler.
This is great news. Do you know what times JHenry will be active? As i am now keen to speak to him!? Or how to contact him?
Regards
NickC
I'd send him a private message on the site. He pops in every couple of days. I'll send him an SMS to check in. :)
Keebler
That would be appreciated. :)
Regards
NickC
Keebler..
Also i notice that you are lookin for hosting of files such as PHP x64 binaries?
Give me a shout i can host files for you
Regards
NickC
Lincoln
15 Jul 2008, 4:05pm
Also i notice that you are lookin for hosting of files such as PHP x64 binaries?
Give me a shout i can host files for you
No, that was AuthorityAction who was potentially interested, and Prime offered to host them here on Icrontic (Prime and I own the site and the servers it runs on). Thanks though. :)
jhenry
15 Jul 2008, 7:23pm
Unfortunately, there's nothing I can do since they don't offer a 'universal' php source package. The linux package is a precompiled DSO object rather than a source file so there's no way to compile it.
Normally with those kind of libraries and with a decent compiler suite installed, you could run the phpize exe to create a usable setup for the compiler to work with then install it. Without source however, this is impossible.
Sorry!
Lincoln
15 Jul 2008, 7:33pm
Oh yeah, I see on their site they link to the source code of PDFlib Lite but not any other version. Nick, you might follow up with Ranier about how you're supposed to build the DSO with source code they won't give you :doh:
//edit: A critical point in this conversation would be that we're talking strictly about the Windows version, which in my haste I didn't compute. Icrontic runs on CentOS :o
JHenry / Keebler
I may have also overseen a few fundamentals. I am lookin for a windows application of PDFLib. This as far as im aware is just a .dll file. (x86 install - libpdf_php.dll). Does this make it easier to compile?
The Server in question is a HP 4U Server.
Dual CPUs Xeon 5150 (Quad)
18GB DDR
OS - 76GBx2 SAS MIRROR
Data - 146GBx6 SAS Raid5.
Running Windows 2003 x64 with SP2 and R2
Apache 2.2.9 (x64) installed
PHP 5.2.5 (x64) installed
Regards
NickC
NickC
16 Jul 2008, 11:46am
Guys...
I am beginning to hate 64-bit lol. I am now having an issue with cURL. the php.ini section is uncommented. the .dll is in the /ext/ folder but when i do the phpinfo() page i am not getting the cURL section. However i am getting all the rest that i need. eg. OCI_8, zlib_filter, openssl, PDO etc. when i try to process a payment i get he following error...
Fatal error: Call to undefined function curl_init()
Any of you guys come across this issue before with 64-bit and cURL
Regards
NickC
Lincoln
16 Jul 2008, 2:17pm
Nick, there's no source code available to compile in the first place - that's the problem. If they provided the source code, you could compile a 64-bit Windows version. As it stands, they provide a pre-compiled 64-bit Linux version, which is what we use. Having a dll file and your system specs don't help; you simply need the source code to do what you're asking, and it isn't available.
The source code IS available for the Lite version, but not the version you need. As I suggested, you may want to reopen the conversation with Ranier to find how he expects you to compile the DSO when the only source code available on their website is the Lite version.
Keebler.
I have just fired an email off to Rainer about the above.
Regards
NickC
jhenry
16 Jul 2008, 3:59pm
About cURL, make sure there's an extension=curl.dll or something similar in PHP.ini or it won't load the module and will throw that error.
Jhenry
I have in my php.ini
[PHP_CURL]
extension=php_curl.dll
the file is in the correct location php/ext/
Still fails to load :(
Regards
NickC
Keebler.
I have had a reply from Ranier.
Nick,
> How can we compile a 64-bit DSO with when only the source code for the
> LiteVersion is available from your website?
exactly as I described earlier and also it is documented in our PDFlib in PHP
Howto. It is not necessary to have the source code. Here once again my note:
[snip]
> > When you build the DSO with our PECL extension, you have to link
> > against the 64-bit C library, which is available for download on
> > our website.
Ranier.
Hopefully this helps?
Regards
NickC
Lincoln
16 Jul 2008, 4:37pm
Only helpful if it means something to John I'm afraid. Building extensions is out of my league; I just use them. :)
fidoboy
30 Nov 2008, 1:43pm
Jhenry
I have in my php.ini
[PHP_CURL]
extension=php_curl.dll
the file is in the correct location php/ext/
Still fails to load :(
Regards
NickC
NickC any progress on this subject? I'm having the same issue using PHP 5.2.5x64 i can't use the cURL extension. Have you solved this problem already?
thanks in advance,
Your Amish Daddy
30 Nov 2008, 6:03pm
Wow necropost.
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.