Install and Configure GEOS with PHP bindings on Ubuntu 14.04

Install GEOS with PHP bindings

  • Install prerequisites.
    sudo apt-get install build-essentials phpunit
  • Download the latest release from, extract it and change directory into the extracted folder.
  • Configure the package.
    ./configure --enable-php
  • Build and install the package.
    sudo checkinstall
    • Default responses to most prompts are acceptable.
    • The following text makes for a good description.
      \"GEOS with PHP Bindings\"
  • Create a PHP extension file.
    sudo nano /etc/php5/mods-available/geos.ini
    • Add
  • Enable the GEOS PHP extension.
    sudo php5enmod geos
  • Restart the PHP service.
    sudo service php5-fpm restart

Open Source Software:

Operating System: