Recommend a switch PHP version: Apache and mounted on a plurality of versions of switches macOS Sierra PHP It very comprehensive. The above operation again, the problem is solved. Say this problem also blame themselves, the system comes with a php, with homebrew installed two versions of php, directly from the command line has an installed php, do not mess strange, and later deleted the PHP homebrew installation, using the system since band, Php -i found in the terminal to view PHP installation path and I modified the php.ini path simply different, so that's simply not enabled Apache I installed php extension, but I have another php installed on your system. configure -enable-redis -with-php-config=/Applications/XAMPP/xamppfiles/bin/php-config Put a linkĪlso: I appeared a relatively crappy question: php -m | grep redis View does Redis installed extensions, but in phpinfo did not, of course, to start the project is not supported by the Redis (tp3.2), more than a few times to check out the process for a long time will not work, then Then I downloaded the git clone this version of the extension, and use this in the. configure need to specify the system version and to install the correct path There are two possible reasonsġ, phpredis-master expansion and Redis4.0.2 wrong version versionĢ, when executing. Then another, seemingly redis version and the extended version is correspondence between, but the Internet seemingly do not see a similar argument, such as:Ĥ.0.2 version of Redis I installed with xampp time, and tried to give him added phpredis-master expansion but after installation, you still do not find phpinfo Redis. Php.ini which maybe it is better to specify the extension pathĮxtension=/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20131226/redis.so Applications/XAMPP/xamppfiles/etc/redis-4.0.2/src/redis-cli Applications/XAMPP/xamppfiles/etc/redis-4.0.2/src/redis-server In addition, if more than one redis installation, determine whether you want to open a Redis can specify the path of the correct path open Redis # View the extended installation, there redis represents a successful installation. # Add the following sentence to tell PHP to enable Redis extension, save the file Vim /etc/php.ini (if not, then a copy of / etc / like and rename) Tip # /usr/lib/php/extensions/no-debug-non-zts-xxxxxxxxx/ For success configure (./configure -with-php-config = / Applications / XAMPP / xamppfiles / bin / php-config Note that you can specify your own path to install anything in the system is the default path, such as this is to give my installed xampp path mounted on the machine) Menu "Utilities" = > "terminal" input = > csrutil disable After the execution will output: Successfully disabled System Integrity Protection Please restart the machine for the changes to take effect.Īfter the ban off the SIP, can be successfully installed, of course, remember to re-open after Bahrain SIP, as above, but the command is csrutil enable。Īttached to the Mac OS Extended Redis PHP installation process:Ĭurl -O https: // /nicolasff/phpredis/zip/master tar - zxf master.Hold down Command + R (after the re-start by bright screen, symbolically by a few seconds and then release, the Apple logo appears, ok).Only for system use, other users or programs can not be used directly, and our / usr / lib / php / extensions / just under the scope of protection. The error is because OSX 10.11 El Capitan start, added new security mechanism called a new system to protect the integrity System Integrity Protection (SIP), so for directory Cp: /usr/lib/php/extensions/no-debug-non-zts- 20131226/# 12567 #: Operation not permitted
0 Comments
Leave a Reply. |