Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 569988 - dev-lang/php:7.0 - apache2 SAPI - opcache does not get loaded
Summary: dev-lang/php:7.0 - apache2 SAPI - opcache does not get loaded
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-28 15:27 UTC by Patrick ALLAERT
Modified: 2015-12-29 09:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick ALLAERT 2015-12-28 15:27:00 UTC
A regular "phpinfo()" or a call to "var_dump( get_loaded_extensions() );" in a web page clearly indicates that opcache is not loaded.

Apparently, the issue is in /etc/php/apache2-php7.0/ext-active/opcache.ini

Instead of:
zend_extension=/usr/lib64/php7.0/lib64/opcache.so

The following works:
zend_extension=opcache.so

This is a bit strange to me since it works in CLI mode without that change: "php -i" shows Zend Opcache while having the full path to the so file.
Comment 1 Patrick ALLAERT 2015-12-29 09:50:05 UTC
It appears I still had a libphp7.so that came from a manual compilation of PHP7. Cleaning my environment to use the one from portage resolve that (non-)issue.

Additionally, using "zend_extension=opcache.so" did NOT work anymore once the correct libphp7.so was used, I had to turn back the full path again.