Skip to content

Commit c584078

Browse files
committed
Update the extension instructions
1 parent 65b61d8 commit c584078

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

readme.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
These are a set of bash scripts for building and running PHP 7 (CLI and FPM) on Debian based Linux distributions:
44

55
- `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-
6+
77
- `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.
88

99
Please note that these are very simple scripts that don't implement error checking or process validation.
@@ -25,17 +25,18 @@ while the FPM socket is available at
2525
127.0.0.1:9007
2626

2727
and PHP CLI:
28-
28+
2929
$ /usr/local/php7/bin/php -v
3030
PHP 7.0.1 (cli) (built: Jan 6 2016 01:17:03) ( NTS )
3131
Copyright (c) 1997-2015 The PHP Group
3232
Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies
3333
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
3434

35+
3536
## Configuration files
3637

3738
All PHP configuration files are stored under `/usr/local/php7`:
38-
39+
3940
/usr/local/php7/lib/php.ini
4041
/usr/local/php7/etc/php-fpm.conf
4142
/usr/local/php7/etc/php-fpm.d/www.conf
@@ -45,6 +46,7 @@ while the Debian init script is added to:
4546

4647
/etc/init.d/php7-fpm
4748

49+
4850
## Extensions
4951

5052
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:
@@ -110,20 +112,26 @@ Note that most of the third-party PHP extensions are [not yet compatible with PH
110112
[Zend Modules]
111113
Zend OPcache
112114

113-
## Installing Memcached Extension
114115

115-
$ cd php-7-debian/extensions
116+
## Installing Extensions
117+
118+
Please note that you need to restart `php7-fpm` to activate the extension.
119+
120+
### Install the Memcached Extension
121+
122+
$ ./php-7-debian/extensions
116123
$ ./memcached-build.sh
117-
$ sudo ./memcached-install.sh
118-
119-
## Installing Imagick Extension
124+
$ ./memcached-install.sh
125+
126+
### Install the Imagick Extension
120127

121128
$ cd php-7-debian/extensions
122129
$ ./imagick-build.sh
123-
$ sudo ./imagick-install.sh
130+
$ ./imagick-install.sh
131+
124132

125133
## Credits
126134

127135
- Created by [Kaspars Dambis](http://kaspars.net)
128136
- Contributors: [Piotr Plenik](https://github.com/jupeter)
129-
- Based on [`php7.sh`](https://gist.github.com/tvlooy/953a7c0658e70b573ab4) by [Tom Van Looy](http://www.intracto.com/nl/blog/running-symfony2-on-php7)
137+
- 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

Comments
 (0)