voxpupuli / voxpupuli/puppet-php
redis extension
Nobody has claimed this yet.
- Dominant language
- Puppet
- Stars
- 86
- Forks
- 264
- Avg merge
- 29m
- Merged PRs (30d)
- 1
Description
Affected Puppet, Ruby, OS and module versions/distributions
- Puppet: 7.4.1
- Ruby: 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux]
- Distribution: RHEL8
- Module version: 7.1.0
How to reproduce (e.g Puppet code you use)
Hiera config.
php::extensions:
igbinary:
provider: pecl
redis :
provider: pecl
What are you seeing
Puppet fails to build redis so file.
Warning: Could not match PHP Warning: PHP Startup: Unable to load dynamic library 'redis.so' (tried: /usr/lib64/php/modules/redis.so (/usr/lib64/php/modules/redis.so: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/redis.so.so (/usr/lib64/php/modules/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line
What behaviour did you expect instead
When I run the pecl command manually, the library works and build she redis.so file.
If I install the igbinary, It also compiles manually if I select yes for the "enable igbinary serializer support" option.
sudo pecl install redis
downloading redis-5.3.3.tgz ...
Starting to download redis-5.3.3.tgz (266,990 bytes)
........................................................done: 266,990 bytes
29 source files, building
running: phpize
Configuring for:
PHP Api Version: 20170718
Zend Module Api No: 20170718
Zend Extension Api No: 320170718
enable igbinary serializer support? [no] :
enable lzf compression support? [no] :
enable zstd compression support? [no] :
building in /var/tmp/pear-build-rootI9KiZf/redis-5.3.3
....
Build process completed successfully
Installing '/usr/lib64/php/modules/redis.so'
install ok: channel://pecl.php.net/redis-5.3.3
configuration option "php_ini" is not set to php.ini location
You should add "extension=redis.so" to php.ini
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Hiera php::extensions configuration and reproduce the PECL redis installation on Puppet 7.4.1, Ruby 2.5.5, and RHEL8 using the commands and output in the report. Determine why Puppet does not produce or load redis.so while the manual PECL install succeeds; done means the extension builds and loads through the Puppet configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, redis
- Domain
- databases, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100