News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
How to Install PHP Extensions from Source
June 30, 2014 @ 11:50:22

PHP extensions (from PECL) can be very handy when you need them. Unfortunately, not all distributions come with packages that will install them for you...this is where compiling comes in. On the SitePoint PHP blog Bruno Skvorc has posted a guide to compiling extensions from source to help you get started.

Sometimes it's hard to know which PHP extensions you'll need before you install PHP. In cases where you need to add extensions later on, you might get lucky and the extension could be in the repository of the OS you're using. [...] What if there's no such thing for other extensions, though? In this tutorial, we'll go through installing some custom extensions on Linux systems (and OS X - the process is nearly identical).

He uses a Laravel Homestead instance as a platform for his example and shows the compilation of the MongoDB for PHP driver. He walks you through the process of booting up the VM and getting the environment/required packages installed. He then shows the process for the installation of two different kinds of PHP extensions: internal and third-party. Finally he shows you how to update your configuration, load in the compiled extension and test it (in this case looking at the phpinfo() to ensure it's loaded).

0 comments voice your opinion now!
install extension source compile tutorial introduction

Link: http://www.sitepoint.com/install-php-extensions-source/

blog comments powered by Disqus

Similar Posts

HowToForge.com: Installing Lighttpd With PHP5 And MySQL Support On OpenSUSE 11.1

RoofTopSolutions.nl: Caching in PHP using the filesystem, APC, and Memecached

Gary Hokin: An Introduction to Zend Framework 2 for the Zend Framework 1 Developer - Part 1

Tim Koschuetzki's Blog: How To Transform HTML To Textile Markup - The CakePHP TextileHelper Revisite

SitePoint PHP Blog: Understanding Drupal's EntityFieldQuery


Community Events





Don't see your event here?
Let us know!


framework library composer community language interview package opinion podcast version install security voicesoftheelephpant laravel symfony introduction release application tool series

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework