New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CentOS (6) needs additional php-opcache package. #39

Closed
JorisVanEijden opened this Issue May 19, 2015 · 4 comments

Comments

Projects
None yet
2 participants
@JorisVanEijden
Copy link

JorisVanEijden commented May 19, 2015

When installing php on CentOS with remi, IUS or webtatic repository, php-opcache is not installed and no opcache.so is present. This leads to this error:
Failed loading /usr/lib64/php/modules/opcache.so: /usr/lib64/php/modules/opcache.so: cannot open shared object file: No such file or directory

An additional install of php-opcache is required.
remi: php55-opcache or php-56-opcache
IUS: php55u-opcache or php56u-opcache
webtatic: php55w-opcache or php56w-opcache

Then php_opcache_conf_filename should be 10-opcache.ini rather than opcache.ini

@geerlingguy

This comment has been minimized.

Copy link
Owner

geerlingguy commented May 22, 2015

Thanks for pointing this out; I'll try to figure out the best approach to getting it working on CentOS 6 with the different repos... as it is, I've only been using it with CentOS 7 and Ubuntu 12/14, so that's why the recent changes have slipped through :(

@geerlingguy

This comment has been minimized.

Copy link
Owner

geerlingguy commented Jun 27, 2015

Also, if you're using an older version of PHP, please make sure you have php_opcache_enabled_in_ini set to false.

@geerlingguy

This comment has been minimized.

Copy link
Owner

geerlingguy commented Jul 11, 2015

I'm also getting this on CentOS 7, FYI: Failed loading /usr/lib64/php/modules/opcache.so: /usr/lib64/php/modules/opcache.so: cannot open shared object file: No such file or directory

@geerlingguy

This comment has been minimized.

Copy link
Owner

geerlingguy commented Feb 17, 2016

I think this can be closed—for those on CentOS 6 running older versions of PHP or running a package that's not from Remi's repo, you're on your own setting php_packages correctly.

See Drupal VM for an example: https://github.com/geerlingguy/drupal-vm/blob/master/provisioning/tasks/init-redhat.yml#L16-L18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment