10-5 11 php擴展模塊安裝

11.32 php擴展模塊安裝php

11.32 php擴展模塊安裝

/usr/local/apache2.4/bin/apachectl -M  //查看apache模塊
/usr/local/php7/bin/php -m //查看php7模塊

安裝redis的模塊測試html

cd /usr/local/src/
wget https://codeload.github.com/phpredis/phpredis/zip/develop 
file develop
unzip develop ;ls
mv develop phpredis-develop.zip //養成好習慣 不肯定格式能夠用file命令查看
cd phpredis-develop
/usr/local/php7/bin/phpize //生成configure文件

./configure --with-php-config=/usr/local/php7/bin/php-config
make && make install

/usr/local/php7/bin/php -i |grep extension_dir //查看擴展模塊存放目錄

咱們能夠在php.ini中去自定義該路徑git

vim /usr/local/php7/etc/php.ini  //增長一行配置(能夠放到文件最後一行)
extension=redis.so  
/usr/local/php7/bin/php -m | grep redis  //查看是否調用

擴展

apache rewrite教程 http://coffeelet.blog.163.com/blog/static/13515745320115842755199/github

http://www.cnblogs.com/top5/archive/2009/08/12/1544098.htmlredis

apache rewrite 出現死循環 http://ask.apelearn.com/question/1043apache

php錯誤日誌級別參考 http://ask.apelearn.com/question/6973vim

php開啓短標籤 http://ask.apelearn.com/question/120php7

php.ini詳解 http://legolas.blog.51cto.com/2682485/493917測試

相關文章
相關標籤/搜索