The Apache Haus Forum

Advanced search  

News:

Welcome to Apache Haus Distribution Forum

Pages: [1]   Go Down

Author Topic: GeoIP and SSH2 extensions for PHP 5.4  (Read 16771 times)

Sob

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 72
GeoIP and SSH2 extensions for PHP 5.4
« on: November 20, 2012, 03:50:38 AM »

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.
Logged

rjrosamond

  • Newbie
  • *
  • Offline Offline
  • Posts: 1
Re: GeoIP and SSH2 extensions for PHP 5.4
« Reply #1 on: February 25, 2013, 10:51:25 AM »

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...
Logged

Jan-E

  • Newbie
  • *
  • Offline Offline
  • Posts: 33
Re: GeoIP and SSH2 extensions for PHP 5.4
« Reply #2 on: February 26, 2013, 10:39:19 PM »

Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 831
Re: GeoIP and SSH2 extensions for PHP 5.4
« Reply #3 on: February 26, 2013, 11:04:34 PM »

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

Jan-E

  • Newbie
  • *
  • Offline Offline
  • Posts: 33
Re: GeoIP and SSH2 extensions for PHP 5.4
« Reply #4 on: February 27, 2013, 01:35:05 AM »

I don't build MySQL. And neither Apache.
Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 831
Re: GeoIP and SSH2 extensions for PHP 5.4
« Reply #5 on: February 27, 2013, 06:19:04 PM »

I was meaning your php, your x64 php :)
Logged

qkdreyer

  • Newbie
  • *
  • Offline Offline
  • Posts: 1
Re: GeoIP and SSH2 extensions for PHP 5.4
« Reply #6 on: February 27, 2013, 06:55:21 PM »

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 !
Logged

Jan-E

  • Newbie
  • *
  • Offline Offline
  • Posts: 33
Re: GeoIP and SSH2 extensions for PHP 5.4
« Reply #7 on: March 04, 2013, 04:27:30 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.
Logged

Sob

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 72
Re: GeoIP and SSH2 extensions for PHP 5.4
« Reply #8 on: March 15, 2013, 06:27:58 AM »

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.
Logged

Jan-E

  • Newbie
  • *
  • Offline Offline
  • Posts: 33
Re: GeoIP and SSH2 extensions for PHP 5.4
« Reply #9 on: March 25, 2013, 12:53:34 PM »

Did anyone try these precompiled versions?
http://windows.php.net/downloads/pecl/releases/geoip/1.0.8/
Logged

jerome

  • Newbie
  • *
  • Offline Offline
  • Posts: 1
Re: GeoIP and SSH2 extensions for PHP 5.4
« Reply #10 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
Logged

Odee6

  • Newbie
  • *
  • Offline Offline
  • Posts: 1
Re: GeoIP and SSH2 extensions for PHP 5.4
« Reply #11 on: March 12, 2016, 09:34:04 AM »

OK, you're writing mysql and I have to read that as x64 ;-) Weird. Hint: change the Wealthy Affiliate 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.
« Last Edit: December 09, 2016, 02:03:21 PM by Odee6 »
Logged
Pages: [1]   Go Up
 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13