You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+18-23Lines changed: 18 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,8 @@
2
2
3
3
These are a set of bash scripts for building and running PHP 7 (CLI and FPM) on Debian based Linux distributions:
4
4
5
-
-`build.sh` installs the necessary build dependencies and the latest development version of PHP with CLI and FPM server APIs (SAPI) from the `PHP-7.x.x` branch of https://github.com/php/php-src
6
-
5
+
-`build.sh` installs the necessary build dependencies and the latest development version of PHP with CLI and FPM server APIs (SAPI) from the latest PHP 7 branch of https://github.com/php/php-src
6
+
7
7
-`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.
8
8
9
9
Please note that these are very simple scripts that don't implement error checking or process validation.
@@ -28,17 +28,18 @@ while the FPM socket is available at
with Zend OPcache v7.0.9, Copyright (c) 1999-2016, by Zend Technologies
37
37
38
+
38
39
## Configuration files
39
40
40
41
All PHP configuration files are stored under `/usr/local/php7`:
41
-
42
+
42
43
/usr/local/php7/lib/php.ini
43
44
/usr/local/php7/etc/php-fpm.conf
44
45
/usr/local/php7/etc/php-fpm.d/www.conf
@@ -48,6 +49,7 @@ while the Debian init script is added to:
48
49
49
50
/etc/init.d/php7-fpm
50
51
52
+
51
53
## Extensions
52
54
53
55
Note that most of the third-party PHP extensions are [not yet compatible with PHP 7](https://github.com/gophp7/gophp7-ext/wiki/extensions-catalog) and [GoPHP7-ext](http://gophp7.org/) (also on [GitHub](https://github.com/gophp7/gophp7-ext)) is a project to help do that. Here is a list of PHP modules that are enabled by default in this build:
@@ -116,33 +118,26 @@ Note that most of the third-party PHP extensions are [not yet compatible with PH
116
118
[PECL]
117
119
APCu
118
120
119
-
## Installing Memcached Extension
120
121
121
-
[Memcached extension for PHP](https://github.com/php-memcached-dev/php-memcached) already supports PHP 7. First you install the dependencies:
and then append `extension=memcached.so` to `/usr/local/php7/etc/conf.d/modules.ini`:
132
+
### Install the Imagick Extension
137
133
138
-
# Zend OPcache
139
-
zend_extension=opcache.so
140
-
141
-
# Memcached
142
-
extension=memcached.so
134
+
$ cd php-7-debian/extensions
135
+
$ ./imagick-build.sh
136
+
$ ./imagick-install.sh
143
137
144
138
145
139
## Credits
146
140
147
141
- Created by [Kaspars Dambis](http://kaspars.net)
148
-
- Based on [`php7.sh`](https://gist.github.com/tvlooy/953a7c0658e70b573ab4) by [Tom Van Looy](http://www.intracto.com/nl/blog/running-symfony2-on-php7)
- Based on [`php7.sh`](https://gist.github.com/tvlooy/953a7c0658e70b573ab4) by [Tom Van Looy](http://www.intracto.com/nl/blog/running-symfony2-on-php7)
0 commit comments