• 12-06-2018, 01:42:14
    #1
    Merhaba. Php için centos 6.x Sunucuya GeoIP Nasıl kuruyoruz Videolu anlatım varmı
  • 12-06-2018, 01:44:01
    #2
    Googledan centos GeoIP install diye aratırsanız bulursunuz.
  • 12-06-2018, 01:46:34
    #3
    GiRGiN adlı üyeden alıntı: mesajı görüntüle
    Googledan centos GeoIP install diye aratırsanız bulursunuz.
    Arayıp kurulumu denedim. Ama olmadı.
  • 12-06-2018, 16:42:02
    #4
    ComputeRr adlı üyeden alıntı: mesajı görüntüle
    Merhaba. Php için centos 6.x Sunucuya GeoIP Nasıl kuruyoruz Videolu anlatım varmı
    https://pecl.php.net/package/geoip

    #ifdef HAVE_CONFIG_H
    #include "config.h"
    #endif

    #include <GeoIP.h>
    #include <GeoIPCity.h>


    GeoIP uygulamasını kurmalısın öncelikle. GeoIP.h başlık dosyası paket içinde yok.

    o da burda

    https://github.com/maxmind/geoip-api-c

    Alıntı
    From Source on Unix/Linux

    To install, run:

    ./configure
    make
    make check
    make install

    If you are using a GitHub checkout, please run the bootstrap script first to set up the build environment.

    The GeoIP Legacy C library relies on GNU make, not on BSD make
    GeoIP kurduktan sonra

    wget https://pecl.php.net/get/geoip-1.1.1.tgz
    tar xvf geoip-1.1.1.tgz
    cd geoip*
    phpize
    ./configure
    make && make install

    sisteminizde birden fazla php versiyonu var ise

    her versiyon için phpize ve php-config adlarında dosya bulunur.
    bu dosyaların tam yolunu öğrenmelisin (locate, find gibi komutları kullanabilirsin.)

    locate phpize
    locate php-config

    hata verirse updatedb komutu çalıştırın.

    /path/phpize
    ./configure --with-php-config=/path/php-config
    make && make install

    daha sonra php.ini dosyasına .so uzantılı object dosyasının yolunu ekleyin.

    kolay gelsin