• Stars
    star
    349
  • Rank 121,528 (Top 3 %)
  • Language
    Shell
  • Created over 9 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Install PHP 7 on Debian/Ubuntu

Install PHP 7 on Debian/Ubuntu

These are a set of bash scripts for building and running PHP 7 (CLI and FPM) on Debian based Linux distributions:

  • build.sh installs the necessary build dependencies and the latest stable version of PHP with CLI and FPM server APIs (SAPI) from the latest PHP 7 branch of https://github.com/php/php-src.

  • install.sh sets up PHP-FPM by moving configuration files into their correct locations in /usr/local/php7 and enables the php7-fpm service and adds it to the startup sequence.

Please note that these are very simple scripts that don't implement error checking or process validation.

Building PHP 7 on Orange Pi Zero (ARM)

Usage

$ git clone https://github.com/kasparsd/php-7-debian.git
$ cd php-7-debian
$ ./build.sh
$ sudo ./install.sh

On systems with little amount of RAM such as Raspberry Pi you might want to decrease the number of parallel make jobs by passing the JOB_COUNT variable:

$ JOB_COUNT=1 ./build.sh

The default job count is equal to the number of CPU cores.

The PHP-FPM can be operated using the php7-fpm init script:

Usage: /etc/init.d/php7-fpm {start|stop|status|restart|reload|force-reload}

while the FPM socket is available at

127.0.0.1:9007

and PHP CLI at /usr/local/php7/bin/php.

Updating

Pull down the latest changes from this repository git pull and run ./build.sh.

Configuration files

All PHP configuration files are stored under /usr/local/php7:

/usr/local/php7/lib/php.ini
/usr/local/php7/etc/php-fpm.conf
/usr/local/php7/etc/php-fpm.d/www.conf
/usr/local/php7/etc/conf.d/modules.ini

while the Debian init script is added to:

/etc/init.d/php7-fpm

Extensions

Here is a list of PHP modules that are enabled by default in this build:

$ /usr/local/php7/bin/php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
intl
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
pspell
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

Installing Extensions

Please note that you need to restart php7-fpm to activate the extension.

Install the Memcached Extension

$ cd php-7-debian/extensions
$ ./memcached-build.sh
$ ./memcached-install.sh

Install the Imagick Extension

$ cd php-7-debian/extensions
$ ./imagick-build.sh
$ ./imagick-install.sh

Credits

More Repositories

1

minit

A WordPress plugin to combine CSS and Javascript files.
PHP
288
star
2

code-prettify

WordPress plugin for automatic code highlighting using the Prettify library. No shortcodes, no classnames, pure awesome.
JavaScript
96
star
3

wp-deploy

Set of bash scripts for deploying plugins and themes from Git
Shell
84
star
4

rover-editor

Rover is a web based text editor with support for Markdown syntax highlighting and Dropbox storage
JavaScript
75
star
5

HTML5-Notepad-with-Sync

Self-hosted HTML5 Notepad App
JavaScript
57
star
6

sensor-pilot

Progressive web app for connecting to Bluetooth Low Energy sensors via Web Bluetooth API
JavaScript
51
star
7

sign-in-with-apple

A WordPress plugin for Sign In with Apple
PHP
49
star
8

widget-context-wporg

Widget Context for WordPress
PHP
43
star
9

metrogram

Instagram tag slideshow
JavaScript
42
star
10

photos-sync

Sync OS X Photos to Anywhere (NAS, Dropbox, Amazon S3 or Glacier, Backblaze B2)
PHP
35
star
11

envato-automatic-plugin-update

WordPress plugin library for providing automatic plugin updates to CodeCanyon plugins
PHP
24
star
12

feed-image-enclosure

Add featured images as enclosures in RSS feeds
PHP
21
star
13

contact-form-7-extras

Simple controls for the advanced Contact Form 7 features
PHP
18
star
14

numeric-shortlinks

