Skip to content
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

php.ini is not updated after installation. #261

Open
yamenarahman opened this issue Aug 29, 2022 · 5 comments
Open

php.ini is not updated after installation. #261

yamenarahman opened this issue Aug 29, 2022 · 5 comments

Comments

@yamenarahman
Copy link

I was installing redis pickle install redis the installation went successfully but the extension was not auto enabled in php.ini, when I used pecl pecl install redis it updates the php.ini file at the top with `extension="redis.so". Am I missing something?

@xiaoliwang
Copy link

Is there any errors?

@s1lviu
Copy link

s1lviu commented Sep 28, 2022

Same issue here, no errors output.
image

@yooouuri
Copy link

Yes same here, does nothing

@iannil
Copy link

iannil commented Jan 5, 2023

try

➜  ~ php-config --extension-dir
/opt/homebrew/Cellar/php/8.2.0/pecl/20220829
➜  ~ ls /opt/homebrew/Cellar/php/8.2.0/pecl/20220829
redis.so

➜  ~ php --ini
Configuration File (php.ini) Path: /opt/homebrew/etc/php/8.2
Loaded Configuration File:         /opt/homebrew/etc/php/8.2/php.ini
Scan for additional .ini files in: /opt/homebrew/etc/php/8.2/conf.d
Additional .ini files parsed:      /opt/homebrew/etc/php/8.2/conf.d/ext-opcache.ini

➜  ~ cp /opt/homebrew/etc/php/8.2/conf.d/ext-opcache.ini /opt/homebrew/etc/php/8.2/conf.d/ext-redis.ini
➜  ~ vi /opt/homebrew/etc/php/8.2/conf.d/ext-redis.ini

➜  ~ cat /opt/homebrew/etc/php/8.2/conf.d/ext-redis.ini
[redis]
extension="/opt/homebrew/Cellar/php/8.2.0/pecl/20220829/redis.so"

➜  ~ php -m |grep redis
redis

@sladg
Copy link

sladg commented Jan 24, 2023

Facing same issue, when install redis. In php-config --extension-dir I see redis.so but it's not part of php --ini files, so it never gets loaded it seems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants