Home > linux > php > phpconfig > PhpInstallFromSource | About

You need to know three things (at least) :

  1. You can't compile mysql as an extension, it won't work.
  2. You should compile php-fpm if you intend to use nginx
  3. You also need to compile OpenSSL support

All of this is done through the use of configure flags, here is the configure that I used to compile PHP 5.6.0 :

'./configure' '--enable-fpm' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-openssl' 

See the output of ./configure –help for a list of all available modules.

To compile gd, you need libpng-dev.

APC

What is APC ?

Some kind of cache for PHP. Apparently, it is not the default cache. It is mentioned as "alternative". You will need this when installing PHP from 0.

How do you know APC is installed ?

There's a php5-apcu package for mint so there should be one for ubuntu and debian with this name.

See also


contact : @ychaouche yacinechaouche at yahoocom


QR Code
QR Code APC (generated for current page)