GeoIP and SSH2 extensions for PHP 5.4

Started by Sob, November 20, 2012, 03:50:38 AM

Previous topic - Next topic

Sob

So I decided to upgrade to PHP 5.4 and realized that I'm probably the first person who needs Windows versions of GeoIP (php_geoip.dll) and SSH2 (php_ssh2.dll) extensions. Or I forgot how to use Google. One of those. :)

I never messed with building PHP before, so it took almost half a day, but the end result seems to be success. If anyone else also needs these modules and is brave enough to put not much tested stuff on the server, here they are:

http://web.hisoftware.cz/sob/download/php-5.4-windows-extensions.7z

For PHP 5.4 NTS VC9 x86 only.

rjrosamond

Thanks for compiling this!  I must be the second person to need GeoIP... I tried your version, but get this error in my PHP error log:

[25-Feb-2013 09:46:05 UTC] PHP Warning:  PHP Startup: geoip: Unable to initialize module
Module compiled with build ID=API20100525,NTS,VC9
PHP    compiled with build ID=API20100525,TS,VC9
These options need to match
in Unknown on line 0

Obviously the difference is the "NTS" part.  Is there a kind soul out there who might be willing to compile GeoIP for me using PHP 5.4 TS VC9 X86?

Thanks...


Gregg

Jan, feel free to post your mysql builds here too.

Jan-E


Gregg


qkdreyer

First, thanks Jan-E for your compiled php_geoip.dll version.

However, calling geoip_country_code_by_name() is fine, but geoip_record_by_name() isn't ...
And I'm not getting any PHP (5.4.6) / Apache (2.4) errors.

Have you guys got any clues ?
Thanks !

Jan-E

Quote from: Gregg on February 27, 2013, 06:19:04 PM
I was meaning your php, your x64 php :)
OK, you're writing mysql and I have to read that as x64 ;-) Weird. Hint: change the 86 in the URL to 64.

@qkdreyer: I really would not know. I applied the patch Sob was referring to and tried compiling the thing. I did not get to use it. Maybe Sob can compile his version as NTS.

Sob

I tried geoip_record_by_name() with my NTS version and I get error 500 and PHP crash in event log. So it doesn't look like my TS version would be any better.


jerome

Thanks alot to Jan for your build, i had the same problem for ssh2 with PHP 5.4 using easyphp...
God bless you

Odee6

#11
Quote from: Jann-E on March 04, 2013, 04:27:30 PM
OK, you're writing mysql and I have to read that as x64 ;-) Weird. Hint: change the 86 in the URL to 64.

@qkdreyer: I really would not know. I applied the patch Sob was referring to and tried compiling the thing. I did not get to use it. Maybe Sob can compile his version as NTS.

Yeah, I tried all of the pre-compiled builds I could find Jan-E and I still can't get it to run.

BenLee

Quote from: jerome on April 15, 2013, 04:45:10 PM
Thanks alot to Jan for your build, i had the same problem for ssh2 with PHP 5.4 using easyphp...
God bless you

I also want to thank him because it has also helped me a lot.

Jan-E

Quote from: Odee6 on March 12, 2016, 09:34:04 AM
Yeah, I tried all of the pre-compiled builds I could find Jan-E and I still can't get it to run.
I am sure the GeoIP and ssh2 extensions on https://www.apachelounge.com/viewtopic.php?t=6359 work. A phpinfo.htm in the zips is the proof.