国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Home Backend Development PHP Tutorial Why is the manually compiled php-redis module that is not displayed in phpinfo() after installing PHP using brew on mac M2?

Why is the manually compiled php-redis module that is not displayed in phpinfo() after installing PHP using brew on mac M2?

Apr 01, 2025 am 09:27 AM
redis nginx Browser macos cos Why red

Why is the manually compiled php-redis module that is not displayed in phpinfo() after installing PHP using brew on mac M2?

After installing PHP with Brew on Mac M2 system, manually compile and install the php-redis extension but cannot be displayed in phpinfo()

On macOS M2 system, after using Homebrew to install PHP, some users encountered problems when manually compiling and installing the php-redis extension: the command line can use the redis extension normally, the php -m command can also display redis, php -r "if (new Redis() == true){ echo "\r\n OK \r\n"; }" command also returns OK, but phpinfo() cannot display redis-related information.

The php.ini file path is confirmed to be /opt/homebrew/etc/php/7.3/php.ini , and the file is loaded through php -i | grep Loaded , and extension=redis configuration has been added to it.

The root cause of the problem may be the difference between the PHP configuration file and the CLI environment, and the configuration of PHP-FPM. The following provide troubleshooting steps:

  1. Verify the consistency of PHP version: Use php -v to view the command line PHP version, and then access phpinfo() page through the browser to confirm whether the PHP version used by the web server is consistent with the command line version. Version inconsistency is a common reason.

  2. Check PHP-FPM configuration: If you use PHP-FPM, you need to check its configuration file (usually located in /opt/homebrew/etc/php/7.3/php-fpm.d/ directory) to make sure it loads the correct php.ini file and that the file contains extension=redis configuration.

  3. Restart the web server: After modifying the configuration file, be sure to restart the web server for the changes to take effect (for example, restart Nginx using sudo nginx -s reload ).

  4. Confirm the extension file path: Check whether the extension_dir setting in the php.ini file is correct, and make sure that the redis.so file is located in this directory. Use php -i | grep extension_dir to view the current extension directory.

  5. Permissions issue: Make sure the web server has permission to read the redis.so file and php.ini file. Adjust file permissions if necessary.

  6. Compilation options: Confirm that the PHP version used when compiling php-redis is the same as the PHP version of the system, and the compilation parameters are correct.

If the above steps still fail to resolve the problem, it is recommended to check the system log and PHP error log to obtain more detailed error information for further troubleshooting. Check each step carefully to make sure all configurations are correct.

The above is the detailed content of Why is the manually compiled php-redis module that is not displayed in phpinfo() after installing PHP using brew on mac M2?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

The popularity of the currency circle has returned, why do smart people have begun to quietly increase their positions? Look at the trend from the on-chain data and grasp the next round of wealth password! The popularity of the currency circle has returned, why do smart people have begun to quietly increase their positions? Look at the trend from the on-chain data and grasp the next round of wealth password! Jul 09, 2025 pm 08:30 PM

As the market conditions pick up, more and more smart investors have begun to quietly increase their positions in the currency circle. Many people are wondering what makes them take decisively when most people wait and see? This article will analyze current trends through on-chain data to help readers understand the logic of smart funds, so as to better grasp the next round of potential wealth growth opportunities.

What are the mainstream public chains of cryptocurrencies? The top ten rankings of cryptocurrency mainstream public chains in 2025 What are the mainstream public chains of cryptocurrencies? The top ten rankings of cryptocurrency mainstream public chains in 2025 Jul 10, 2025 pm 08:21 PM

The pattern in the public chain field shows a trend of "one super, many strong ones, and a hundred flowers blooming". Ethereum is still leading with its ecological moat, while Solana, Avalanche and others are challenging performance. Meanwhile, Polkadot, Cosmos, which focuses on interoperability, and Chainlink, which is a critical infrastructure, form a future picture of multiple chains coexisting. For users and developers, choosing which platform is no longer a single choice, but requires a trade-off between performance, cost, security and ecological maturity based on specific needs.

