Install Postgresql 9.5, Nginx 1.9, PHP 7.0 and Memcached on FreeBSD 10.3

Next: Install Nginx UP: TOC

Here are the step to install PHP 7.0

#pkg install php70 Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. All repositories are up-to-date. The following 2 package(s) will be affected (of 0 checked): New packages to be INSTALLED: php70: 7.0.5 pcre: 8.38_1 The process will require 22 MiB more space. 3 MiB to be downloaded. Proceed with this action? [y/N]: y Fetching php70-7.0.5.txz: 100% 2 MiB 694.9kB/s 00:03 Fetching pcre-8.38_1.txz: 100% 1 MiB 1.2MB/s 00:01 Checking integrity... done (0 conflicting) [1/2] Installing pcre-8.38_1... [1/2] Extracting pcre-8.38_1: 100% [2/2] Installing php70-7.0.5... [2/2] Extracting php70-7.0.5: 100% #pkg install php70-pdo_pgsql Updating FreeBSD repository catalogue... Fetching meta.txz: 100% 944 B 0.9kB/s 00:01 Fetching packagesite.txz: 100% 5 MiB 5.6MB/s 00:01 Processing entries: 100% FreeBSD repository update completed. 25096 packages processed. Checking integrity... done (0 conflicting) The following 3 package(s) will be affected (of 0 checked): New packages to be INSTALLED: php70-pdo_pgsql: 7.0.5 postgresql93-client: 9.3.12 php70-pdo: 7.0.5 The process will require 9 MiB more space. Proceed with this action? [y/N]: y [1/3] Installing postgresql93-client-9.3.12... [1/3] Extracting postgresql93-client-9.3.12: 100% [2/3] Installing php70-pdo-7.0.5... [2/3] Extracting php70-pdo-7.0.5: 100% [3/3] Installing php70-pdo_pgsql-7.0.5... [3/3] Extracting php70-pdo_pgsql-7.0.5: 100% Message from postgresql93-client-9.3.12: The PostgreSQL port has a collection of "side orders": postgresql-docs For all of the html documentation p5-Pg A perl5 API for client access to PostgreSQL databases. postgresql-tcltk If you want tcl/tk client support. postgresql-jdbc For Java JDBC support. postgresql-odbc For client access from unix applications using ODBC as access method. Not needed to access unix PostgreSQL servers from Win32 using ODBC. See below. ruby-postgres, py-PyGreSQL For client access to PostgreSQL databases using the ruby & python languages. postgresql-plperl, postgresql-pltcl & postgresql-plruby For using perl5, tcl & ruby as procedural languages. postgresql-contrib Lots of contributed utilities, postgresql functions and datatypes. There you find pg_standby, pgcrypto and many other cool things. etc...

Enable PHP-FPM at OS startup:

echo 'php_fpm_enable="YES"' >> /etc/rc.confNext: Install Nginx UP: TOC