Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
19 changes: 19 additions & 0 deletions extensions/memcached-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
cd "$(dirname "$0")"

# Dependencies
sudo apt-get update
sudo apt-get install -y \
libmemcached-dev \
libmemcached11

git clone https://github.com/php-memcached-dev/php-memcached
cd php-memcached
git checkout php7
git pull

/usr/local/php7/bin/phpize
./configure --with-php-config=/usr/local/php7/bin/php-config

make
sudo make install
6 changes: 6 additions & 0 deletions extensions/memcached-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# Add config files
echo "zend_extension=memcached.so" >> /usr/local/php7/etc/conf.d/modules.ini

service php7-fpm restart
31 changes: 7 additions & 24 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,35 +112,18 @@ Note that most of the third-party PHP extensions are [not yet compatible with PH

## Installing Memcached Extension

[Memcached extension for PHP](https://github.com/php-memcached-dev/php-memcached) already supports PHP 7. First you install the dependencies:

$ sudo apt-get install libmemcached-dev libmemcached11
$ cd php-7-debian/extensions
$ ./memcached-build.sh
$ sudo ./memcached-install.sh

and then build and install the extension:

$ git clone https://github.com/php-memcached-dev/php-memcached
$ cd php-memcached
$ git checkout -b php7 origin/php7

$ /usr/local/php7/bin/phpize
$ ./configure --with-php-config=/usr/local/php7/bin/php-config
$ make
$ sudo make install

and then append `extension=memcached.so` to `/usr/local/php7/etc/conf.d/modules.ini`:

# Zend OPcache
zend_extension=opcache.so

# Memcached
extension=memcached.so

## Installing Imagick Extension

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

## Credits

- Created by [Kaspars Dambis](http://kaspars.net)
- Contributors: [Piotr Plenik](https://github.com/jupeter)
- Based on [`php7.sh`](https://gist.github.com/tvlooy/953a7c0658e70b573ab4) by [Tom Van Looy](http://www.intracto.com/nl/blog/running-symfony2-on-php7)