Solana official APP platform. Popular address.co Solana official APP platform. Popular address.co Jul 10, 2025 pm 07:06 PM

The acquisition and management of digital assets can be achieved through the official Solana platform and secure storage solutions. 1. Solana's official application platform (solana.com/ecosystem) provides project browsing, official application downloads and developer resources; 2. Its trading platform address is a designated link to facilitate user transactions; 3. Hardware storage devices such as Ledger can ensure private key security offline; 4. Desktop or mobile applications such as Phantom support convenient management; 5. Multi-signature technology improves authorization security; in addition, you can also participate in the digital asset ecosystem by participating in community governance, using decentralized applications, content creation, etc.

Ouyi latest version OKX Android genuine APP portal v6.128.0 Ouyi latest version OKX Android genuine APP portal v6.128.0 Jul 10, 2025 pm 09:15 PM

Ouyi OKX is a professional digital asset trading platform that provides global users with diverse digital asset products and services. With its secure and stable system and rich and comprehensive features, it has become the choice of many digital asset enthusiasts.

Is it true that Yiwu merchants start charging stablecoins? Is it true that Yiwu merchants start charging stablecoins? Jul 09, 2025 pm 07:03 PM

Yes, some merchants in Yiwu, Zhejiang have indeed begun to accept stablecoins such as USDT as a way to settle trade payments, but this phenomenon is not promoted by official policies and has not been popularized by all merchants. It is mainly a private practice adopted by individual merchants engaged in specific international trade to solve the problem of cross-border payments. 1. The reasons why merchants choose stablecoins include stable value, convenient transactions, low cost and the ability to bypass traditional payment barriers; 2. There are currently no official statistics, and it is estimated that hundreds to thousands of merchants are involved, focusing on industries with high dependence on foreign trade and customers from countries with limited payments; 3. Mainstream trading platforms include Binance, Ouyi, Huobi, Gate.io, KuCoin and Bybit. These platforms provide C2C or P2P transaction services to support fiat currency and stability

Meme Coin Mania: The Power of Dogecoin, Shiba Inu and Community Hype Meme Coin Mania: The Power of Dogecoin, Shiba Inu and Community Hype Jul 10, 2025 pm 07:48 PM

The rise of meme coins reflects the key role of community power and social media influence in the cryptocurrency market. 1. Dogecoin was originally a satirical joke and was born in 2013; 2. Driven by tweets from celebrities such as Elon Musk, the attention soared; 3. The market value once reached tens of billions of dollars, becoming a mainstream digital asset. Shiba Inu Coin is positioned as a "dogcoin killer" and has rapidly risen through community-driven strategies, building a decentralized exchange ShibaSwap, and relies on low-priced units to attract a large number of users to participate. Its success also depends on circulation guarantees on mainstream platforms such as Binance, Coinbase, and OKX. The core driving forces of meme coins include: 1. Viral transmission mechanism, rapid spread of information; 2. Enhanced sense of community belonging

Ouyi computer version client installation official website PC okx software download method Ouyi computer version client installation official website PC okx software download method Jul 09, 2025 pm 06:00 PM

This article provides the download and installation steps of Ouyi computer version client. 1. Visit the official website; 2. Find the download portal; 3. Select the corresponding version; 4. Download and install; 5. Log in to use to ensure that users can quickly complete transaction operations on the PC side.

Stablecoin official website entrance Stablecoin official website address link Stablecoin official website entrance Stablecoin official website address link Jul 09, 2025 pm 06:45 PM

The official website information of the stablecoin can be obtained through direct access. 1. USDT official website provides reserve reports; 2. USDC official website publishes audit certificates; 3. DAI official website displays decentralization mechanism; 4. TUSD official website supports on-chain verification; 5. BUSD official website explains the redemption policy. In addition, ordinary users can easily trade stablecoins through exchanges such as Binance, Ouyi, and Huobi. When accessing, you need to check the domain name, use bookmarks and be alert to pop-ups to ensure safety.

See all articles