20180604

6月4日任务
11.32 php扩展模块装安
扩展
apache rewrite教程 http://coffeelet.blog.163.com/blog/static/13515745320115842755199/ http://www.cnblogs.com/top5/archive/2009/08/12/1544098.html
apache rewrite 出现死循环 http://ask.apelearn.com/question/1043
php错误日志级别参考 http://ask.apelearn.com/question/6973
php开启短标签 http://ask.apelearn.com/question/120
php.ini详解 http://legolas.blog.51cto.com/2682485/493917


查看模块
/usr/local/php7/bin/php -m

下面安装一个redis的模块

cd /usr/local/src/
wget https://codeload.github.com/phpredis/phpredis/zip/develop 
mv develop phpredis-develop.zip
unzip phpredis-develop.zip
cd phpredis-develop
/usr/local/php7/bin/phpize //生成configure文件
./configure --with-php-config=/usr/local/php7/bin/php-config
make && make install

查看扩展模块存放目录
/usr/local/php/bin/php -i |grep extension_dir

我们可以在php.ini中去自定义该路径
vim /usr/local/php7/etc/php.ini
extension = redis.so

/usr/local/php7/bin/php -m |grep redis

未经允许不得转载:外贸SOHO笔记 » 20180604

赞 (0) 打赏

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下作者~

支付宝扫一扫打赏

微信扫一扫打赏