How to install PHP7 ports on FreeBSD 10.2

My friend ask me about FreeBSD PHP7 ports and he already check if the ports not exist yet. He just feel more comfortable with ports than using git or source.

I search Google and found github repository of PHP 7 ports. I give it a try with my vps and it looks good.

Lets get start!

# freebsd-update update
# freebsd-update install
# pkg update
# portsnap fetch
# portsnap extract

Install git

# pkg install -y git


# git clone
Cloning into ‘freebsd-php7-ports’…
remote: Counting objects: 210, done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 210 (delta 16), reused 13 (delta 13), pack-reused 184
Receiving objects: 100% (210/210), 40.52 KiB | 0 bytes/s, done.
Resolving deltas: 100% (68/68), done.
Checking connectivity… done.

Copying all files

# mv /root/freebsd-php7-ports/ /usr/ports/Mk/


# mv /root/freebsd-php7-ports/lang/php7-extensions /usr/ports/lang/
# mv /root/freebsd-php7-ports/lang/php7-extensions /usr/ports/lang/


# cd /root/freebsd-php7-ports/archivers/
# mv php7-* /usr/ports/archivers/


# cd /root/freebsd-php7-ports/converters/
# mv php7-* /usr/ports/converters/


# cd /root/freebsd-php7-ports/databases/
# mv php7-* /usr/ports/databases/

Continue to others 🙂

Install PHP7 ports

# cd /usr/ports/freebsd-php7-ports/lang/php7
# make install



# php -v
PHP 7.0.2 (cli) (built: Jan 30 2016 07:50:43) ( NTS )
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies

# php --ini
Configuration File (php.ini) Path: /usr/local/etc
Loaded Configuration File: (none)
Scan for additional .ini files in: /usr/local/etc/php
Additional .ini files parsed: (none)