Author |
|
tanquang
Joined: 21 Mar 2020 Posts: 58 Location: Vietnam
|
Posted: Thu 07 May '20 16:58 Post subject: How to compile PHP 5.3 and 5.4 x86_64 from source on Windows |
|
|
I want to compile releases for PHP 5.3.29 and 5.4.45 (x86_64) from source code on Windows with some extensions like OpenSSL (but not required) with Visual Studio. The goal I want is to be as complete as their x86 release.
Do you have any instructions? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
|
Back to top |
|
tanquang
Joined: 21 Mar 2020 Posts: 58 Location: Vietnam
|
Posted: Fri 15 May '20 16:58 Post subject: |
|
|
Well, I followed a lot of the instructions and the instructions you gave, but it happened a lot of errors. I tried asking on serverfault but so far there is no solution! |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 15 May '20 19:03 Post subject: |
|
|
I guess JanE could help if he reads this.
However. What kind of special extension do you need that you compile PHP on your own? I mean there is https://windows.php.net/downloads/releases/archives/
From that I see on the serverfault post is a problem with mysqlnd. Yes, that needs zlib for the communication with the MySQL server. Zlib is pretty easy to build. Why don't you want that? |
|
Back to top |
|
tanquang
Joined: 21 Mar 2020 Posts: 58 Location: Vietnam
|
Posted: Sat 16 May '20 8:14 Post subject: |
|
|
I need to compile the (non-debug) x64 release version of PHP 5.3 and PHP 5.4 with exe, dll and ext like the x86 release. I tried his x64 version, it had too many ext, php and some ext not working.
My wish is to just compile the release with full exe, dll and ext like the x86 release on windows.php.net. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 19 May '20 10:42 Post subject: |
|
|
if you run php over mod_fcgid you can use apache 64 bit and php 32 bit version. |
|
Back to top |
|
tanquang
Joined: 21 Mar 2020 Posts: 58 Location: Vietnam
|
Posted: Tue 26 May '20 6:55 Post subject: |
|
|
James Blond wrote: | if you run php over mod_fcgid you can use apache 64 bit and php 32 bit version. |
I use Apache x64, but when I run PHP x86 on it, I get the "is not a valid Win32 application" error. |
|
Back to top |
|