My version is 5.6. configure & amp; make & amp; makeinstall does not have -- prefix, but is in version 7. configure -- prefixpath & amp; make & amp; makeinstall... my version 5.6
./Configure & make install
No -- prefix =
In version 7
./Configure -- prefix = path & make install
At this time, how can I make the default php be the php under path?
Reply content:
My version 5.6
./Configure & make install
No -- prefix =
In version 7
./Configure -- prefix = path & make install
At this time, how can I make the default php be the php under path?
Directly create a soft connection/path/bin/php->/usr/local/bin
1,which php
2. If it is bin/php, delete it. If it is sbin/php-fpm, delete it.
3,ln -s /path/bin/php /bin/php
ln -s /path/sbin/php-fpm /sbin/php-fpm
Open httped. conf under apache
Find this sentence
LoadModule php5_module local/Cellar/php56/5.6.20/libexec/apache2/libphp5.so
If you have installed Multiple php versions locally
Sudo find/-name libphp5.so
Find this directory.
LoadModule php5_module libphp5.so path