WordPress plugin which enables shortlinks for posts and pages based on their ID (i.e. http://example.com/123)
PHP
16
star
15

tinystone

Eddystone BLE beacon using nrf24l01+ and ATTiny
C
16
star
16

podcasts-tools

Tools for exporting subscriptions from Apple Podcasts on macOS as OPML
PHP
12
star
17

orbiter

Orbiter is a simΒ­ple and extendΒ­able PHP tool for pubΒ­lishΒ­ing beauΒ­tiΒ­ful webΒ­sites out of simple text documents
PHP
12
star
18

pgp-quick

Encrypt, decrypt, sign and verify your clipboard with PGP using GPG
Shell
11
star
19

latvijas-pilsetas-novadi

Latvijas novadi un pilsΔ“tas JSON formātā
PHP
10
star
20

mini-sheets-php

Library for creating the most basic Office Open XML and Excel XLSX files.
PHP
10
star
21

widget-output-cache

Caches widget output in transients (or object cache, if enabled)
PHP
8
star
22

samson-c01u-pro-firmware

8
star
23

avconv-photo-timelapse

Use avconv to take photos and create timelapse videos
Shell
8
star
24

solid-pod

Solid POD for WordPress
PHP
7
star
25

support-pilot-plugin

Create RSS feeds for WordPress plugin and theme support forum replies
PHP
6
star
26

multisite-local-dev

WordPress Multisite Local Dev -- a MU plugin for WordPress
PHP
5
star
27

perfpony

Performance Pony
JavaScript
4
star
28

Simple-WordPress-Archives

Provides a few shortcodes for listing post archives grouped by categories or taxonomies
PHP
4
star
29

widget-context-basic

The easiest way to take control of your sidebar areas, widgets and their visibility
PHP
4
star
30

hb-finder

JavaScript
3
star
31

eid-login

Client side certificate (eID) login for WordPress
PHP
3
star
32

zigpi

Zigbee Hat for Raspberry Pi and Home Assistant
3
star
33

atom-autocomplete-wpcs-flags

Autocomplete for WordPress Coding Standard (WPCS) whitelist flags
JavaScript
3
star
34

metro-share

The ultimate social sharing plugin that doesn't slow down your site.
PHP
3
star
35

remote-pine

Shell
2
star
36

mobile-redirect

WordPress plugin to add redirects to/from mobile posts and pages
PHP
2
star
37

fix-ssl-please

Serve all assets over SSL
PHP
2
star
38

tinker-theme

A WordPress theme for creators, bloggers and writers
PHP
2
star
39

limit-login-attempts

An updated version of the Limit Login Attempts plugin for WordPress
PHP
2
star
40

raspi-solar-tracer-logger

PHP
2
star
41

crypto-logger

PHP
1
star
42

era

C++
1
star
43

comment-approved-notify

Notify blog comment authors when their comments are approved
PHP
1
star
44

automatic-post-scheduler

Automatic Post Scheduler plugin for WordPress
PHP
1
star
45

simple-latest-posts-widget

Simply drag-and-drop elements that you want to display in the widget
PHP
1
star
46

custom-404-page

Custom 404 Error Page for WordPress
PHP
1
star
47

esp8266-projects

A monorepo for all my ESP8266 projects
Python
1
star
48

pine-monitor

Various undocumented scripts for remote Raspberry Pi camera capture
Python
1
star
49

base

A bare WordPress theme with lot's of filters and hooks for creating awesome child themes
PHP
1
star
50

category-in-permalink

WordPress plugin to specify the category used in post permalink for posts with multiple categories.
PHP
1
star
51

git-update

Automatic Updates for Themes and Plugins Hosted on GitHub
PHP
1
star
52

lte-stats

Huawei LTE Data Modem Signal Stats Logger
PHP
1
star
53

Custom-Index-Pages

Custom Index Pages plugin for WordPress
PHP
1
star
54

google-analytics-admin-exclude

Sets a logged_in variable when a user is logged in.
PHP
1
star
55

ifbee

ZigBee event observer
JavaScript
1
star
56

image-filters-plugin

Image Filters plugin for Wordpress
PHP
1
star
57

esp32-burst

Low power ESP32-CAM firmware for timelapse photography
C
1
star
58

digipass-secureclick-manager

Source of the DIGIPASS SecureClick Manager Chrome Extension
JavaScript
1
star
59

cache-version

Stores a last-modified timestamp in object cache and sends Last-Modified header based on that version.
PHP
1
star
60

goodshelves

Goodreads bookshelf plugin for WordPress.
PHP
1
star
61

code-highlight-js

Highlight.js for WordPress
CSS
1
star
62

besst-reference

Vue
1
star
63

simple-attributes-plugin

Simple Attributes plugin for WordPress
PHP
1
star
64

multiple-editors

WordPress plugin to allow editors to promote other contributors and authors as editors of their posts and pages
PHP
1
star