Now I want to install a php extension for redis. The original php was installed with yum, and Version 5.3 now downloads a redis extension package phpredis and compiles it into one. so file, and in php. this extension is enabled in ini. When I use phpinfo to display information, there is no redis... now I want to install a php extension for redis. The original php is installed with yum, and the version is 5.3.
Now I downloaded a redis extension package phpredis and compiled it into one. so file, and in php. this extension is enabled in ini. When I use phpinfo to display information, there is no redis information, is it because I didn't set it. where does so file copy result from?
Thank you for your advice!
Ps: the extension installation steps are as follows:
Phpize./configuremake & make install
Edit: php. ini extension information has been added.
Edit: php. ini is php. ini in phpinfo. Currently, calling redis also takes effect, but I just don't know why phpinfo has no redis information ):
Reply content:
Now I want to install a php extension for redis. The original php is installed with yum, and the version is 5.3.
Now I downloaded a redis extension package phpredis and compiled it into one. so file, and in php. this extension is enabled in ini. When I use phpinfo to display information, there is no redis information, is it because I didn't set it. where does so file copy result from?
Thank you for your advice!
Ps: the extension installation steps are as follows:
Phpize./configuremake & make install
Edit: php. ini extension information has been added.
Edit: php. ini is php. ini in phpinfo. Currently, calling redis also takes effect, but I just don't know why phpinfo has no redis information ):
View the location of php. ini loaded in phpinfo (), and modify the configuration in the corresponding php. ini file.
'Display _ errors = On
DisplayStartupErrors = On'
Restart PHP (restart CGI or Apache in the PHP running mode). check whether there are any errors in the prompt information during startup. If any, follow the prompts to correct the errors.
Paste the php. ini file to load the extension configuration.
- Has cgi restarted?
- Check whether your modified php. ini is the php. ini used by your cgi.
- After the make install operation is successful, you will be prompted for the location of the so file to see if there is any file in that location.
Reference: http://www.php.net/manual/zh/install.pecl.phpize.php