Browse files

Review documentation for installing additional PHP extensions.

  • Loading branch information...
loicfrering committed Mar 6, 2013
1 parent 0e40656 commit 6c2b1246375fb9db1eece2355217ace1e8903323
Showing with 6 additions and 8 deletions.
  1. +6 −8 docs/user/languages/
@@ -147,17 +147,15 @@ You can also use this one line command:
It is possible to install custom PHP extensions into the Travis environment using [PECL](, but they have to be built against the PHP version being tested. Here is for example how the `memcache` extension can be installed:
- pecl install memcache
- echo "" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
+ pecl install <extension>
-It is also possible to do the installation "manually". This is how the `memcache` extension can be installed this way:
+PECL will automatically enable the extension at the end of the installation. If you want to configure your extension, use the `phpenv config-add` command to add a custom ini configuration file in your before_script.
- wget
- tar -xzf memcache-2.2.6.tgz
- sh -c "cd memcache-2.2.6 && phpize && ./configure --enable-memcache && make && sudo make install"
- echo "" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
+It is also possible to do the installation "manually", but you'll have to manually enable the extension after the installation either with `phpenv config-add` and a custom ini file or with this one line command:
-See also the [full before_script using midgard2]( or another one for [mongo php driver](
+ echo "extension=<extension>.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
+See also the [full script using midgard2](
### Chef Cookbooks for PHP

0 comments on commit 6c2b124

Please sign in to comment.