---
title: PHP 7 Build Script
date: 2015-08-31T08:57:29+00:00
modified: 2015-11-07T08:28:11+00:00
permalink: https://kaspars.net/blog/php7-debian
post_type: post
author:
  name: Kaspars
  avatar: https://reverse.kaspars.net/gravatar/avatar/92bfcd3a8c3a21a033a6484d32c25a40b113ec6891f674336081513d5c98ef76?s=96&d=mm&r=g
category:
  - Development
post_tag:
  - How to
  - PHP
post_format:
  - Link
---

# PHP 7 Build Script

A while back I created a simple [shell script for building and installing PHP 7 on Debian based systems](https://github.com/kasparsd/php-7-debian). It checks out the `PHP-7.0.0` branch of the [PHP Git repo](https://github.com/php/php-src), runs `configure` to place everything under `/usr/local/php7` and adds an init script for controlling the `php7-fpm` process that provides a CGI socket at `127.0.0.1:9007`.

There are also [pre-built packages of PHP 7](http://php7.zend.com/repo.php) provided by Zend.