The system osx10.11 uses an nginx project under php56brew under brew. During the installation process, it prompts that intl and apc extensions are missing, and the following statements are used to download them, but php is still not loaded. How can this problem be solved? I also asked how to install the apc extension, using the system OS x 10.11
Use php56 in brew.
Nginx under brew
The following error occurs during the installation of a Project,Intl and apc
The extension is downloaded and installed with the following statement, but php is still not loaded. How can this problem be solved?
Also,apc
How to install extension, usebrew search php56
Noapc
Extension
➜ brew reinstall php56-intl --build-from-source==> Reinstalling homebrew/php/php56-intl==> Downloading https://php.net/get/php-5.6.17.tar.bz2/from/this/mirrorAlready downloaded: /Library/Caches/Homebrew/php56-intl-5.6.17==> /usr/local/opt/php56/bin/phpize==> ./configure --prefix=/usr/local/Cellar/php56-intl/5.6.17 --with-php-config=/us==> make==> CaveatsTo finish installing intl for PHP 5.6: * /usr/local/etc/php/5.6/conf.d/ext-intl.ini was created, do not forget to remove it upon extension removal. * Validate installation via one of the following methods: * * Using PHP from a webserver: * - Restart your webserver. * - Write a PHP page that calls "phpinfo();" * - Load it in a browser and look for the info on the intl module. * - If you see it, you have been successful! * * Using PHP from the command line: * - Run "php -i" (command-line "phpinfo()") * - Look for the info on the intl module. * - If you see it, you have been successful!==> Summary? /usr/local/Cellar/php56-intl/5.6.17: 3 files, 372.8K, built in 41 seconds
Reply content:
System OS x 10.11
Use php56 in brew.
Nginx under brew
The following error occurs during the installation of a Project,Intl and apc
The extension is downloaded and installed with the following statement, but php is still not loaded. How can this problem be solved?
Also,apc
How to install extension, usebrew search php56
Noapc
Extension
➜ brew reinstall php56-intl --build-from-source==> Reinstalling homebrew/php/php56-intl==> Downloading https://php.net/get/php-5.6.17.tar.bz2/from/this/mirrorAlready downloaded: /Library/Caches/Homebrew/php56-intl-5.6.17==> /usr/local/opt/php56/bin/phpize==> ./configure --prefix=/usr/local/Cellar/php56-intl/5.6.17 --with-php-config=/us==> make==> CaveatsTo finish installing intl for PHP 5.6: * /usr/local/etc/php/5.6/conf.d/ext-intl.ini was created, do not forget to remove it upon extension removal. * Validate installation via one of the following methods: * * Using PHP from a webserver: * - Restart your webserver. * - Write a PHP page that calls "phpinfo();" * - Load it in a browser and look for the info on the intl module. * - If you see it, you have been successful! * * Using PHP from the command line: * - Run "php -i" (command-line "phpinfo()") * - Look for the info on the intl module. * - If you see it, you have been successful!==> Summary? /usr/local/Cellar/php56-intl/5.6.17: 3 files, 372.8K, built in 41 seconds
It is not clear how your specific environment configuration is. Note the following:
Php has several isapis, including cli mode and apache mode. Each mode may correspond to a php. ini. Is extension =/path/intl added to the correct ini file. so?
If the apc does not provide brew, it can only be compiled and installed manually. The general steps are as follows:
Go to the apc source code root directory, phpize-"configure-" make-"make install, and add extension =/path/apc. so to the INI file.