Author |
|
schmidtl4
Joined: 16 Jul 2014 Posts: 3
|
Posted: Mon 16 May '16 23:13 Post subject: Compiling PHP7 on Windows 10 - no Apache library? |
|
|
Hello. I'm diving into compiling PHP7 because I need secure FTP built in. This is all new to me, so I may be missing something.
When I take the easy route and build PHP7 with "configure --enable-snapshot-build", it checks for httpd.h and then notes "WARNING: could not find apache 2.4 libraries/headers".
So I've searched all over to find these libraries and can't find them. Do they exist? if so, please provide a link. Compiling instructions would be a nice gift too.
If the libraries don't exist, does that basically mean I can not compile PHP7 for Apache2.4? Is the only alternative to go with PHP 5.6?
If it matters, all this is being attempted on a Win10 box with Visual Studio 2015, x64 and VC14.
Thanks! |
|
Back to top |
|
Jan-E
Joined: 09 Mar 2012 Posts: 1266 Location: Amsterdam, NL, EU
|
|
Back to top |
|
schmidtl4
Joined: 16 Jul 2014 Posts: 3
|
Posted: Tue 17 May '16 4:45 Post subject: |
|
|
Thanks Jan-E. I had the libraries and headers and indeed was using the step by step wiki. I discovered, however, that I unzipped them into the wrong directory. So that problem is solved.
I'm looking for FTPeS (explicit TLS). Is that what you have in your builds? I moved to compiling my own based on the documentation for ftp_ssl_connect (http://php.net/manual/en/function.ftp-ssl-connect.php) indicating that "on Windows this function will be undefined in the official PHP builds. To make this function available on Windows you must compile your own PHP binaries."
If you are so inclined, may I ask another question? When I run nmake in visual studio I get 100s of rows with the "warning C4018: '>=': signed/unsigned mismatch" error. Is this the compiler being "strict" or are these errors indicating something very awry with the compile? |
|
Back to top |
|
Jan-E
Joined: 09 Mar 2012 Posts: 1266 Location: Amsterdam, NL, EU
|
|
Back to top |
|
Jan-E
Joined: 09 Mar 2012 Posts: 1266 Location: Amsterdam, NL, EU
|
|
Back to top |
|
schmidtl4
Joined: 16 Jul 2014 Posts: 3
|
Posted: Tue 17 May '16 14:06 Post subject: |
|
|
@Jan - this is all super helpful. I've got things working with your 7.06 builds (your first suggestion) and curl. I didn't realize there were changes to ftp_ssl_connect for PHP7 so I may check that out as well.
Thank you for all the references and compilation advice and links. Super, super helpful! |
|
Back to top |
|
Jan-E
Joined: 09 Mar 2012 Posts: 1266 Location: Amsterdam, NL, EU
|
|
Back to top |
|