Page MenuHomePhabricator

Php 7 installation
Closed, DuplicatePublic



I have php 7.04 and Apache 2.2
I did setup as described in instructions. But the system doesnt want to work. When trying to open it, it displays blank page with no code or anything.
[Thu Mar 24 05:40:27 2016] [error] [client] [2016-03-24 05:40:27] EXCEPTION: (Error) Call to undefined function apc_sma_info() at [<phabricator>/src/applications/cache/spec/PhabricatorDataCacheSpec.php:82]
[Thu Mar 24 05:40:27 2016] [error] [client] arcanist(head=master, ref.master=3d7ac867f538), phabricator(head=master, ref.master=76f07ec80bde), phutil(head=master, ref.master=b4f38af38480)
[Thu Mar 24 05:40:27 2016] [error] [client] #0 PhabricatorDataCacheSpec::initAPCCommonSpec() called at [<phabricator>/src/applications/cache/spec/PhabricatorDataCacheSpec.php:56]
[Thu Mar 24 05:40:27 2016] [error] [client] #1 PhabricatorDataCacheSpec::initAPCuSpec() called at [<phabricator>/src/applications/cache/spec/PhabricatorDataCacheSpec.php:23]
[Thu Mar 24 05:40:27 2016] [error] [client] #2 PhabricatorDataCacheSpec::getActiveCacheSpec() called at [<phabricator>/src/applications/config/check/PhabricatorCacheSetupCheck.php:11]
[Thu Mar 24 05:40:27 2016] [error] [client] #3 PhabricatorCacheSetupCheck::executeChecks() called at [<phabricator>/src/applications/config/check/PhabricatorSetupCheck.php:45]
[Thu Mar 24 05:40:27 2016] [error] [client] #4 PhabricatorSetupCheck::runSetupChecks() called at [<phabricator>/src/applications/config/check/PhabricatorSetupCheck.php:126]
[Thu Mar 24 05:40:27 2016] [error] [client] #5 PhabricatorSetupCheck::runAllChecks() called at [<phabricator>/src/applications/config/check/PhabricatorSetupCheck.php:91]
[Thu Mar 24 05:40:27 2016] [error] [client] #6 PhabricatorSetupCheck::willProcessRequest() called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:103]
[Thu Mar 24 05:40:27 2016] [error] [client] #7 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phabricator>/webroot/index.php:17]

Here is the apache error log file. I beleive the core issue is that PHP 7 has no APC anymore, but in installation instructions it states that APC is not required. How can i get phabricator to work?
Thank you.

Event Timeline

ATM, PHP 7 is not officially supported; See T9640. Your best route forward is to use PHP 5.

PHP7 is using APCu. For those in need of APC (backwards compatibility) stuff - there's /

To get @kornrunner’s suggestion to work on Ubuntu 16.04 with PHP7:

  1. Install PECL
  2. sudo pecl install channel://
  3. pushd /etc/php/7.0/fpm/conf.d
  4. sudo vim 20-apcu.ini

Insert the following inside:

Save it. popd to get out. Restart your webserver. Enjoy :)