[ticket/11985] Reorganise travis/install-php-extensions.sh

PHPBB3-11985
[ticket/11985] Enable APC on command line so it can be used by PHPUnit.

PHPBB3-11985